Skip to content

Commit

Permalink
providers/virtualbox: remove windows UNC path [GH-5933]
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jul 13, 2015
1 parent 9e2ab3b commit b118ab1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plugins/providers/virtualbox/driver/version_4_3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,6 @@ def set_name(name)
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",
Expand Down
5 changes: 5 additions & 0 deletions plugins/providers/virtualbox/driver/version_5_0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,14 @@ def set_name(name)
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",
Expand Down

1 comment on commit b118ab1

@ionutforyou
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix leads me to :

default: /home/vagrant/Code/wamp => Z:/wamp

Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=id -u vagrant,gid=getent group vagrant | cut -d: -f3, home_vagrant_Code_wamp /home/vagrant/Code/wamp
mount -t vboxsf -o uid=id -u vagrant,gid=id -g vagrant, home_vagrant_Code_wamp /home/vagrant/Code/wamp

The error output from the last command was:

/sbin/mount.vboxsf: mounting failed with the error: Invalid argument

Please sign in to comment.