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?
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With