Last Updated: August 12, 2019
·
21.95K
· turtlebender

Symlinks in shares for Vagrant

I use symlinks in my shared directories for vagrant. Virtualbox doesn't allow this by default, so I found here: https://github.com/mitchellh/vagrant/issues/713#issuecomment-4416384 that you can add the following config entry to allow symlinks to work:

config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME", "1"]

2 Responses
Add your response

Since Vagrant 1.1 this is now default behavior.
See https://github.com/mitchellh/vagrant/issues/713#issuecomment-13201507

Just for reference, for Vagrant 1.2.2 customizing provider is now done by:

config.vm.provider "virtualbox" do |v|
  v.customize (...)
end
over 1 year ago ·

For those using Windows Host (7 in my particular case), the guest OS will not be able to create SymLinks unless VirtualBox is running as admin.

over 1 year ago ·