
Исправляем «There was an error while executing `VBoxManage`, a CLI used by Vagrant» в VirtualBox и Vagrant
При работе с vagrant, получил ошибку и в своей статье я расскажу как можно ее исправить. Ошибка выглядит следующим образом:
$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Clearing any previously set network interfaces... There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["hostonlyif", "create"] Stderr: 0%... Progress state: NS_ERROR_FAILURE VBoxManage: error: Failed to create the host-only adapter VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp
Т.е при вызове «vagrant up» отказался собираться VagrantFile.
Исправляем «There was an error while executing `VBoxManage`, a CLI used by Vagrant» в VirtualBox и Vagrant
У меня ОС — Mac OS X и я использую Vagrant с подключенной виртуализацией VirtualBox. Но иногда не все проходит гладко.
Решение простое — это перезапустить службу VirtualBox, статья как это можно сделать тут:
Перезапуск VirtualBox в Unix/Linux
Вот таким образом я решил и устранил свою проблему.