Homestead环境报错 There was an error while executing `VBoxManage`

本文针对在Win7 64位系统中使用Vagrant时遇到的与VirtualBox交互失败的问题提供了两种解决方案。一种涉及修改注册表项来解决创建VirtualBox对象时出现的错误,另一种则通过更正特定虚拟机配置文件的名称来修复问题。

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

时间:2018-01-22

环境:win7(64bit)

第一种情况

$ vagrant up

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["showvminfo", "6437a12d-a98c-4365-9b76-01864dfc0eb8"]

Stderr: VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Failed to instantiate CLSID_VirtualBox w/ IVirtualBox, but CLSID_VirtualBox w/ IUnknown works.
VBoxManage.exe: error: PSDispatch looks fine. Weird
VBoxManage.exe: error: Details: code E_NOINTERFACE (0x80004002), component VirtualBoxClientWrap, interface IVirtualBoxClient

 

解决方案:

  • 修改注册表HKEY_CLASSES_ROOT\CLSID\{00020420-0000-0000-C000-000000000046}
  • InprocServer32 修改为C:\Windows\system32\oleaut32.dll
  • HKEY_CLASSES_ROOT\CLSID\{00020424-0000-0000-C000-000000000046}
  • InprocServer32 修改为C:\Windows\system32\oleaut32.dll

 

第二种情况

$ vagrant up
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["showvminfo", "332aca0e-71df-4422-9f23-538e2fbea768"]

Stderr:

解决方案:

VirtualBox VMs\homestead-7目录下将 homestead-7.vbox-tmp文件名 改为homestead-7.vbox 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值