From 387692f9c8fa4031050646e2773b3d2d9b2c994e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 6 Feb 2013 11:51:59 -0800 Subject: [PATCH] Enable symlinks on vboxsf for VirtualBox 4.2 [GH-713] --- plugins/providers/virtualbox/driver/version_4_2.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/providers/virtualbox/driver/version_4_2.rb b/plugins/providers/virtualbox/driver/version_4_2.rb index 33652154a..4f85ccd21 100644 --- a/plugins/providers/virtualbox/driver/version_4_2.rb +++ b/plugins/providers/virtualbox/driver/version_4_2.rb @@ -408,7 +408,12 @@ module VagrantPlugins "--hostpath", folder[:hostpath]] args << "--transient" if folder.has_key?(:transient) && folder[:transient] + + # Add the shared folder execute("sharedfolder", "add", @uuid, *args) + + # Enable symlinks on the shared folder + execute("setextradata", @uuid, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/#{folder[:name]}", "1") end end