Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu Server - Install VirtualBox Guest Editions

Execute the script below with BASH.

# mount the cdrom (this will mount in read-only which is ok)
sudo mount /dev/cdrom /media/cdrom

# Install the necessary headers
sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r)

# now install guest additions
sudo /media/cdrom/

You will need to reboot the server for the changes to take effect.


Last updated: 16th August 2018
First published: 16th August 2018