Homestead 启动不了,启动的时候一直停留在 SSH auth method: private key
我是 git clone https://github.com/laravel/homestead.git Homestead
生成了 Homestead.yaml 配置文件(我本机 IP 是 192.168.199.17),内容如下:
ip: "192.168.1.254"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders: - map: E:\www\vagrant
to: /home/vagrant/Code
sites: - map: homestead.app
to: /home/vagrant/Code/Laravel/public
databases: - homestead
我有 vagrant box add laravel/homestead,vagrant box list 也有显示这个添加好了这个 box。
vagrant up 启动结果如下所示:
E:\Program Files\Homestead>vagrant up
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Clearing any previously set network interfaces...
==> homestead: Preparing network interfaces based on configuration...
homestead: Adapter 1: nat
homestead: Adapter 2: hostonly
==> homestead: Forwarding ports...
homestead: 80 (guest) => 8000 (host) (adapter 1)
homestead: 443 (guest) => 44300 (host) (adapter 1)
homestead: 3306 (guest) => 33060 (host) (adapter 1)
homestead: 5432 (guest) => 54320 (host) (adapter 1)
homestead: 22 (guest) => 2222 (host) (adapter 1)
==> homestead: Running 'pre-boot' VM customizations...
==> homestead: Booting VM...
==> homestead: Waiting for machine to boot. This may take a few minutes...
homestead: SSH address: 127.0.0.1:2222
homestead: SSH username: vagrant
homestead: 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: SSH auth method: private key,过了四五分钟后,就显示后面的内容,请问如何解决?
推荐文章: