I am working with aerospike and installing it using vagrant virtual box.
After installation, when i 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 mac machine for this setup.
Any suggestion?
Proceeding with the following steps helped me out:
restart the virtual box using:
sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart
Stop vagrant as follows:
vagrant halt
start vagrant as follows:
vagrant up
Go to settings
=> security & privacy
=> general
and allow permission.
Just had the same issue after latest OS update (Big Sur). Steps I had to get through in order to get it working again:
homestead box update
in Homestead directorysudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart
It took me a few steps to get there but I now have my VMs up and ruinning as before.
Hope it helps 👍🏼
I had the same problem. You can simply restart your system and then restart Vagrant as well. The error majorly occurs when the virtual box was stopped abruptly. Good luck!
sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart
vagrant halt
vagrant up
For macos you can update privaciy and security permissions.
here is a link: https://medium.com/@Aenon/mac-virtualbox-kernel-driver-error-df39e7e10cd8
User contributions licensed under CC BY-SA 3.0