TANSAN

取り留めないメモ

Laravel Homesteadの起動でハマる

概略

Homesteadのインストール手順に従って設定していてタイムアウトエラーでハマった。

vagrant up時にエラーに遭遇

Homestead git:(7a47985) vagrant up     
Bringing machine 'homestead-7' up with 'virtualbox' provider...
    homestead-7: SSH address: 127.0.0.1:2222
    homestead-7: SSH username: vagrant
    homestead-7: 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.

調査

virtual boxの[ネットワーク設定] -> [ケーブル接続] にチェックが無いと同様のエラーが出るらしいので設定を見ていたけど、特に問題なく。 ssh-keygenで作成した鍵もHomestead.yamlで指定している場所にあるしで何だろうなと調べる。

なんだろうなとvirtual boxをよくよく見直してみると、下部に❢が出ていた。パッ見設定ができてるように見えて、その実上手くできてないらしい。 f:id:kuboroid:20190224221556j:plain

解決

bios のvirtualizationを有効にして解決。thinkpad限定だからか、これっていう解決策に中々当たらなかった。 f:id:kuboroid:20190224221419j:plainf:id:kuboroid:20190224221413j:plain

いい加減この手のエラーにハマらないようになりたい