Do you have a "vagrant up" error, in which it stops in the middle of configuration?

0

I am completely new to Laravel Homestead, and ran into this error after entering "vagrant up", but was able to fix it. I'm posting this to save someone the headache of trying to fix it from scratch.

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

Command: ["startvm", "ce468000-7cc4-4175-9368-209a6306fb8d", "--type", "headless"]

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

This error comes from an improper configuration of VirtualBox.

Step one: Run this command to uninstall VirtualBox

sudo apt-get remove --purge virtualbox 

Step two: Run these commands to delete all virtual machines and settings and Virtual Hard Drives:

sudo rm ~/"VirtualBox VMs" -Rf
sudo rm ~/.config/VirtualBox/ -Rf

Step three: To re-install VirtualBox again. Run this command:

sudo apt-get install virtualbox

Additionally, check:

sudo ps aux | grep -i "vbox"

Kill any "ghost" processes you may think are relevant.

sudo pkill VBox*

Step four:

cd Homestead
vagrant up

To get vagrant's status run the command below in the Homestead directory:

vagrant status

or

vagrant -global status

This should get things working again.

My system: Ubuntu 18.04, VirtualBox, Vagrant, PhpStorm, Laravel

php
ubuntu
vagrant
virtualbox
asked on Stack Overflow Nov 13, 2019 by user7318882

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0