Timeout while waiting for the machine to boot!! Vagrant-Virtualbox

Posted on

Timeout while waiting for the machine to boot!! Vagrant-Virtualbox – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, virtualbox, timeout, vagrant, .

I have gentoo(linux) host machine. On which, I have Virtualbox 4.3.28 and vagrant 1.4.3 installed(these are the latest available version for gentoo).

On vagrant up, the Ubuntu 14.04 gets launched. I’m also able to ssh to Ubuntu. I also tried vagrant destroy and then vagrant up. But then as soon as it gets launched I get the following error. Below is my Vagrantfile and output error.

P.S. I have created Ubuntu 14.04 base box from scratch.


# -*- mode: ruby -*-

# vi: set ft=ruby :

    Vagrant.configure(2) do |config|
      config.vm.box = "Ubuntu"
      config.vm.boot_timeout = "700"
      config.vm.provider :virtualbox do |vb|
      vb.gui = true


Output in terminal

Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...

Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period. This can
mean a number of things.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

Any solution to fix this problem?

Solution :

Try to get the latest version for vagrant. It solved my vagrant related issue. Here is an ebuild available: http://data.gpo.zugaina.org/johu/app-emulation/vagrant-bin/.

So, steps, given you have app-portage/layman installed already:

  1. layman -a johu
  2. layman -S, or even better (?) eix-sync
  3. emerge -s vagrant and app-emulation/vagrant-bin, version 1.7.4 should appear as available
  4. emerge -av vagrant-bin

Then, retry to provision a VM.

Leave a Reply

Your email address will not be published.