Ubuntu Server - Install VirtualBox Guest Editions

Execute the script below with BASH.

#!/bin/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/VBoxLinuxAdditions.run

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

References

Author

Programster

Stuart is a software developer with a passion for Linux and open source projects.

comments powered by Disqus