Vagrant startup failure, staying at Waiting for VM to boot Solution
Timevagrant up
It fails to start. It stays in the following link and consumes 100% of the CPU at the same time:
[default] Booting VM...[default] Waiting for VM to boot. This can take a few minutes.
In this case, we can only force power-off on the VirtualBox Management Panel. When running againvagrant up
Still unable to enter the system, you can see a GRUB interface in VirtualBox. This is the GRUB Security Mode Interface (common in Ubuntu ). There is no countdown on this interface by default, so we cannot enter the system.
Vagrant Quick Start
How to Use vagrant to install a Hadoop cluster on a virtual machine
Efficient Puppet module Management in Vagrant
Use Vagrant and Fabric for Integration Testing
Build a development environment using Vagrant
Configure the Vagrant environment in Windows
Solution
Run the system on the VirtualBox panel and press enter on the GRUB interface to log on to the system. User Name:vagrant
, Password:vagrant
, Edit/etc/grub.d/00_header
, Find:
if [ "\${recordfail}" = 1 ]; then set timeout=-1
Set-1
Change10
You can:
if [ "\${recordfail}" = 1 ]; then set timeout=10
Run again$ update-grub
Update GRUB and use it after Shutdown$ vagrant up
Start the instance properly.
Here is the solution for force Power Failure. As for why vagrant fails to start in other cases, I have not found the cause.
The VBoxManage contains a series of command line tools to manage virtual machines.
VBoxManage startvm $vm --type headless
For details about Vagrant, click here
Vagrant: click here
This article permanently updates the link address: