【问题标题】:Installing Virtual box for kong Vagrant set up为 kong Vagrant 安装虚拟盒子
【发布时间】:2018-04-27 09:23:29
【问题描述】:

我正在尝试为 kong 设置 vagrant。我已经安装了 VirtualBox 和 vagrant。但是当我运行“vgrant up”时,我遇到了以下问题:

Bringing machine 'default' up with 'virtualbox' provider...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["list", "hostonlyifs"]

Stderr: VBoxManage: error: Failed to create the VirtualBox object!
VBoxManage: error: Code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available)

我已经搜索了这个错误,但运气不佳。

我用的是centos 7.4,内核版本是3.10.0-693.21.1.el7.x86_64。

我已经下载了相关的gcc、devel和dkms。总之跟着链接https://tecadmin.net/install-oracle-virtualbox-on-centos-redhat-and-fedora/

感谢任何提示。

谢谢 黛娜

【问题讨论】:

    标签: vagrant virtualbox centos7


    【解决方案1】:

    这很可能是您的 VirtualBox 安装问题,而不是 Vagrant。要确认这一点,您应该在运行时收到相同的错误:VBoxManage list vms

    此错误的常见原因是/tmp 已满或权限不正确。

    要检查/tmp 是否已满,请尝试df -h

    要修复/tmp 的权限(如果它们不正确),请尝试sudo chmod ug-s /tmp && sudo rm -rf /tmp/.vbox*

    【讨论】:

    • 我也试过这个,但我遇到了同样的问题。我同意这是 VirtualBox 安装的问题,但不幸的是,提到的解决方案没有帮助。
    • 如果有其他选择,或者如果还有其他我可能遗漏的东西,那将会很有帮助
    【解决方案2】:

    显然我们是在虚拟机上尝试这个。 Vagrant 试图启动另一个虚拟机。因此,在 VM 中旋转 VM 会导致问题。

    【讨论】:

      猜你喜欢
      • 2014-06-25
      • 2015-10-11
      • 1970-01-01
      • 2013-01-08
      • 2020-08-28
      • 1970-01-01
      • 1970-01-01
      • 2019-01-19
      • 1970-01-01
      相关资源
      最近更新 更多