Hejdaの見る夢

一人前のエンジニアを目指して頑張ったこととかをつらつら書くブログ

Warning: Remote connection disconnect. Retrying...の話

最近、macvagrantがおかしい様子…

ローカル開発でvagrantを使っているのですが、最近になって様子がおかしい…

最初のupでは普通に立ち上がるのだけど、halt後のupやsnapshotをロールバックした後のupもコケる様子。

$ vagrant snapshot go first_snap
Powering off machine 3264830a-160b-4bb2-8d06-d5a1fb1f4721
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Restoring snapshot 6ba7eaa2-d91e-4a2f-a1c5-6bf2e0cbda96
Starting restored VM
==> svr03: Checking if box 'bento/centos-6.7' is up to date...
==> svr03: Resuming suspended VM...
==> svr03: Booting VM...
==> svr03: Waiting for machine to boot. This may take a few minutes...
    svr03: SSH address: 127.0.0.1:2201
    svr03: SSH username: vagrant
    svr03: SSH auth method: private key
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
    svr03: Warning: Remote connection disconnect. Retrying...
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

過去にも同様のとこで悩んでいる方々もちらほら…

Vagrant で default: Warning: Remote connection disconnect. Retrying…

で、解決策としては1回destroyしてまっさらにすればup出来るのだけど、

それだとansibleのrole作成等々でとても不便…

今はboxを変えてみたりして試行錯誤中です(´・ω・`)