Skip to content

Instantly share code, notes, and snippets.

@ruben-rodriguez
Created September 28, 2018 09:18
Show Gist options
  • Save ruben-rodriguez/63b542fb08c41625d7653af504fdd2b0 to your computer and use it in GitHub Desktop.
Save ruben-rodriguez/63b542fb08c41625d7653af504fdd2b0 to your computer and use it in GitHub Desktop.
VirtualBox shared folders
1 - Insert guest additions to running machine from Devices menu
2 - Mount the CD with guest additions:
$ sudo mount /dev/cdrom /media
$ ls -lh /media
3 - Install building dependencies:
$ sudo apt-get update
$ sudo apt-get install dkms build-essential linux-headers-generic linux-headers-$(uname -r)
4 - Execute installer:
$ sudo /media/VBoxLinuxAdditions.run
5 - Create and share folder from VirtualBox machine settings (folder name in this example is 'shared')
6 - Mount folder on Linux
$ sudo mount -t vboxsf shared ~/shared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment