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 installedVBoxService
service, set to start on system boot-up. -
All done