时间: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