在 Virtualbox 中启动 ubuntu 时 VT-x 不可用 (VERR_VMX_NO_VMX)
VT-x is not available (VERR_VMX_NO_VMX) when starting ubuntu in Virtualbox
我的操作系统是 windows 10 64 bit.I 想在我的系统上安装 ubuntu 进行一些开发。
所以我安装了 VirtualBox 并在其中保留了 ubuntu v18.04.2。
但是在启动时我收到此错误“未找到本机 API dll (C:\Windows\system32\WinHvPlatform.dll) (VERR_NEM_NOT_AVAILABLE)。
VT-x 不可用 (VERR_VMX_NO_VMX)。"
如何解决?
我找到了答案并愿意与您分享。
1.Enable BIOS 期间的虚拟化
2.Disable通过设置的Hyper-V角色(我遇到的问题)
a)Right click on the Windows button and select ‘Apps and Features’.
b)Select Programs and Features on the right under related settings.
c)Select Turn Windows Features on or off.
d)Select Hyper-V and disable it
在 Windows 10 上 运行在 VirtualBox 6.x 中安装 64 位虚拟机时,这是一个已知问题。
罪魁祸首是Windows Defender Application/Device Guard。
- 方法一
要禁用它,请转到本地组策略编辑器 (Win+R->gpedit.msc) 和 禁用 打开基于虚拟化的安全性
Local Computer Policy > Computer Configuration > Administrative Templates > System > Device Guard > Turn on Virtualization Based Security
Disable Virtualization Based Security in Local Group Policy Editor
然后您需要运行以管理员身份在命令行中执行以下命令:
mountvol X: /s
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:
mountvol X: /d
其中 X: 是您未使用的驱动器号(可以是任何其他驱动器号)
重新启动计算机并在启动时按 F3 确认禁用 Device Guard 和基于虚拟化的安全。
之后您的虚拟机将再次运行。
- 方法二
另一种禁用 Device Guard 的方法是使用 PowerShell 脚本。
从微软下载脚本:https://www.microsoft.com/en-us/download/details.aspx?id=53337
运行 作为管理员的脚本:
.\DG_Readiness.ps1 –Disable -AutoReboot
我找到了答案并愿意与您分享。
1.Enable BIOS 期间的虚拟化
2.Disable通过设置的Hyper-V角色(我遇到的问题)
a) 右键单击 Windows 按钮和 select“应用程序和功能”。
b)Select相关设置下右侧的程序和功能。
c)Select 打开或关闭 Windows 功能。
d)Select Hyper-V 并禁用它
有用的页面
我的是 Windows 10,只需启用 2 个虚拟选项,默认情况下在 BIOS 时间内 'Disable ',运行顺利。
谢谢。
请检查以下内容link:
此回答属于--鸣谢Tj Kellie请不要为我点赞
注意:右键单击打开命令提示符,然后单击“运行 作为管理”。
要关闭 Hypervisor,运行 从命令提示符(管理员)(Windows+X):
bcdedit /set hypervisorlaunchtype off
并重新启动您的计算机。要再次打开它,运行:
bcdedit /set hypervisorlaunchtype on
如果您收到“指定的整数数据无效”,请尝试:
bcdedit /set hypervisorlaunchtype auto
重要说明: 关闭 Hypervisor 并重新启动系统后,必须打开 Hypervisor,因为没有 Hypervisor 就无法使用 git 存储库在你的 windows.
我的操作系统是 windows 10 64 bit.I 想在我的系统上安装 ubuntu 进行一些开发。
所以我安装了 VirtualBox 并在其中保留了 ubuntu v18.04.2。 但是在启动时我收到此错误“未找到本机 API dll (C:\Windows\system32\WinHvPlatform.dll) (VERR_NEM_NOT_AVAILABLE)。 VT-x 不可用 (VERR_VMX_NO_VMX)。"
如何解决?
我找到了答案并愿意与您分享。
1.Enable BIOS 期间的虚拟化
2.Disable通过设置的Hyper-V角色(我遇到的问题)
a)Right click on the Windows button and select ‘Apps and Features’.
b)Select Programs and Features on the right under related settings.
c)Select Turn Windows Features on or off.
d)Select Hyper-V and disable it
在 Windows 10 上 运行在 VirtualBox 6.x 中安装 64 位虚拟机时,这是一个已知问题。
罪魁祸首是Windows Defender Application/Device Guard。
- 方法一
要禁用它,请转到本地组策略编辑器 (Win+R->gpedit.msc) 和 禁用 打开基于虚拟化的安全性
Local Computer Policy > Computer Configuration > Administrative Templates > System > Device Guard > Turn on Virtualization Based Security
Disable Virtualization Based Security in Local Group Policy Editor
然后您需要运行以管理员身份在命令行中执行以下命令:
mountvol X: /s
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:
mountvol X: /d
其中 X: 是您未使用的驱动器号(可以是任何其他驱动器号)
重新启动计算机并在启动时按 F3 确认禁用 Device Guard 和基于虚拟化的安全。 之后您的虚拟机将再次运行。
- 方法二
另一种禁用 Device Guard 的方法是使用 PowerShell 脚本。
从微软下载脚本:https://www.microsoft.com/en-us/download/details.aspx?id=53337
运行 作为管理员的脚本:
.\DG_Readiness.ps1 –Disable -AutoReboot
我找到了答案并愿意与您分享。
1.Enable BIOS 期间的虚拟化
2.Disable通过设置的Hyper-V角色(我遇到的问题)
a) 右键单击 Windows 按钮和 select“应用程序和功能”。
b)Select相关设置下右侧的程序和功能。
c)Select 打开或关闭 Windows 功能。
d)Select Hyper-V 并禁用它
有用的页面 我的是 Windows 10,只需启用 2 个虚拟选项,默认情况下在 BIOS 时间内 'Disable ',运行顺利。
谢谢。
请检查以下内容link:
此回答属于--鸣谢Tj Kellie请不要为我点赞
注意:右键单击打开命令提示符,然后单击“运行 作为管理”。
要关闭 Hypervisor,运行 从命令提示符(管理员)(Windows+X):
bcdedit /set hypervisorlaunchtype off
并重新启动您的计算机。要再次打开它,运行:
bcdedit /set hypervisorlaunchtype on
如果您收到“指定的整数数据无效”,请尝试:
bcdedit /set hypervisorlaunchtype auto
重要说明: 关闭 Hypervisor 并重新启动系统后,必须打开 Hypervisor,因为没有 Hypervisor 就无法使用 git 存储库在你的 windows.