Skip to content

Instantly share code, notes, and snippets.

@migcosta
Created July 25, 2018 09:01
Show Gist options
  • Save migcosta/fcb29c1979e68a85f8ab74440fac968a to your computer and use it in GitHub Desktop.
Save migcosta/fcb29c1979e68a85f8ab74440fac968a to your computer and use it in GitHub Desktop.
virtualbox mount shared folders on www
1 - turn off the VM
2 - add the shared folder with the auto mount option: folder name repos (on the VM it will be sf_repos)
3 - turn on the machine
4 - find the shared folder location: mount | grep vbox
5 - find the user id and the group id for that you whant to use:
id -u username
id -g username
6 - create a container folder on www: /var/www/remote
7 - edit ftabs: nano /etc/fstab
8 - add:*
/media/sf_repos /var/www/remote none bind 0 0
9 - reboot
* this is for ubuntu. On debian you should need to add the user and the permissions
reference: https://www.turnkeylinux.org/docs/virtualbox-guest-addons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment