适用现象:安卓模拟器卡在 98%~99%、提示“虚拟机启动失败”或要求“关闭 Hyper-V”;已经删除 WSL、取消勾选 Hyper-V,重启后仍然无效。
本文案例环境:Windows 11 专业版、Build 26200、Intel Core i5-12600KF、一款采用传统 VirtualBox 内核的安卓模拟器。彻底关闭 VBS/Windows Hypervisor 后,模拟器成功直接调用 VT-x,Android 正常启动;更意外的是,原本玩《英雄联盟》时的卡顿和掉帧也消失了。性能变化因电脑和游戏场景而异,不能保证每台机器都有相同提升。
先说结论
这次真正起作用的操作只有一个核心目标:彻底停止 VBS 和 Windows Hypervisor,让 CPU 的 VT-x 重新由安卓模拟器直接使用。
删除 WSL、取消勾选 Hyper-V,并不代表 Windows Hypervisor 已经停止。
Windows 11 的 VBS(基于虚拟化的安全)、Credential Guard、内存完整性,以及新版 Windows Hello 密钥隔离,都可能在没有安装完整 Hyper-V 功能的情况下加载 Windows Hypervisor。许多传统安卓模拟器基于 VirtualBox,需要直接使用 Intel VT-x/AMD-V;只要微软 Hypervisor 仍在运行,它们就可能无法启动或出现性能异常。
本案例最终发现,冲突来源不止一层:
- Windows 可选功能虽然全部禁用,但 Hypervisor 仍在运行。
- BCD 启动项仍需显式关闭 Hypervisor/VSM。
RequireMicrosoftSignedBootChain启动链策略仍在要求 VBS。- Windows Hello 的 VBS Key Isolation 又重新拉起了安全内核。
最终关闭这些 VBS 入口后,系统状态变为:
HypervisorPresent : False
VirtualizationBasedSecurityStatus : 0
VirtualizationFirmwareEnabled : True
安卓模拟器日志也由:
Raw-mode is unavailable courtesy of Hyper-V.
VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT
变为:
HM: Using VT-x implementation 2.0
rom boot success!
Android system boot completed
重要警告:操作前必须知道什么
这套方法会降低 Windows 的一部分安全防护,包括 VBS 隔离、Windows Hello 增强登录安全、凭据/密钥隔离,以及可能启用的内存完整性。
请先确认以下事项:
- 你确实需要使用不兼容 Hyper-V 的旧版安卓模拟器/VirtualBox 内核。
- 你知道 Windows 或 Microsoft 账户的完整密码,不能只记得 PIN。
- 你接受 PIN 可能需要重新设置。
- 你有管理员权限。
- 你愿意用一部分系统隔离安全性换取旧版虚拟机兼容性。
不要关闭以下项目:
- BIOS 中的 Intel Virtualization Technology、VT-x 或 AMD-V——安卓模拟器本身需要它。
- TPM 2.0。
- UEFI 安全启动(Secure Boot)。
- Windows Exploit Protection(漏洞利用防护)。
如果模拟器厂商提供 Hyper-V 兼容版,优先尝试兼容版本,通常比关闭 VBS 更安全。只有在兼容版无法满足需求、模拟器仍提示 VT-x/Hyper-V 冲突时,再考虑本文方案。
第一步:确认真正的冲突是不是 Hypervisor/VBS
以管理员身份打开 PowerShell,运行:
systeminfo
如果输出末尾出现:
A hypervisor has been detected.
或中文系统显示“检测到虚拟机监控程序”,说明微软 Hypervisor 仍在运行。
继续执行:
Get-CimInstance Win32_ComputerSystem |
Select-Object HypervisorPresent
Get-CimInstance -Namespace rootMicrosoftWindowsDeviceGuard `
-ClassName Win32_DeviceGuard |
Select-Object VirtualizationBasedSecurityStatus,
SecurityServicesConfigured,
SecurityServicesRunning
关键值含义:
HypervisorPresent = True:微软 Hypervisor 已加载。VirtualizationBasedSecurityStatus = 2:VBS 正在运行。VirtualizationBasedSecurityStatus = 0:VBS 未启用。
还可以检查处理器虚拟化状态:
Get-CimInstance Win32_Processor |
Select-Object -First 1 `
VirtualizationFirmwareEnabled,
SecondLevelAddressTranslationExtensions,
VMMonitorModeExtensions
注意:Hypervisor 正在运行时,VT-x 可能被它接管,因此这些值可能显示 False。这不一定表示 BIOS 关闭了 VT-x。
检查安卓模拟器错误日志
常见日志位置:
%LOCALAPPDATA%模拟器厂商目录模拟器日志文件.log
模拟器虚拟机目录LogsVBox.log
PowerShell 搜索典型错误:
Select-String `
-Path "模拟器日志文件路径" `
-Pattern 'error|failed|hyper-v|vt-x' `
-CaseSensitive:$false
如果 VBox.log 中出现以下任一内容,基本可以确定是 Hyper-V/VBS 冲突:
VT-x is not available
Raw-mode is unavailable courtesy of Hyper-V
VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT
第二步:关闭不需要的 Windows 虚拟化功能
按 Win + R,输入:
optionalfeatures
如果你不再使用对应功能,取消勾选:
- Hyper-V
- 虚拟机平台(Virtual Machine Platform)
- Windows 虚拟机监控程序平台(Windows Hypervisor Platform)
- Windows 沙盒
- 适用于 Linux 的 Windows 子系统(WSL)
不要为了安卓模拟器盲目删除自己仍需要的 WSL、Docker 或其他虚拟机环境;这些软件与“完全关闭 Hypervisor”的目标本身就存在冲突,需要二选一或改用兼容版本。
也可在 PowerShell 中查看功能状态:
$names = @(
'Microsoft-Hyper-V-All',
'VirtualMachinePlatform',
'HypervisorPlatform',
'Containers-DisposableClientVM',
'Microsoft-Windows-Subsystem-Linux'
)
foreach ($name in $names) {
Get-WindowsOptionalFeature -Online -FeatureName $name |
Select-Object FeatureName, State
}
第三步:关闭内存完整性与 VBS 组策略
关闭内存完整性
打开:
Windows 安全中心 → 设备安全性 → 内核隔离详细信息 → 内存完整性
将“内存完整性”设为关闭。
Windows 11 专业版:关闭组策略
按 Win + R,运行:
gpedit.msc
进入:
计算机配置
→ 管理模板
→ 系统
→ Device Guard(设备防护)
→ 启用基于虚拟化的安全性
将它设为“已禁用”,而不是“未配置”。
第四步:先备份注册表和启动配置
以管理员身份打开“命令提示符”,创建备份目录:
mkdir C:VBS-Backup
备份 Device Guard 与无密码登录配置:
reg export "HKLMSYSTEMCurrentControlSetControlDeviceGuard" "C:VBS-BackupDeviceGuard.reg" /y
reg export "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionPasswordLessDevice" "C:VBS-BackupPasswordLess.reg" /y
bcdedit /enum all > "C:VBS-Backupbcd-before.txt"
确认三个文件都已生成后再继续。
第五步:关闭常见 VBS、Credential Guard 与 HVCI 开关
以下命令必须在管理员命令提示符中运行:
reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuard" /v EnableVirtualizationBasedSecurity /t REG_DWORD /d 0 /f
reg add "HKLMSOFTWAREPoliciesMicrosoftWindowsDeviceGuard" /v EnableVirtualizationBasedSecurity /t REG_DWORD /d 0 /f
reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuard" /v RequirePlatformSecurityFeatures /t REG_DWORD /d 0 /f
reg add "HKLMSOFTWAREPoliciesMicrosoftWindowsDeviceGuard" /v RequirePlatformSecurityFeatures /t REG_DWORD /d 0 /f
reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuardScenariosHypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 0 /f
reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuardScenariosCredentialGuard" /v Enabled /t REG_DWORD /d 0 /f
reg add "HKLMSYSTEMCurrentControlSetControlLsa" /v LsaCfgFlags /t REG_DWORD /d 0 /f
这些值分别对应 VBS、平台安全要求、内存完整性/HVCI 和 Credential Guard。微软说明,VBS 会利用 Windows Hypervisor 创建与普通 Windows 内核隔离的环境,用于保护凭据、内核代码完整性等安全资产。详见 微软 VBS 文档 和 Credential Guard 文档。
第六步:处理新版 Windows 11 的两个“隐藏入口”
这是很多旧教程遗漏、但在 Windows 11 24H2/25H2 或预览版系统上很关键的一步。
1. Microsoft 签名启动链策略
先查询:
reg query "HKLMSYSTEMCurrentControlSetControlDeviceGuard" /v RequireMicrosoftSignedBootChain
如果值为 0x1,启动事件中可能出现:
Boot Chain Signer Soft Enforced
在已理解安全影响并完成备份的前提下,将其关闭:
reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuard" /v RequireMicrosoftSignedBootChain /t REG_DWORD /d 0 /f
2. Windows Hello 的 VBS Key Isolation
新版 Windows 11 可能由 Windows Hello 密钥隔离单独拉起 VBS。系统事件中常见:
VBS Key Isolation was started and will protect VSM-isolated keys.
关闭前,先恢复密码登录选项,避免只配置了 PIN/指纹的电脑重启后无法进入系统:
reg add "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionPasswordLessDevice" /v DevicePasswordLessBuildVersion /t REG_DWORD /d 0 /f
确认自己知道账户完整密码后,再关闭 Windows Hello 的 VBS 场景:
reg add "HKLMSYSTEMCurrentControlSetControlDeviceGuardScenariosWindowsHello" /v Enabled /t REG_DWORD /d 0 /f
这不是删除 Windows Hello PIN,而是关闭它的 VBS 增强隔离层。PIN 可能仍然保留,也可能要求重新设置。微软对普通 PIN 的设置方法见 配置 Windows Hello;VBS 增强登录保护的原理见 Windows Hello Enhanced Sign-in Security。
第七步:关闭启动时的 Hypervisor 与 VSM
仍在管理员命令提示符中执行:
bcdedit /set {current} hypervisorlaunchtype off
bcdedit /set {current} vsmlaunchtype off
检查当前启动项:
bcdedit /enum {current}
应看到:
hypervisorlaunchtype Off
vsmlaunchtype Off
现在选择 Windows 的“重新启动”。不要只关闭安卓模拟器,也不要只注销账户。
第八步:重启后验证是否真正关闭
打开 PowerShell:
Get-CimInstance Win32_ComputerSystem |
Select-Object HypervisorPresent
Get-CimInstance -Namespace rootMicrosoftWindowsDeviceGuard `
-ClassName Win32_DeviceGuard |
Select-Object VirtualizationBasedSecurityStatus
Get-CimInstance Win32_Processor |
Select-Object -First 1 `
VirtualizationFirmwareEnabled,
SecondLevelAddressTranslationExtensions,
VMMonitorModeExtensions
理想结果:
HypervisorPresent : False
VirtualizationBasedSecurityStatus : 0
VirtualizationFirmwareEnabled : True
SecondLevelAddressTranslationExtensions : True
VMMonitorModeExtensions : True
还可以查看本次启动事件:
Get-WinEvent -FilterHashtable @{LogName='System'; Id=153} |
Select-Object -First 1 TimeCreated, Message |
Format-List
成功时可能显示:
Virtualization-based security (policies: 0) is disabled.
启动安卓模拟器,再看 VBox.log。成功标志包括:
VT-x w/ nested paging
Using VT-x implementation 2.0
VT-x/AMD-V init method: LOCAL
安卓模拟器主日志中应出现:
rom boot success!
Android system boot completed
如何重新设置 PIN,同时不重新开启 VBS
进入:
设置 → 账户 → 登录选项 → PIN(Windows Hello)
点击“设置”“更改 PIN”或“我忘记了 PIN”,按提示完成。
建议保持以下选项关闭:
- 增强登录安全(Enhanced Sign-in Security)。
- 仅允许对此设备上的 Microsoft 账户使用 Windows Hello 登录。
设置 PIN 后重新检查:
reg query "HKLMSYSTEMCurrentControlSetControlDeviceGuardScenariosWindowsHello" /v Enabled
reg query "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionPasswordLessDevice" /v DevicePasswordLessBuildVersion
如果两项仍为 0x0,普通 PIN 与密码登录可以保留,同时不会由 Windows Hello 再次拉起 VBS。
《英雄联盟》与 Vanguard 注意事项
关闭 VBS 不等于关闭 Riot Vanguard。本教程没有要求关闭 TPM 2.0、安全启动或 Windows Exploit Protection。
如果出现 Vanguard 错误:
VAN 9002:检查 Windows Exploit Protection,系统与 Riot 程序项应使用默认设置。VAN 9003:检查 UEFI 安全启动。- 其他
VAN: RESTRICTION:按客户端给出的具体项目处理,不要盲目关闭更多安全功能。
Riot 官方说明见 VAN 9002 支持文档。
本案例在关闭 Hypervisor/VBS 后,安卓模拟器从完全无法启动恢复正常;《英雄联盟》原本存在的卡顿和掉帧也消失了。但这属于单机实测感受,不代表所有硬件都能获得相同帧率提升。通常 CPU 瓶颈和高帧率场景更可能受益,GPU 瓶颈场景变化较小。
如何恢复原来的安全设置
如果以后不再使用旧版安卓模拟器,建议恢复 VBS/Windows Hello 增强保护。
管理员命令提示符执行:
reg import "C:VBS-BackupDeviceGuard.reg"
reg import "C:VBS-BackupPasswordLess.reg"
bcdedit /set {current} hypervisorlaunchtype auto
bcdedit /set {current} vsmlaunchtype auto
然后按需要重新启用:
- Windows 安全中心中的“内存完整性”。
- 组策略中的“启用基于虚拟化的安全性”。
- Hyper-V、虚拟机平台、Windows Hypervisor Platform、WSL 或 Windows 沙盒。
重启后使用前文命令检查:
HypervisorPresent : True
VirtualizationBasedSecurityStatus : 2
如果原配置使用了 UEFI 锁定,简单修改注册表可能无法关闭或恢复 VBS,需要按微软支持流程进行固件层确认,不要通过随意关闭 Secure Boot 来绕过。
常见问题
1. Hyper-V 明明没勾选,为什么仍显示 Hypervisor?
因为 VBS、Credential Guard、内存完整性和 Windows Hello 密钥隔离都可能调用 Windows Hypervisor,不要求安装完整的 Hyper-V 管理功能。
2. BIOS 里的 VT-x 要关吗?
不要关。安卓模拟器、VirtualBox 等虚拟机需要 VT-x/AMD-V。目标是关闭“微软 Hypervisor 对 VT-x 的占用”,不是关闭 CPU 的硬件虚拟化能力。
3. 普通 PIN 还能使用吗?
可以。本案例重新设置 PIN 后,WindowsHelloEnabled、VBS 和 Hypervisor 仍保持关闭。要保留密码作为备用登录方式,不要重新开启“仅允许 Windows Hello 登录”。
4. Windows 更新后会不会又自动打开?
有可能,尤其是 Windows 预览版或大版本更新。若安卓模拟器再次报同样错误,优先检查:
Get-CimInstance Win32_ComputerSystem | Select-Object HypervisorPresent
以及:
reg query "HKLMSYSTEMCurrentControlSetControlDeviceGuardScenariosWindowsHello" /v Enabled
5. 是否一定能提升游戏性能?
不一定。关闭 VBS 后,部分 CPU 瓶颈、高刷新率游戏可能改善平均帧、最低帧或延迟;GPU 瓶颈场景可能几乎没有区别。请用相同画质、分辨率、地图和帧率统计方式进行前后对比。
参考资料
- 微软:基于虚拟化的安全(VBS)
- 微软:Credential Guard 概述
- 微软:配置 Windows Hello
- 微软:Windows Hello Enhanced Sign-in Security
- Riot:Vanguard VAN 9002
最后提醒:本文解决的是“传统 VirtualBox 内核与 Windows Hypervisor 抢占 VT-x”的兼容性问题。安全性与兼容性没有绝对正确的统一选择;如果你不需要旧版虚拟机,保留 VBS 通常是更安全的做法。

微信打赏
Comments | Nothing