C
C
Cheboksarinov2015-01-18 11:41:44
virtual box
Cheboksarinov, 2015-01-18 11:41:44

Synced_folder in Vagrant on Windows 8.1?

Hello everybody!
The problem is this: when trying to vagrant up, it gives the answer:

There is a syntax error in the following Vagrantfile. The syntax error message is reproduced below for convenience:
C:/sites/test/Vagrantfile:3: unterminated string meets end of file
C:/sites/test/Vagrantfile:3: syntax error, unexpected end-of-input, expecting keyword_end

Vagrantfile itself:
Vagrant.configure(2) do |config|
  config.vm.box = 'debian'
  config.vm.synced_folder 'C:\sites\test\www\', '/home/vagrant/www/'
  config.vm.network :forwarded_port, guest: 80, host: 8080
end

If you remove the line about folder synchronization, then the machine starts normally. The same config works on a poppy, with the folder path that is relevant for the makosi, of course.
First tried on 1.7.2, then tried 1.6.5.
What's wrong? :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-01-18
Protko @Fesor

Put the normal slashes for the path. Or shield them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question