安装虚拟框为kong Vagrant设置

问题描述 投票:-1回答:2

我想为kong设置流浪汉。我已经安装了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
2个回答
0
投票

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

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

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

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


0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.