问题
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.
- VM should not have dynamic RAM. Should be static.
- 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.
- Shutdown or switch off your virtual machine.
- Open powershell with administrator rights.
- 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