From 889233ed946e554425f3b5736ff5da31f51f2db9 Mon Sep 17 00:00:00 2001 From: Stephan Meissl Date: Wed, 23 Oct 2013 23:00:07 +0200 Subject: [PATCH] Automatically enable symlinks on vboxsf for VirtualBox 4.1 (see #713 and 387692f9c8fa4031050646e2773b3d2d9b2c994e). --- plugins/providers/virtualbox/driver/version_4_1.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/providers/virtualbox/driver/version_4_1.rb b/plugins/providers/virtualbox/driver/version_4_1.rb index 7a648d303..2854e39ba 100644 --- a/plugins/providers/virtualbox/driver/version_4_1.rb +++ b/plugins/providers/virtualbox/driver/version_4_1.rb @@ -427,7 +427,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