Tag: virtualbox

How to Install VirtualBox Guest Additions in Ubuntu Server 12.04

Had this Evernote’d, seems incomplete (and I don’t know how accurate it is) but I’ll post this anyway, might become useful one day…

To save my non geek readers, of which I don’t believe I have any (readers that is…) from having to scroll through blocks of useless code/jargon. Click the link below for what should be a fairly accurate step-by-step guide on how to install VirtualBox guest additions in Ubuntu Server 12.04, along with how to auto mount your shared folders.

Installing VirtualBox Guest Additions on Ubuntu Server 12.04

  1. sudo apt-get install dkms
  2. sudo apt-get install build-essential
  3. sudo apt-get install linux-headers-uname -r
  4. sudo reboot
  5. cd /media
  6. sudo mkdir cdrom [if doesn’t exist]
  7. sudo mount /dev/cdrom /media/cdrom
  8. cd cdrom
  9. ls
  10. Run the relevant installer:
  11. sudo ./VBoxLinuxAdditions.run

Auto mount shared folder

  1. comment out the share mounting lines in /etc/fstab
  2. edit the /etc/rc.local file [not the /etc/init.d/rc.local file] to add the mount points in the form of: mount.vboxsf -w HOST_FOLDER /MOUNT_POINT

e.g. my original /etc/rc.local file contained the following:

It now looks like this: