Skip to content

Instantly share code, notes, and snippets.

@gpmnsp
Forked from magnetikonline/README.md
Last active October 17, 2017 20:27
Show Gist options
  • Save gpmnsp/779afb0db283dd99840cace1aff2ef22 to your computer and use it in GitHub Desktop.
Save gpmnsp/779afb0db283dd99840cace1aff2ef22 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