VT-x 不可用且 Windows 10 上没有 Hyper-V 管理器

VT-x isn't available & No Hyper-V manager on Windows 10

当我使用vagrant up启动虚拟机时,我发现了以下错误ox80004005(注意我使用的是Oracle VM Virtualbox进行虚拟化)

kayan@kayan-VirtualBox:~/vagrant/rpm$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'jhcook/fedora27' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "769fc6c1-ea8d-46d8-8a7b-16989540d530", "--type", "gui"]

Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

Screenshot: VT-x isn't available ERROR

我正在使用 64 位 Windows 10. 我的处理器是 Intel(R) Core(TM) i7-7500U CPU @ 2.70 GHz.

为了解决这个错误,有人建议我在主机 windows 机器上禁用 Hyper -v。当我选择禁用 Hyper-v 功能时,我发现我的机器中没有 Hyper-v (奇怪!!!)

Screenshot: No option to enable or disable Hyper-v

然后我使用此命令 dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All 禁用管理程序,我发现了这个(注意:我 运行 CMD 作为管理员)。

Microsoft Windows [Version 10.0.16299.125]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

Deployment Image Servicing and Management tool
Version: 10.0.16299.15

Image Version: 10.0.16299.125


Error: 0x800f080c

Feature name Microsoft-Hyper-V is unknown.
A Windows feature name was not recognized.
Use the /Get-Features option to find the name of the feature in the image and try the command again.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

C:\WINDOWS\system32

Screenshot: 0x800f080c ERROR

我的虚拟机配置:

Hyper-V 不在 windows 10 家庭版中 installed/available,这可能是您看不到它的原因。

https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v

您需要更改 Bios 设置以启用虚拟化。 https://www.laptopmag.com/articles/access-bios-windows-10

启用后,您就可以使用 VirtualBox 了。

(已更新) Oracle VM Virtualbox 不支持 嵌套的 64 位虚拟机。

我的主机实际上是一台64位机器。我安装了 Oracle VM Virtualbox 并在那里安装了 64 位 Linux VM。我的目标是在该 VM 上安装另一个 64 位 Linux VM。不幸的是,Oracle VM Virtualbox 不为我们提供这种支持。

为了解决这个问题,我用VMWare安装了第一个VM。然后我在该 VM 上安装了 Oracle VM Virtualbox,并在 VirtualBox 上安装了第二个 VM。

如果您在 Windows 10 创始人更新后在 VirtualBox 中遇到问题,您需要再次关闭核心隔离内存完整性。 UI 被窃听了,这里是如何通过它来完成的。注册表,导航至下方并设置 0:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity\Enabled

当我想使用 运行 模拟器时,我遇到了同样的问题,感谢 bluedi 解决了这个问题。

只需禁用内存完整性

"Settings" -> "Update & Security" -> "Windows Security" -> "Device Security" -> "Core Isolation" -> 关闭

我尝试了这两种解决方案,但没有成功:

  1. 在 BIOS 中启用虚拟化
  2. 禁用(或启用,然后禁用)Hyper-V

最终起作用的是运行这个特权命令:

bcdedit /set hypervisorlaunchtype off

运行 在管理员模式下使用 cmd 命令并重新启动。