CLOVER🍀

That was when it all began.

Vagrant+VirtualBoxで、NS_ERROR_FAILUREで起動しなくなったら?

VirtualBox ProviderのVagrantで、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: ["startvm", "xxxxx", "--type", "headless"]

Stderr: VBoxManage: error: The virtual machine 'xxxxx' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

VirtualBoxをアップデートして、以下のコマンドを実行。

$ sudo /sbin/vboxconfig

参考。

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMa - virtualbox.org

18.04 - VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine - Ask Ubuntu

環境。

Ubuntu Linux 22.04 LTS。

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy


$ uname -srvmpio
Linux 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

VirtualBox

$ VBoxManage --version
7.0.14r161095

Vagrant

$ vagrant version
Installed Version: 2.4.0
Latest Version: 2.4.1

To upgrade to the latest version, visit the downloads page and
download and install the latest version of Vagrant from the URL
below:

  https://www.vagrantup.com/downloads.html

If you're curious what changed in the latest release, view the
CHANGELOG below:

  https://github.com/hashicorp/vagrant/blob/v2.4.1/CHANGELOG.md