From 7a94eba0b4d6de02e94832943e0fdee8d86066bd Mon Sep 17 00:00:00 2001 From: Benjamin Staneck Date: Sat, 9 May 2015 02:03:33 +0200 Subject: [PATCH] Port changes from pull request #5495 to the vb_5 module to fix #4815 here, too. --- plugins/providers/virtualbox/driver/version_5_0.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/providers/virtualbox/driver/version_5_0.rb b/plugins/providers/virtualbox/driver/version_5_0.rb index b1e5dc6f4..d7d3b58df 100644 --- a/plugins/providers/virtualbox/driver/version_5_0.rb +++ b/plugins/providers/virtualbox/driver/version_5_0.rb @@ -496,10 +496,14 @@ module VagrantPlugins def share_folders(folders) folders.each do |folder| + hostpath = folder[:hostpath] + if Vagrant::Util::Platform.windows? + hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath) + end args = ["--name", folder[:name], "--hostpath", - folder[:hostpath]] + hostpath] args << "--transient" if folder.key?(:transient) && folder[:transient] # Enable symlinks on the shared folder