Skip to content

Instantly share code, notes, and snippets.

@jccode
Forked from magnetikonline/README.md
Created August 14, 2017 09:10
Show Gist options
  • Save jccode/812c58f5d265ab68296d1ae4f4d70fbf to your computer and use it in GitHub Desktop.
Save jccode/812c58f5d265ab68296d1ae4f4d70fbf to your computer and use it in GitHub Desktop.
Install VirtualBox 5.1 guest additions on Ubuntu server guest.

Install VirtualBox 5.1 guest additions on Ubuntu server guest

Have tested these instructions successfully under an Ubuntu 16.04LTS guest:

  • Create Ubuntu server instance under VirtualBox (obviously).

  • Start VM, goto Devices - Insert Guest Additions CD image to mount the ISO image.

  • From the terminal, run the following commands:

     $ sudo su
     $ apt install gcc make
     $ mkdir -p /media/cdrom
     $ mount /dev/cdrom /media/cdrom
     $ /media/cdrom/VBoxLinuxAdditions.run
     $ reboot
  • After reboot:

     $ sudo usermod --append --groups vboxsf USERNAME
  • Host shares should now be mounted in Ubuntu guest under /media via the installed VBoxService service, set to start on system boot-up.

  • All done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment