Android模拟器和嵌套虚拟化 [英] Android emulator and nested virtualization

查看:115
本文介绍了Android模拟器和嵌套虚拟化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题.我使用hyper-v虚拟机来隔离开发过程.我在虚拟机上使用Windows 10.但是我无法在虚拟机上安装虚拟机监控程序.如何在没有Hyper-v的情况下调试xamarin.forms应用程序?

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?

谢谢.

快速解答:是.这是不可能的.嵌套hyper-v作品.

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

  1. VM不应具有动态RAM.应该是静态的.
  2. 您应该通过Powershell中的以下命令启用嵌套虚拟化:

Set-VMProcessor -VMName -ExposeVirtualizationExtensions $ true

Set-VMProcessor -VMName -ExposeVirtualizationExtensions $true

请参见https://docs.microsoft.com/zh-CN/virtualization/hyper-v-on-windows/user-guide/nested-virtualization

推荐答案

我找到了可以在Windows 10上使用的解决方案.

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

  1. 关闭或关闭您的虚拟机.
  2. 打开Powershell 并具有管理员权限.
  3. 应用
  1. Shutdown or switch off your virtual machine.
  2. Open powershell with administrator rights.
  3. Apply

Set-VMProcessor -VMName" -ExposeVirtualizationExtensions $ true

Set-VMProcessor -VMName "" -ExposeVirtualizationExtensions $true

其中VM的"VMName"名称.4.启用嵌套的hyper-v.

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

PS>这是预览功能.这可能会不稳定.具有相同内部版本的Windows 10应安装在主机和VM上.不支持动态内存,保存/还原功能.它是PREVIEW功能.请阅读更多

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

更新

我能够在虚拟机上安装虚拟机监控程序.但是我无法通过适用于Android的Visual Studio模拟器运行带有Android映像的嵌套虚拟机.系统管理程序的事件日志说:

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英寸KitKat(4.4)XXHDPI Phone.a.ripenko"被重置因为在虚拟处理器上发生了不可恢复的错误造成了三重故障.此错误可能是由问题引起的在管理程序中.如果问题仍然存在,请联系产品支持.(虚拟机ID)

'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 )

似乎嵌套hyper-v是原始的,它尚不能按预期工作.

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

这篇关于Android模拟器和嵌套虚拟化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆