Ubuntu 18.04: Install VirtualBox Guest Additions


Table of Contents

1 Insert Guest Additions on host machine

Insert Guest Additions from window menu of VirtualBox.

Devices -> Insert Guest Additions CD image

You can also use VBoxManage command to insert Guest Additions.

$ VBoxManage storageattach <uuid> –storagectl “IDE” –port 1 –device 0 –medium additions

You can check uuid with VBoxManage list vms.

$ VBoxManage list vms”vbx-ubuntu-1804″ {d9b2252b-3486-4bf3-92d4-de7430b0febc}

2 Build and install Guest Additions on guest machine

Mount Guest Additions.

sudo mount -t iso9660 /dev/sr0 /mnt

Install packages for building Guest Additions.

$ sudo apt install -y gcc make perl linux-headers-generic

Build and install Guest Addtions.

$ sudo sh /mnt/VBoxLinuxAdditions.run

Reboot guest machine.

$ sudo reboot

After reboot, Guest Additions driver which has a vbox prefix is loaded.

$ lsmod | grep vboxvboxsf 45056 0vboxvideo 36864 4ttm 106496 1 vboxvideodrm_kms_helper 167936 1 vboxvideodrm 401408 7 vboxvideo,ttm,drm_kms_helpersyscopyarea 16384 2 vboxvideo,drm_kms_helpervboxguest 303104 3 vboxsfsysfillrect 16384 2 vboxvideo,drm_kms_helpersysimgblt 16384 2 vboxvideo,drm_kms_helper

Android | Linux | SDL - Narrow Escape