Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtualbox: Fix invalid share names in Windows guests #8433

Merged
merged 1 commit into from
May 1, 2017

Conversation

legal90
Copy link
Contributor

@legal90 legal90 commented Apr 2, 2017

That PR fixes invalid share names in Windows guests, where backward slash character is
used as a path separator.

Details:
Currently, if we define the synced folder this way (for Windows guest):

config.vm.synced_folder "../", 'C:\Users\vagrant\my_share'

then the share id will be this string: 'C:\Users\vagrant\my_share'
In the guest it will be exposed as \\VBOXSRV\C:\Users\vagrant\my_share, which is an invalid path, so the share will not be available.

This Pull-Request adds \ to the regex, so this char will be replaced with _.
The result share id will be 'C:_Users_vagrant_my_share' and it will be available at \\VBOXSRV\C:_Users_vagrant_my_share without any issues.

The similar PR has been sent to Parallels provider: Parallels/vagrant-parallels#296

That fixes invalid share names in Windows guests, where backward slash character is
used as a path separator.
Copy link
Member

@chrisroberts chrisroberts left a comment

Choose a reason for hiding this comment

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

👍 Thanks!

@chrisroberts chrisroberts added this to the 1.9.5 milestone May 1, 2017
@chrisroberts chrisroberts merged commit 023a234 into hashicorp:master May 1, 2017
@legal90 legal90 deleted the fix-os-friendly-name branch May 2, 2017 06:47
@legal90
Copy link
Contributor Author

legal90 commented May 2, 2017

@chrisroberts Thank you for merging this PR! 🎉
However, the changelog note is not quite right:

hosts/windows: Fix invalid share names on Windows guests from Windows hosts [GH-8433]

This issue & fix are not specific to Windows hosts only. I guess it is relevant to any host OS. In particular, I've reproduced in on macOS.

@ghost
Copy link

ghost commented Apr 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants