Skip to content

Instantly share code, notes, and snippets.

@lopesivan
Forked from magnetikonline/README.md
Created October 24, 2017 22:50
Show Gist options
  • Save lopesivan/9112a017472dae1d4ca8e59906662a6f to your computer and use it in GitHub Desktop.
Save lopesivan/9112a017472dae1d4ca8e59906662a6f 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