RHEL6上にVirtualBOXでCentOS7環境を作り、vagrantでBOX化しました。
このBOXをToolVM01という名前でvagrant box addし、vm01というフォルダでvagrant init ToolVM01後、vagrant upしたところ
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
と出て、最終的には起動しました。
次に先に作成したBOXをToolVM02という名前でvagrant box addしました。
元ネタが同じ環境が2つvagrantに登録されたことになります。
vagrant box listでも
ToolVM01 (virtualbox, 0)
ToolVM02 (virtualbox, 0)
と表示されました。
ここまで確認し、一旦、ToolVM01をvagrant haltで停止させました。
今度はvm02というフォルダを切り、そこでvagrant init ToolVM02後にvagrant upしたところ、最初のToolVM01と同じ
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
と、でることを期待したのですが、
default: 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.
とエラーになってしまいます。
同じBOXファイルを使ったのに挙動が違うのは何か指定を変えるとかしなおす必要があるのでしょうか?
・最初に起動できたToolVM01のVagrantfileをコピーしてみたりもしましたが、挙動は変わりませんでした。
・他事例を参考に.ssh下も確認しましたが、秘密鍵ファイルはありました。
rw属性も600が設定されています。