Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I share a Windows 7 folder to lucid32 running in vagrant

Tags:

vagrant

I am using vagrant to run a lucid32 install. I have installed LAMP and got that working. What do I need to do in order to mount a windows share on the host machine inside the lucid32 install?

I tried adding A windows path to the vagrant file but get:

C:/Users/myuser/Sites/Vagrantfile:37: invalid Unicode escape config.vm.share_folder "vagwin","/windows", "c:\users\lukem\Sites"

like image 872
codecowboy Avatar asked Jul 10 '12 16:07

codecowboy


2 Answers

You need to double-escape the slashes, atleast I had to on Windows 7, ie, each \ should be \\

like image 183
Johan Avatar answered Oct 05 '22 22:10

Johan


You can also use forward slashes to avoid having to escape the backslashes.

 config.vm.synced_folder "c:/Users/david", "/home/david"

will map your Windows home directory to your home directory on the VM (assuming your name is david).

like image 37
oenpelli Avatar answered Oct 05 '22 20:10

oenpelli