From 4acd214fa82fe58e43b7d2e8ba3e21d7babee1e3 Mon Sep 17 00:00:00 2001 From: Andres Hermosilla Date: Thu, 3 Aug 2017 16:45:29 -0700 Subject: [PATCH] Added to virtualbox guide command to mount host shared directories --- virtualbox-vagrant.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/virtualbox-vagrant.md b/virtualbox-vagrant.md index d24f29b..6bdfa6f 100644 --- a/virtualbox-vagrant.md +++ b/virtualbox-vagrant.md @@ -10,4 +10,11 @@ https://coderwall.com/p/etzdmq/get-vagrant-box-guest-ip-from-host UUID Already exists http://www.groovypost.com/howto/virtualbox-error-uuid-hard-disk/ -`vboxmanage.exe internalcommands sethduuid "D:\vdocs\vdisc\jenkins-0.001\box-disk1_2.vmdk"` \ No newline at end of file +`vboxmanage.exe internalcommands sethduuid "D:\vdocs\vdisc\jenkins-0.001\box-disk1_2.vmdk"` + + +```bash +# Setup mounts in guest os +sudo su - +VBoxControl sharedfolder list | tail -n +7 | cut -d' ' -f3 | xargs -I{} sh -c 'echo mkdir -p /{} ; echo mount -t vboxsf {} /{}' +``` \ No newline at end of file