Skip to content

Instantly share code, notes, and snippets.

@krak3n
Created August 26, 2012 08:40
Show Gist options
  • Save krak3n/3476269 to your computer and use it in GitHub Desktop.
Save krak3n/3476269 to your computer and use it in GitHub Desktop.
Enable symlinks in Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Ensure you set your file system mount to NFS, you'll need to provide the VM with a static IP for a hostonly network.
#
Vagrant::Config.run do |config|
# ...
config.vm.share_folder("v-root", "/path/to/mount", ".", :nfs => true)
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
config.vm.network :hostonly, "X.X.X.X"
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment