VirtualBox 不能为虚拟电脑打开一个新任务(Failed to get device handle and/or partition ID for 000000000153a220) 解决办法

本文介绍了在Windows11系统中使用Vagrant时遇到的问题及解决方法,特别是当Vagrant与Hyper-V功能冲突导致无法正常启动虚拟机的情况。文中详细解释了如何通过关闭Hyper-V和WSL虚拟机来解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

更新Windows11系统之后,运行我的vagrant出现如下问题,主要表现为 vagrant up命令启动之后,提示VirtualBox不能为虚拟电脑打开一个新任务:

C:\Users\Administrator>vagrant up

Bringing machine ‘default’ up with ‘virtualbox’ provider…

==> default: Checking if box ‘centos/7’ version ‘2004.01’ 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: 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”, “3ee0ca4d-8f34-4107-9dbb-10c2f329704c”, “–type”, “headless”]

Stderr: VBoxManage.exe: error: Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).

VBoxManage.exe: error: VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED)

VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

解决办法

如何直正关闭Windows 11的hyper-v功能来实现虚拟机如下:
不能为虚拟电脑 ubuntu_打开一个新任务.
Failed to get device handle and/or partition ID for 000000000153a220 (hPartitionDevice=0000000000000a41, Last=0xc0000002/1) (VERR_NEM_VM_CREATE_FAILED).

返回 代码:
E_FAIL (0x80004005)
组件:
ConsoleWrap
界面:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

原因:
1, 开启了hyper-v
2, 使用wsl时开启虚拟机
解决办法
1、关闭hyper-v,用命令或见下图操作。 (命令:以管理员启动 powershell,执行:bcdedit /set hypervisorlaunchtype off
2、关闭wsl虚拟机(重点)。
以管理员启动 powershell,执行:
Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
重新启动电脑之后再次打开虚拟机, 可以成功启动
在这里插入图片描述

评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Itfuture03

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值