NBCLUB笔记本电脑俱乐部 合肥THINKPAD APPLE LENOVO DELL专卖店's Archiver

bobwu 发表于 2023-8-30 21:13

【Hyper-V】与【VirtualBox】【VMware】【手游模拟器】冲突的解决方法

<h2 id="top_0" class="wikigeneratedid" style="border: 0px; font-size: 18px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">知识点分析</h2><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">安装Hyper-V后以后可能会导致与手游模拟器产生冲突,这是因为安装了虚拟机平台及Hyper-v导致的,冲突表现为:</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">打开VirtualBox、VMware创建64位虚拟机时,出现了如下错误提示:</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">VT-x/AMD-V hardware acceleration has been enabled, but is not operational. Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot.<br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">Please ensure that you have enabled VT-x/AMD-V properly in the BIOS of your host computer.</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);"><img src="https://chinakb.lenovo.com.cn/chinakb/prod-api/file/downloadFile?key=uniko/IMAGE/e81a98e3d9a16337210da7cd55c90561-1690864051681.png&amp;name=mceclip1.png" style="margin: 0px; padding: 0px; border: 0px; cursor: pointer; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></p><div class="highlight" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);"><div class="hljs-ln-numbers" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp;</div><div class="hljs-ln-numbers" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><div class="hljs-ln-line hljs-ln-n" data-line-number="3" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">这是因为Windows Phone SDK在安装时或手动安装了控制面板中的Hyper-v和虚拟化平台导致的。</div><div class="hljs-ln-line hljs-ln-n" data-line-number="3" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp;</div><div class="hljs-ln-line hljs-ln-n" data-line-number="3" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">手机模拟器需要用VT指令集来实现虚拟化。而Hyper-V是微软的虚拟化软件,类似VirtualBox、VMware,可以用来创建虚拟机。它们被称为Hypervisor或Virtual Machine Monitor(虚拟机监视器)。 由于Hyper-V与VirtualBox、VMware及手机模拟器不能共存,因此当Hyper-V打开时,VirtualBox、VMware及手机模拟器就不能正常工作了。上面错误提示中提到的”VT-x/AMD-V“是处理器的硬件虚拟化支持,已经在BIOS中打开了; Hyper-V使用了它,于是VirtualBox、VMware就抱怨说无法使用(”not operational“)了。</div></div></div><h2 id="top_2" class="wikigeneratedid" style="border: 0px; font-size: 18px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);"><br style="outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">操作步骤</h2><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">&nbsp;</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">解决方法就是禁用Hyper-V。途径有多种:</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">第一种方法:使用管理员权限运行命令:bcdedit /set hypervisorlaunchtype off。</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;对应的打开Hyper-V的命令:bcdedit /set hypervisorlaunchtype auto。</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">&nbsp;</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);"><img src="https://chinakb.lenovo.com.cn/chinakb/prod-api/file/downloadFile?key=uniko/IMAGE/fe38f062778d3f82eb03a81c6eccec2e-1690863951570.png&amp;name=mceclip0.png" width="984" height="543" style="margin: 0px; padding: 0px; border: 0px; cursor: pointer; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">&nbsp;</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">&nbsp;</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">第二种方法:使用”添加或删除Windows组件“图形界面程序,在里面取消勾选Hyper-V。</p><h2 id="top_2" class="wikigeneratedid" style="border: 0px; font-size: 18px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);"><img src="https://pic3.zhimg.com/80/v2-11b0401c5f8e58f46fc7c6519e9880d6_720w.webp" width="466" height="549" style="margin: 0px; padding: 0px; border: 0px; cursor: pointer; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></h2><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">上述方法都需要<strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">重启</strong>计算机。而且禁用Hyper-V之后就无法使用Windows Phone SDK中的手机模拟器了。</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">&nbsp;</p><h2 class="wikigeneratedid" style="border: 0px; font-size: 18px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">Hyper-V与模拟器共存方案(尝试性):</h2><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">传统的解决方法是在选择多系统的启动菜单中新增一个选项,让 Windows 在启动时不加载 Hyper-V 。</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">主要步骤如下:</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);">解决办法:</p><div style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; color: rgb(52, 52, 52); font-family: &quot;Microsoft YaHei&quot;, Arial, sans-serif, 宋体; background-color: rgb(255, 255, 255);"><div style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">下载安装EasyBCD并运行,然后添加新条目:</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp;</p><div class="image-package" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><div class="image-container" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><div class="image-container-fill" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><img src="https://chinakb.lenovo.com.cn/chinakb/prod-api/file/downloadFile?key=uniko/IMAGE/b228c19745babd42179750dfb6e8efd7-1690864418147.png&amp;name=mceclip2.png" width="721" height="320" style="margin: 0px; padding: 0px; border: 0px; cursor: pointer; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></div><div class="image-view" data-width="637" data-height="278" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp;</div></div><div class="image-caption" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp;</div></div><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">点击右下角的"保存设置"然后"查看设置"</p><div class="image-package" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><div class="image-container" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><div class="image-container-fill" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;"><img src="https://chinakb.lenovo.com.cn/chinakb/prod-api/file/downloadFile?key=uniko/IMAGE/f3ca9f5224a6f097f6d71b8090a1df8c-1690864430433.png&amp;name=mceclip3.png" width="684" height="466" style="margin: 0px; padding: 0px; border: 0px; cursor: pointer; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent; max-width: 100%; height: auto !important;"></div><div class="image-view" data-width="565" data-height="386" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp;</div></div><div class="image-caption" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp;</div></div><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">这时可以看到新的启动项出现了,里面有一串 BCD ID:{xxx....xxx}。</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">复制里面那一串无序字符,在命令行中执行命令:</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">bcdedit /set {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} hypervisorlaunchtype OFF</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">&nbsp;</p><p style="border: 0px; outline: 0px; text-size-adjust: none; -webkit-tap-highlight-color: transparent;">这样就成功了,多了一个禁用hyper-v的启动项。</p></div></div>

chengxyt 发表于 2023-8-31 07:42

SF

页: [1]

皖ICP备17017115-1号

皖公网安备 34010402700113号


Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.