前记
在网上找不到有关WIN11家庭版(Surface)安装ENSP和解决报错的方法,于是就有这一篇文章。。。
安装前准备
ENSP需要的依赖如下: WinPcap(任意版本)、Wireshark(任意版本)、VirtualBox(5.2.44)
安装WinPcap和Wireshark(Npcap、USBPcap要装)的问题不大,安装VirtualBox的问题最大。
VirtualBox安装
内存隔离
在Win11要关闭内存隔离才能启动VirtualBox 5.X,在Windows Security选择Device security > Core isolation > Memory integrity把它关闭
安装
正常安装即可
ENSP安装
正常安装即可
ERROR 40如何解决
在ENSP打开AR会显示ERROE 40,然后再去VirtualBox打开虚拟机显示有关Hyper-V的报错,但事实上我并没有打开Hyper-V,所以有可能是电脑没有打开vt-x导致的。 解决方法:How to enable VT-x on Surface Book 3? - Microsoft Community
根据解决方法所说,要修改策略表,但家庭版并没有策略表,所以要下载第三方程序PolicyPlus以打开策略表。
至于注册表。。。家庭版也能打开
Disable Credential Guard: Run the "Edit group policy" applet, and navigate to the Local Computer Policy > Computer Configuration > Administrative Templates > System > Device Guard group. For the "Turn On Virtualization Based Security", set it to "Disabled"
Disable DeviceGuard: run the "Registry Editor" applet and navigate to Computer > HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > DeviceGuard group. set the "EnableVirtualizationBasedSecurity" to 0, set "RequireMicrosoftSignedBootChain" to 0. Then navigate further to ... Scenarios > HyperVisorEnforcedCodeIntegrity and set "Enabled" to 0
重新开机后成功解决问题!
后记
不要完全相信VirtualBox的报错信息。。。还以为是Hyper-V的问题,结果不是