macoscachingvagrantvirtual-machineaerospike

Why I am I getting a “There was an error while executing `VBoxManage`, a CLI used by Vagrant,” via Vagrant on macOS?


I am working with aerospike and installing it using vagrant virtual box.

After installation, whenI am trying to start the virtual machine, it is giving the following error:

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "dff6693e-52c8-4c9e-922a-243d18c7f666", "--type", "headless"]

Stderr: VBoxManage: error: The VM session was closed before any attempt to power it on
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface ISession

I am using macOS machine for this setup.

Any suggestions?


Solution

  • Proceeding with the following steps helped me out:

    1. restart the virtual box using:

      sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart
      
    2. Stop vagrant as follows:

      vagrant halt
      
    3. start vagrant as follows:

      vagrant up