diff --git a/plugins/providers/virtualbox/driver/version_4_1.rb b/plugins/providers/virtualbox/driver/version_4_1.rb index b3fd44978..d8ffe3a0e 100644 --- a/plugins/providers/virtualbox/driver/version_4_1.rb +++ b/plugins/providers/virtualbox/driver/version_4_1.rb @@ -452,11 +452,11 @@ module VagrantPlugins 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") + + # Add the shared folder + execute("sharedfolder", "add", @uuid, *args) end end diff --git a/plugins/providers/virtualbox/driver/version_4_2.rb b/plugins/providers/virtualbox/driver/version_4_2.rb index 765855e77..9299874a5 100644 --- a/plugins/providers/virtualbox/driver/version_4_2.rb +++ b/plugins/providers/virtualbox/driver/version_4_2.rb @@ -483,11 +483,11 @@ module VagrantPlugins 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") + + # Add the shared folder + execute("sharedfolder", "add", @uuid, *args) end end diff --git a/plugins/providers/virtualbox/driver/version_4_3.rb b/plugins/providers/virtualbox/driver/version_4_3.rb index ad3cc4cd9..552a49b26 100644 --- a/plugins/providers/virtualbox/driver/version_4_3.rb +++ b/plugins/providers/virtualbox/driver/version_4_3.rb @@ -500,11 +500,11 @@ module VagrantPlugins 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") + + # Add the shared folder + execute("sharedfolder", "add", @uuid, *args) end end