-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Hyper-V switch selection does not work with non ascii names. #9679
Comments
The possible workaround with adding
|
a simple
If any help to someone. |
Adding This is probably not the best solution since it's only for switchname but it's the minimum thing to make it work. |
Keep track of selected Hyper-V switch using the ID instead of name to prevent any encoding issues that may occur switching between PowerShell and Ruby. With the IDs staying consistent, the switch name can be fetched from the provided ID. Fixes hashicorp#9679 hashicorp#8794 hashicorp#9451
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. |
Vagrant version
Host operating system
Windows 10 Pro, Version 1709, Swedish UI, Locale and Input
Guest operating system
This fails before getting this far but I was trying with Windows Server 2016 Standard
Vagrantfile
Debug output
https://gist.github.com/kmpm/d5a44847741180f96615da3fc0057264
Expected behavior
The chosen switch called "Standardväxel" should have been used.
Actual behavior
It tries to use the right name but with wrong encoding and hyper-v does not accept that.
Steps to reproduce
with non US-ASCII characters in name).
vagrant up
Notes
When running vagrant in debug mode it prompts the switch as
Standardväxel
(see linked log at about line 914) but running without debug shows the correct nameStandardväxel
but seems to use the other internally.I can not change name on this switch since it is the default switch always created in newer hyper-v installations on Windows 10. On an English machine it's called "Default Switch". See https://blogs.technet.microsoft.com/virtualization/2017/11/13/whats-new-in-hyper-v-for-windows-10-fall-creators-update/
In packer I can configure the switch to use with the
switch_name
argument and enter the string as "Standardväxel" but I can't find such a workaround in vagrant.normal output
The text was updated successfully, but these errors were encountered: