If Vagrant shows the message on vm start this means that virtual machine can't boot. And there is no case to connect through SSH.

==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...
    default: Error: Connection timeout. Retrying...

As the solution you can try to view the VM state in GUI. Paste the code in Vagrantfile.local file:

config.vm.provider :virtualbox do |vb|
  vb.gui = true
end

If the problem appears while network is setting up change the settings of the first Network Adapter. Check the checkbox "Cable Connecter":

Settings -> Network -> Adapter 1 -> [v] Cable Connected

Add new comment

The content of this field is kept private and will not be shown publicly.
  • No HTML tags allowed.
  88888888b  d888888P  .d8888P  dP     dP   d8888b. 
88 88 88' 88 88 `88
a88aaaa 88 88baaa. 88aaaaa88a aaad8'
88 88 88` `88 88 88 `88
88 88 8b. .d8 88 88 .88
dP dP `Y888P' dP dP d88888P

Enter the code depicted in ASCII art style.