VirtualBox : Install GuestAdditions2021/09/28 |
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 [Debian_11]. |
|
[1] | Attach [GuestAdditions]' disk to the VM on VirtualBox Host. The target VM must be stopped. |
root@dlp:~# VBoxManage storageattach Debian_11 \
--storagectl Debian_11_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:~#
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.1.26 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. ..... .....root@guest:/mnt# |
After installing [GuestAdditions], System Performance will be improved.
|
Sponsored Link |