ご覧いただきありがとうございます。
###実現したいこと
Laravelの開発環境をMacのローカル(Vagrant上)に構築したいです。
###前提
ソフトウェア | バージョン |
---|---|
Vagrant | 1.9.1 |
Virtual Box | 5.0.30 |
MacOS | El Capitan 10.11.6 |
###発生している問題・エラーメッセージ
Vagrantは、1年前くらいにインストールしており、たまに使用していました。
今回Laravelでの開発をしようと思いまして、諸々のサイトをググり、laravel homestead
というBOX
が存在することを知り、そちらをインストールしました。
- 以前インストールしたVagrantのパス
/Users/myname/Vagrant/
Vagrantの下にディレクトリを作成して、vagrant init
を実行して使用していました。
- 今回インストールしたHomesteadのパス
/Users/myname/projects/laravelApp/Homestead
今回インストールしたHomesteadでvagrant up
したところ下記のエラーが発生しております。
myname-no-MacBook-Pro:Homestead myname$ vagrant up Bringing machine 'homestead-7' up with 'virtualbox' provider... ==> homestead-7: Checking if box 'laravel/homestead' is up to date... ==> homestead-7: Clearing any previously set forwarded ports... ==> homestead-7: Clearing any previously set network interfaces... ==> homestead-7: Preparing network interfaces based on configuration... homestead-7: Adapter 1: nat homestead-7: Adapter 2: hostonly ==> homestead-7: Forwarding ports... homestead-7: 80 (guest) => 8000 (host) (adapter 1) homestead-7: 443 (guest) => 44300 (host) (adapter 1) homestead-7: 3306 (guest) => 33060 (host) (adapter 1) homestead-7: 5432 (guest) => 54320 (host) (adapter 1) homestead-7: 8025 (guest) => 8025 (host) (adapter 1) homestead-7: 27017 (guest) => 27017 (host) (adapter 1) homestead-7: 22 (guest) => 2222 (host) (adapter 1) ==> homestead-7: Running 'pre-boot' VM customizations... ==> homestead-7: Booting VM... ==> homestead-7: Waiting for machine to boot. This may take a few minutes... 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. If the box appears to be booting properly, you may want to increase the timeout ("config.vm.boot_timeout") value.
Homestead.yamlの設定
ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: ~/projects/laravelApp to: /home/vagrant/Code sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public databases: - homestead
###試したこと
vagrant ssh-config
を叩くと下記の結果が返ってきます。
Host homestead-7 HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /Users/myname/.vagrant.d/insecure_private_key IdentitiesOnly yes LogLevel FATAL ForwardAgent yes
IdentityFile
がid_rsaを見ていないことが SSHが通らない原因だと思うのですが...どう設定すれば解決するのか見えておりません。
以前から使用しているVagrantのディレクトリからのvagrant ssh
の時は、insecure_private_key
を参照して、今回インストールしたHomesteadからのvagrant ssh
の時は、id_rsa
を参照するようにためにはどのように設定すべきでしょうか?
それともそもそもの設定がおかしいのでしょうか?
宜しくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。