VirtualBox : Install GuestAdditions2018/12/07 |
Install GuestAdditions into a Virtual Machine to improve Virtual Machine's System Performance.
The example below is to install GuestAdditions on a Virtual Machine [Ubuntu_1804]. |
|
[1] | Attach GuestAdditions' disk to the VM on VirtualBox Host. |
root@dlp:~# VBoxManage storageattach Ubuntu_1804 \
--storagectl Ubuntu_1804_SATA \ --port 0 \ --type dvddrive \ --medium /usr/share/virtualbox/VBoxGuestAdditions.iso |
[2] | Install GuestAdditions on the VM. |
# install required package first
root@guest:~#
root@guest:~# LINUX_HEADERS=$(uname -r) root@guest:~# apt -y install gcc make bzip2 linux-headers-$LINUX_HEADERS mount /dev/cdrom /mnt root@guest:~# cd /mnt root@guest:/mnt# ./VBoxLinuxAdditions.run Verifying archive integrity... All good. Uncompressing VirtualBox 5.2.22 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-4.15.0-20-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 is improved.
|
Sponsored Link |