Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Install Guest Additions in Ubuntu 14.04 (Should work for other versions, but thats the tested version) Server via CLI :

DL Guest Additions ISO

First add the Guest Additions iso to the VM

(I used PHPVirtualBox, but there are other ways)

Then run the following: (Note the last 2 lines confirm it worked)

sudo apt-get remove -y dkms build-essential linux-headers-*
sudo apt-get install -y dkms build-essential linux-headers-$(uname -r) module-assistant
echo y | sudo m-a prepare
sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom
sudo /mnt/cdrom/VBoxLinuxAdditions.run
lsmod | grep -io vboxguest
modinfo vboxguest | grep Guest

Uninstall VirtualBox tools

Note: I used /dev/cdrom1 because in my case, as I suspect may be the case often, I was migrating to another hypervisor and it called the /dev/cdrom1 vs /dev/cdrom/.

lsmod | grep -io vboxguest
modinfo vboxguest | grep Guest
sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom1 /mnt/cdrom
sudo /mnt/cdrom/VBoxLinuxAdditions.run uninstall
lsmod | grep -io vboxguest
modinfo vboxguest | grep Guest
sudo reboot
  • No labels