Vagrant startup failure, staying at Waiting for VM to boot Solution

Source: Internet
Author: User

Vagrant startup failure, staying at Waiting for VM to boot Solution

Timevagrant upIt 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 upStill 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-1Change10You can:

if [ "\${recordfail}" = 1 ]; then  set timeout=10

Run again$ update-grubUpdate GRUB and use it after Shutdown$ vagrant upStart 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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.