Hello.
I’m trying to use a simple vagrant box but I’m getting this message everytime
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "bb077fa1-bbe3-44b1-8cd6-a5e05022af22", "--type", "headless"]
Stderr: VBoxManage.exe: error: The virtual machine 'RMI_default_1685723788699_25807' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
The VM on VirtualBox can be launch and work if I launch it with the VirtualBox GUI.
I tryied to re-install VirtualBox, Vagrant, etc… But nothing change.
I can’t found any more information about the VBManage.exe in the log.
If I launch “Vagrant Up --debug” this message appear multiple times, but there is not clue on what is crashing the VM.
Do you have any tips ?
I’m on Windows 11 22H2 22621.1702
Thanks
Hi there,
This error is commonly encountered when antivirus software is interferring with VirtualBox. Disabling the antivirus or adding VirtualBox to an ignore list or something similar within the antivirus software will generally resolve the issue.
Cheers
I have the same issue.
I’m using WSL 2 within Vagrant 2.4.1 (wsl) and Vagrant 2.4.1 on Windows 10 Pro host.
Vbox version is 7.0.14
I can start VM directly from Windows VirtualBox GUI. So that rules out an antivirus problem.
But when i’m using Vagrant from WSL, I have the same 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”, “3620bf18-32a7-4600-b13c-394d9da8fc12”, “–type”, “headless”]
Stderr: VBoxManage.exe: error: The virtual machine ‘apache-vm_default_1710770055783_62817’ has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
Any ideas ?
EDIT : look at windows application logs, there is an error with VboxHeadless.exe
EDIT 2 : add this in your VagrantFile
config.vm.provider “virtualbox” do |v|
v.gui = true
end
source : Configuration - VirtualBox Provider | Vagrant | HashiCorp Developer