VirtualBox : Install GuestAdditions2019/07/25 |
Install GuestAdditions into a Virtual Machine to improve Virtual Machine's System Performance.
The example below is to install GuestAdditions on a Virtual Machine [Debian_10]. |
|
[1] | Attach GuestAdditions' disk to the VM on VirtualBox Host. The target VM must be stopped. |
root@dlp:~# VBoxManage storageattach Debian_10 \
--storagectl Debian_10_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 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 6.0.10 Guest Additions for Linux........ VirtualBox Guest Additions installer Copying additional installer modules ... Installing additional modules ... VirtualBox Guest Additions: Starting. VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. This may take a while. VirtualBox Guest Additions: To build modules for other installed kernels, run VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version> VirtualBox Guest Additions: or VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all VirtualBox Guest Additions: Building the modules for kernel 4.19.0-5-amd64. update-initramfs: Generating /boot/initrd.img-4.19.0-5-amd64 VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restartedroot@guest:/mnt# |
After installing GuestAdditions, System Performance will be improved.
|
Sponsored Link |