Ubuntu 24.04
Sponsored Link

VirtualBox : Install GuestAdditions2024/05/10

 

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_2404].

[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_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:~#
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.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.

Matched Content