Ubuntu 20.04
Sponsored Link

VirtualBox : Install GuestAdditions2020/08/05

 
Install [GuestAdditions] into a Virtual Machine to improve Virtual Machine's System Performance.
On the example below, it shows to install [GuestAdditions] on a Virtual Machine [Ubuntu_2004].
[1] Attach [GuestAdditions]' disk to the VM on VirtualBox Host.
The target VM must be stopped.
root@dlp:~#
apt -y install virtualbox-guest-additions-iso
root@dlp:~#
VBoxManage storageattach Ubuntu_2004 \
--storagectl Ubuntu_2004_SATA \
--port 0 \
--type dvddrive \
--medium /usr/share/virtualbox/VBoxGuestAdditions.iso
[2] Start the VM and login to it, then Install [GuestAdditions] on it.
# install required packages first

root@guest:~#
LINUX_HEADERS=$(uname -r)

root@guest:~#
apt -y install gcc make bzip2 linux-headers-$LINUX_HEADERS

root@guest:~#
mount /dev/cdrom /mnt

root@guest:~#
cd /mnt

root@guest:/mnt#
./VBoxLinuxAdditions.run

Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.10 Guest Additions for Linux........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
update-initramfs: Generating /boot/initrd.img-5.4.0-26-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.

root@guest:/mnt#
 
After installing [GuestAdditions], System Performance will be improved.

Matched Content