From ea66e22d2ed36501087eaa9b4bfe7bc4d8255421 Mon Sep 17 00:00:00 2001 From: Indrek Ardel Date: Thu, 5 Nov 2015 18:55:34 +0200 Subject: [PATCH 1/2] Use UNC paths for shared folders on Windows host --- plugins/providers/virtualbox/driver/version_4_3.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/providers/virtualbox/driver/version_4_3.rb b/plugins/providers/virtualbox/driver/version_4_3.rb index f895739d3..b77b2a4f9 100644 --- a/plugins/providers/virtualbox/driver/version_4_3.rb +++ b/plugins/providers/virtualbox/driver/version_4_3.rb @@ -610,6 +610,9 @@ 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", From 4a7aa83e58fb8269740e4783ea30a862af5c7124 Mon Sep 17 00:00:00 2001 From: Indrek Ardel Date: Thu, 5 Nov 2015 18:56:24 +0200 Subject: [PATCH 2/2] Use UNC paths for shared folders on Windows host --- plugins/providers/virtualbox/driver/version_5_0.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/providers/virtualbox/driver/version_5_0.rb b/plugins/providers/virtualbox/driver/version_5_0.rb index d13330c00..75a71c4f1 100644 --- a/plugins/providers/virtualbox/driver/version_5_0.rb +++ b/plugins/providers/virtualbox/driver/version_5_0.rb @@ -611,14 +611,9 @@ module VagrantPlugins def share_folders(folders) folders.each do |folder| hostpath = folder[:hostpath] - -=begin - # Removed for GH-5933 until further research. if Vagrant::Util::Platform.windows? hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath) end -=end - args = ["--name", folder[:name], "--hostpath",