Mohsen mokhtari
Mohsen mokhtari

Reputation: 3062

Error on vagrant up: after auth ssh key ... after a while give me time out

After I run "vagrant up " it stops in ssh auth method and private key gives me an error like this on windows 10:

The guest machine entered an invalid state while waiting for it to boot.

how can I solve this error?

Upvotes: 2

Views: 79

Answers (1)

Hamid Naghipour
Hamid Naghipour

Reputation: 3615

this error about cable connection.

go to in virtual box and stop the run connection. click on start and wait for login with user and pass: vagrant. inside of that write this command:

sudo vim /etc/systemd/system/network-online.targets.wants/networking.service

And changing the following line at the end of the file:

TimeoutStartSec=5min

to:

TimeoutStartSec=30sec

I have then rebooted the system and it works fine.

Upvotes: 1

Related Questions