VirtualBox : Install GuestAdditions2024/05/10 |
Install [GuestAdditions] into a Virtual Machine to improve Virtual Machine's System Performance. |
|
[1] | Attach [GuestAdditions]' disk to the VM on VirtualBox Host. The target VM must be stopped. |
root@dlp:~#
root@dlp:~# apt -y install virtualbox-guest-additions-iso VBoxManage storageattach Ubuntu_2404 \
--storagectl Ubuntu_2404_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.34 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. ..... .....root@guest:/mnt# |
After installing [GuestAdditions], System Performance will be improved.
|
Sponsored Link |