Android emulator and nested virtualization

青春壹個敷衍的年華 提交于 2021-02-08 02:19:28

问题


I have a problem. I use hyper-v virtual machine to isolate development process. I use windows 10 on virtual machine. But I can't install hypervisor on my virtual machine. How I can debug xamarin.forms application without hyper-v?

Thanks.

QUICK ANSWER: YES. It isn't possible. Nesting hyper-v works.

  1. VM should not have dynamic RAM. Should be static.
  2. You should enable nested virtualization by the following command in Powershell:

Set-VMProcessor -VMName -ExposeVirtualizationExtensions $true

See more at https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization


回答1:


I found the solution that can be used on Windows 10.

  1. Shutdown or switch off your virtual machine.
  2. Open powershell with administrator rights.
  3. Apply

Set-VMProcessor -VMName "" -ExposeVirtualizationExtensions $true

where "VMName" name of VM. 4. It enables nested hyper-v.

PS> It's preview feature. That can work unstable. Windows 10 with the same build should be installed on host and VM. No dynamic memory, save/restore feature are supported. it's PREVIEW feature. Please, read more https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/user_guide/nesting?f=255&MSPPError=-2147217396

UPDATE

I'm able to install hypervisor on virtual machine. But I'm not able to run nested virtual machine with android image by Visual Studio Emulator for Android. Eventlog of hypervisor says:

'VS Emulator 5-inch KitKat (4.4) XXHDPI Phone.a.ripenko' was reset because an unrecoverable error occurred on a virtual processor that caused a triple fault. This error might have been caused by a problem in the hypervisor. If the problem persists, contact Product Support. (Virtual machine ID )

Seems that nesting hyper-v is raw and it doesn't work as expected yet.



来源:https://stackoverflow.com/questions/38484893/android-emulator-and-nested-virtualization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!