vagrant up を実行すると次のような状態で停止する。
MBA:MyCentOS hoge$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'bento/centos-6.8' is up to date... ==> default: Resuming suspended VM... ==> 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 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.
MBA:MyCentOS hoge$ vagrant ssh-config Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /Users/hoge/.vagrant.d/insecure_private_key IdentitiesOnly yes LogLevel FATAL
MBA:~ hoge$ ssh-keygen -yf /Users/hoge/.vagrant.d/insecure_private_key > public_key
emacs public_key 公開鍵をコピー
vagrant init bento/centos-6.8 vagrant up
MBA:MyCentOS hoge$ vagrant status Current machine states: default running (virtualbox) The VM is running. To stop this VM, you can run `vagrant halt` to shut it down forcefully, or you can run `vagrant suspend` to simply suspend the virtual machine. In either case, to restart it again, Simply run `vagrant up`.
cd Users/hoge/MyVagrant/ vagrant ssh-config --host hostname >> ~/.ssh/config
MBA:MyCentOS hoge$ vagrant ssh Last login: Mon Oct 24 15:31:58 2016 from 10.0.2.2 [vagrant@localhost ~]$