Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save viniciusban/9c227a4eecd1d6f6aee6 to your computer and use it in GitHub Desktop.

Select an option

Save viniciusban/9c227a4eecd1d6f6aee6 to your computer and use it in GitHub Desktop.
Activate shared folders in Linux guest (VirtualBox)

For Elementary OS 18.04 guest under MacOS host.

Step 1: install Guest Additions

Open terminal inside the VM and type:

$ sudo apt -y update
$ sudo apt -y upgrade
$ sudo apt -y install dkms build-essential
$ sudo reboot

After reboot, open terminal again inside the VM and type:

$ sudo apt install -y virtualbox-guest-additions-iso
$ sudo apt install -y virtualbox-guest-x11
$ sudo adduser $USER vboxusers
$ sudo adduser $USER vboxsf

Shutdown the VM.

Step 2: create the shared folder

  1. Create a shared folder in Virtualbox on host computer.
  2. Boot up vm.
  3. cd /media/sf_<shared folder name> inside the VM.

Now you should have access to the shared folder.

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