Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vagrant symlink protocol error inside synced folder using relative path

I am trying to create a vanilla ubuntu/trusty64 guest box with symbolic links using a relative path on an ubuntu host.

> mkdir -p tmp1/tmp2
> mkdir -p tmp1/tmp3
> vagrant init ubuntu/trusty64

Inside the newly created Vagrantfile add the folder syncing:

...
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder File.expand_path("~/tmp1"),
                                         "/home/vagrant/tmp1",
                                         :create => true
...

Then bring up the box and ssh to it:

> vagrant up
> vagrant ssh

Then, cd to the tmp2 directory and try to create a symlink to tmp3:

> cd tmp1/tmp2
> ln -s ../tmp3 test
ln: failed to create symbolic link ‘test’: Protocol error

Version info:

> vagrant version
Vagrant 1.7.4
> vboxmanage --version
5.0.4r102546

Has anyone seen this before?

like image 503
Bill Avatar asked Oct 31 '22 18:10

Bill


1 Answers

Had same issue with the homestead environment on Windows 10. In the end it worked by starting the terminal with admin credentials (Run as administrator).

like image 111
stefan Avatar answered Nov 02 '22 07:11

stefan