Search code examples
vagrantvagrant-windows

vagrant windows folder setup


I'm setting up vagrant on my Windows 7 and configuring Vagrantfile. Can I set the actual folder and guest folder to be the same? Here is my code:

config.vm.synced_folder "C:\Users\dmitry\VM\code", "/vagrant/code"

Solution

  • Yes you can. I used the config like below and it worked beautifully:

    config.vm.synced_folder "C:/git/ui", "/home/vagrant/ui"