Problem
I was working with bento/centos7.2
box. I did a vagrant up
and while it was booting up, I noticed the box has an update and I instinctively cancelled the operation (which I suggest not to do, ever!). So I went ahead and did vagrant destroy
, rm -rf .vagrant
just to be sure (Again, I suggest not to do, ever!). I removed my box by vagrant box remove bento/centos7.2
and did vagrant up
and ended up with this:
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.
Environment
- Ubuntu 16.04
- Vagrant 1.81
- Centos 7.2 Box
Things I tried
Following are the threads I have tried:
- vagrant + virtualbox Timed out while waiting for the machine to boot
- Timed out while waiting for the machine to boot when vagrant up
- Vagrant "Timed out while waiting for the machine to boot."
When I enabled the GUI, I realized the box is booting up properly; it's just stuck at login screen(bug in box with ssh?). Screenshot: