我跑Laravel流浪家園,所以我決定通過掃清理我的所有項目,也從我的桌面移到我的主要項目文件夾的位置,我的C:/
只是爲了讓事情更有條理。當我啓動我的VM時,它無法驗證。Laravel家園開機驗證錯誤
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 => 8000 (adapter 1)
default: 3306 => 33060 (adapter 1)
default: 5432 => 54320 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> 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
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
我跟着幾步之遙,檢查了我的SSH密鑰路徑在我Homestead.yaml
和一切看起來OK。
我跑vagrant ssh-config
:
$ vagrant ssh-config
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile C:/Users/David/.vagrant.d/insecure_private_key
IdentitiesOnly yes
LogLevel FATAL
和編輯insecure_private_key
我自己匹配(我看到了作爲一個答案的地方),但無濟於事。
這裏是我的Homestead.yaml
(修改刪除網站名稱):
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: C:/Users/David/.ssh/id_rsa.pub
keys:
- C:/Users/David/.ssh/id_rsa
folders:
- map: C:/Code/projects/website
to: /home/vagrant/projects/website
sites:
- map: website.app
to: /home/vagrant/projects/website/public
variables:
- key: APP_ENV
value: local
我確信的路徑,我的SSH密鑰沒有被修改。清理VM上的項目並將我的主代碼文件夾移動到C:/
並重新映射後,我纔開始遇到此問題。在你的日誌
同樣的問題在這裏,一定要通過您的BIOS在您的CPU上啓用虛擬化。如果您沒有支持VT-x的CPU,則需要使用如下所示的32位VM框:https://github.com/antoniofrignani/laravel-homestead-settler-32 要將默認框更改爲32位框,您需要將「config.vm.box =」laravel/homestead「」行更改爲「config.vm.box =」antoniofrignani/laravel-homestead-settleler-32「」 scripts/homestead.rb文件 – karansolo 2014-10-28 15:55:04