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

No VMs are being created on Hyper-V #1062

Closed
naymore opened this issue Sep 14, 2019 · 9 comments
Closed

No VMs are being created on Hyper-V #1062

naymore opened this issue Sep 14, 2019 · 9 comments
Labels

Comments

@naymore
Copy link

naymore commented Sep 14, 2019

Note: This is a nested virtualization setup (Windows Server 2019 Hyper-v on top of a Windows 10 host). Docker for Windows is working on the same Windows Server 2019 guest and WSL2 is working in a Win 10 Insiders guest image.

So virtualization is basically working.
Multipass is however not even creating a hyper-v vm as far as I can tell.

C:\Users\subject8473>multipass launch --name foo -vvv
launch failed: The following errors occurred:
foo: timed out waiting for response

(that's not exactly very verbosive...)

C:\Users\subject8473>multipass info  --all
Name:           foo
State:          Unknown
IPv4:           --
Release:        --
Image hash:     babd5399b947 (Ubuntu 18.04 LTS)
Load:           --
Disk usage:     --
Memory usage:   --

Ok, so let's try to start it anyway...

[2019-09-14T11:18:43.596] [debug] [foo] Get-VM : Hyper-V was unable to find a virtual machine with name "foo".
At line:1 char:1
+ Get-VM -Name foo | Select-Object -ExpandProperty State
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (foo:String) [Get-VM], VirtualizationException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
/
  [2019-09-14T11:18:43.596] [debug] [foo] cmdlet exit status is 'false'
/
 /[2019-09-14T11:18:43.596] [debug] [foo] cmdlet: 'Get-VM -Name foo | Select-Object -ExpandProperty State'

 /[2019-09-14T11:18:43.628] [debug] [foo] Get-VM : Hyper-V was unable to find a virtual machine with name "foo".
At line:1 char:1
+ Get-VM -Name foo | Select-Object -ExpandProperty State
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (foo:String) [Get-VM], VirtualizationException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM

 /[2019-09-14T11:18:43.628] [debug] [foo] cmdlet exit status is 'false'

start failed: The following errors occurred:
foo: timed out waiting for response

And that's right if you take a look at the Hyper-V Manager...

image

@Saviq
Copy link
Collaborator

Saviq commented Sep 16, 2019

Hi @naymore, I'm afraid we only currently support Windows 10 (not Server) hosts with the Hyper-V backend. The upcoming version will be more explicit about that.

Still, can you look in the Event Viewer under "Windows Logs/Application" (I just filed #1063 to log to a better place) for hopefully more information about why it failed. Let us know please what you find out!

@Saviq Saviq added the question label Sep 16, 2019
@jaipalnair
Copy link

Hi,
I have install the multipass on Windows with virtual box, I am getting ip address 10.0.2.15 and can able to ping host machine from shell, but from host to guest (10.0.2.15) ping fails. Is there any way to change the ip address as bridge interface?. With this not reachable I am not able to login though web http://10.0.2.15:9000.

Thanks

@Saviq
Copy link
Collaborator

Saviq commented Apr 4, 2020

Hi @jaipalnair, we'll be working on adding support for bridged networking soon (#118). In the mean time, you could add a second, bridged, network adapter either with VBoxManage or VirtualBox itself - you'll need to run them through psexec.exe -s -i.

@jaipalnair
Copy link

Thanks for the prompt reply. I have got it working in Hyper-V, the issue with the hyper-V is when I enable it on my Windows 10, I cannot start my VMware session because of an error " VMWare Workstation and Device/Credential Guard are not compatible" . I am using VMWare session for GNS3 and other OS simulations.

@Saviq
Copy link
Collaborator

Saviq commented Apr 6, 2020

I'll close this as we never got a reply from the original reporter. @naymore please reopen if you're still interested in getting this going :)

@Saviq Saviq closed this as completed Apr 6, 2020
@kundeng
Copy link

kundeng commented Apr 17, 2020

How do you get multipass working in the nested windows 2019? It complains hyper-V not enabled.

@Saviq
Copy link
Collaborator

Saviq commented Apr 17, 2020

@kundeng nested virtualization isn't universally available. You first need to ensure Hyper-V (or VirtualBox) is working, Multipass can't function without those.

Please also file a separate issue if you think there's something wrong going on.

@Saviq Saviq reopened this Apr 17, 2020
@Saviq Saviq closed this as completed Apr 17, 2020
@kundeng
Copy link

kundeng commented Apr 18, 2020

I don't think multipass supports windows 2019 server edition. Yes, the windows 2019 server is a VM nested inside vmware workstation with vmx enabled for that VM.

@kundeng
Copy link

kundeng commented Apr 18, 2020

see this #1323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants