vagrant up gives confg_timeout error

56 views
Skip to first unread message

jiminfote...@gmail.com

unread,
Jul 20, 2016, 3:10:57 AM7/20/16
to Vagrant
G'day All,

Please find below the contents of my Vagrantfile:

ENV['VBOX_INSTALL_PATH'] = ENV['VBOX_MSI_INSTALL_PATH']
Vagrant.configure("2") do |config|
  config.vm.define "lb1" do |lb1|
    lb1.vm.box="centos/7"
  end
  config.vm.define "web1" do |web1|
    web1.vm.box="centos/7"
  end
  config.vm.define "web2" do |web2|
    web2.vm.box="centos/7"
  end
  config.vm.provider "virtualbox" do |vb|
    vb.gui = true
    vb.memory = "1024"
  end
end

When I do vagrant up: Only one of the three machines start and the error message is below:
Bringing machine 'lb1' up with 'virtualbox' provider...
Bringing machine 'web1' up with 'virtualbox' provider...
Bringing machine 'web2' up with 'virtualbox' provider...
==> lb1: Checking if box 'centos/7' is up to date...
==> lb1: Clearing any previously set forwarded ports...
==> lb1: Clearing any previously set network interfaces...
==> lb1: Preparing network interfaces based on configuration...
    lb1: Adapter 1: nat
==> lb1: Forwarding ports...
    lb1: 22 (guest) => 2222 (host) (adapter 1)
==> lb1: Running 'pre-boot' VM customizations...
==> lb1: Booting VM...
==> lb1: Waiting for machine to boot. This may take a few minutes...
    lb1: SSH address: 127.0.0.1:2222
    lb1: SSH username: vagrant
    lb1: SSH auth method: private key
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.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

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.

I google a bit and people say have gui=true/delete , delete the private key but it seems ot to be working.

When lb1 starts I do enter username and password as they say it could be waiting for that but not working but neither seems to be make it working ...

Would appreciate help from members

Regards,
Jim

Alvaro Miranda Aguilera

unread,
Jul 20, 2016, 5:17:22 AM7/20/16
to vagra...@googlegroups.com
Hello, it looks ok your vagrant file and the box should be working.

So, can you confirm you can use the Virtualbox gui, stop and start the VM lb1 from there, and check whats the message from the Virtualbox GUI ?

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/bbef782f-86a8-43a8-a70d-4d74d25204ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jiminfote...@gmail.com

unread,
Jul 20, 2016, 6:36:37 AM7/20/16
to Vagrant
Hi Alavro,

I have to double click on VM from VirtualBox GUI and looking at /var/log/messages doesn't show any spectacular errors which may refrain the other two VM from starting.

I did vagrant destroy and then did vagrant up and it started well. Thereafter consequent vagrant up commands does not allow the machines to boot properly. I even increased RAM from 1GB to 1.5GB for first machine (lb1) but still the same issue(the other two do not start).

Might be the bug in product ? is it ok to start VM's from Virtual  box ? instead of vagrant up ?

Regards,
Jim

jiminfote...@gmail.com

unread,
Jul 21, 2016, 7:27:16 AM7/21/16
to Vagrant
Hi Alvaro,

Any update on how to get it fixed? I tried all options available on the internet/google.

Regards,
Jim

Alvaro Miranda Aguilera

unread,
Jul 21, 2016, 12:53:25 PM7/21/16
to vagra...@googlegroups.com
Hello,

I was able to get the VMs up on my mac mini. 

How much ram your host computer does have?

Can you try to upgrade to Vagrant 1.8.5 and use the following Vagrantfile:

Vagrant.configure("2") do |config|
  config.ssh.insert_key=false
  config.vm.provider "virtualbox" do |vb|
    vb.gui = true
    vb.memory = "1024"
  end
  config.vm.define "lb1" do |lb1|
    lb1.vm.box="centos/7"
  end
  config.vm.define "web1" do |web1|
    web1.vm.box="centos/7"
  end
  config.vm.define "web2" do |web2|
    web2.vm.box="centos/7"
  end
end

If still fails, can you share more info please:
Version of VirtualBox
output of
vagrant version
vagrant plugin list


Jim Jim

unread,
Jul 22, 2016, 1:02:30 AM7/22/16
to vagra...@googlegroups.com
Hi Alvaro,

Still doesn't work.

Vagrantfile is exactly the you gave here:

Virtualbox version 5.0.26:

C:\Users\jim_000\VirtualBox VMs\load_balancer_lab>vagrant version
Installed Version: 1.8.5
Latest Version: 1.8.5

You're running an up-to-date version of Vagrant!

C:\Users\jim_000\VirtualBox VMs\load_balancer_lab>vagrant  plugin list
vagrant-share (1.1.5, system)
vagrant-vbguest (0.12.0)


Please advise further course of operation.

Regards,
Jim

You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/sELx91SqkjY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ey12TEu-jtX9L-%3Dmu8HQkYZZDgctGH9kb4br4K3EPobKA%40mail.gmail.com.

Alvaro Miranda Aguilera

unread,
Jul 22, 2016, 7:59:20 PM7/22/16
to vagra...@googlegroups.com
It works on my computer, so I will suggest check on a different computer on your end.

How much ram you got in that computer ?

Maybe you can  reinstall Vagrant and Virtualbox as time permits.

Alvaro

Jim Jim

unread,
Jul 23, 2016, 7:35:59 AM7/23/16
to vagra...@googlegroups.com
Hi Alvaro,

Sorry mate, I forgot to respond earlier, I have 16GB of RAM. By the way the recommended solution is not yet resolved. It is hoping to be resolved in 1.8.6
https://github.com/mitchellh/vagrant/issues/7610#issuecomment-234609660

Cheers,
Jim

Reply all
Reply to author
Forward
0 new messages