VirtualBox 启动时提示“获取 VirtualBox COM 对象失败”的解决

今天用了360电脑杀手
清了一下电脑垃圾, 查杀木马
启动 VirtualBox 的时候提示 获取 VirtualBox COM 对象失败
该死的360
获取 VirtualBox COM 对象失败
应用程序将被中断
提示明细

E:\vbox>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", "74731ba4-3c54-4dec-9823-cbf4ddc19d8b"]

Stderr: VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code E_NOINTERFACE (0x80004002) - No such interface supported (extended info not available)
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.

E:\vbox>

双击 VirtualBox截图如下:
点击virtualbox如图所示
然后问了问度娘
尝试了各种方法
还是不行
功夫不负有心人
如下方案亲测有效:
1:打开注册表,【开始】-【运行】中输入regedit
2:修改注册表的如下两项:
00020420-0000-0000-C000-000000000046
00020424-0000-0000-C000-000000000046
找不到的话直接 ctrl + f 直接搜索
将它们的默认值都改成:
C:\Windows\system32\oleaut32.dll
注册表
改成这样的~

然后在双击VirtualBox启动成功
启动virtualbox
vagrant 也启动成功

E:\vbox>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: bridged
==> default: You are trying to forward to privileged ports (ports <= 1024). Most
==> default: operating systems restrict this to only privileged process (typically
==> default: processes running as an administrative user). This is a warning in case
==> default: the port forwarding doesn't work. If any problems occur, please try a
==> default: port higher than 1024.
==> default: Forwarding ports...
    default: 80 (guest) => 80 (host) (adapter 1)
    default: 3306 (guest) => 3306 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection reset. Retrying...
    default: Warning: Connection aborted. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Connection aborted. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 5.1.18
    default: VirtualBox Version: 4.3
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => E:/vbox
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.

E:\vbox>

开心 (╥╯^╰╥)
舒服

史大坨博客
请先登录后发表评论
  • 最新评论
  • 总共0条评论