-
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
Vagrant up fail with Hyper-V #8794
Comments
Hello, |
Confirmed. Seems to be an encoding issue.
|
I have the same issue with
How to workaround this? |
@AlexRadch Create a new "virtual switch" (виртуальный коммутатор) in Hyper-V Manager with an english name like "Default Virtual Switch" with the same options then retry |
@Prometee yes it works. |
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
Hi there, It looks like this has been resolved within a previously shipped version of Vagrant so I am now closing this issue. If the original issue was not fully resolved, please reopen this issue or create a new one. Cheers! |
I'm on 2.2.7 and I still get this error: ==> slave2: Starting the machine... Script: start_vm.ps1 |
Hi @jospradlin, Sorry that you're seeing this error when bringing up a VM. I see that your error is in the Cheers! 😄 |
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
1.9.7
Host operating system
Windows 10 (french version)
Guest operating system
gusztavvargadr/w10e
Vagrantfile
Expected behavior
I expect a new VM.
Actual behavior
I get this error:
F:>vagrant up
Bringing machine 'default' up with 'hyperv' provider...
==> default: Verifying Hyper-V is enabled...
==> default: Configured startup memory is 1024
==> default: Configured cpus number is 1
==> default: Importing a Hyper-V instance
default: Cloning virtual hard drive...
default: Creating and registering the VM...
An error occurred while executing a PowerShell script. This error
is shown below. Please read the error message and see if this is
a configuration error with your system. If it is not, then please
report a bug.
Script: import_vm_vmcx.ps1
Error:
Connect-VMNetworkAdapter : Hyper-V n'a trouvé aucun commutateur virtuel
portant le nom « Pour Accès Externe ».
Au caractère C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.9.7\plugins\prov
iders\hyperv\scripts\import_vm_vmcx.ps1:96 : 1
But i get this commutator "Pour Accès Externe", into Hyper-V.
I suspect, it's due to "è" (seen like this into Hyper-V), but become "è" with Vagrant.
Steps to reproduce
References
No
The text was updated successfully, but these errors were encountered: