Reputation: 485
I've followed the Laravel guidelines, and I have Vagrant up and running, but when I visit 'http://homestead.test/' nothing loads.
Homestead.yaml
--- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/code
to: /home/vagrant/code
sites:
- map: homestead.test
to: /home/vagrant/code/Laravel/public
databases:
- homestead
Hosts
# 127.0.0.1 localhost
# ::1 localhost
# 192.168.10.10 homestead.test
Could anyone shed some light on what I've missed? Thanks.
Update: I'm now getting the following error when trying to run Homestead via GitBash:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["modifyvm", "29535830-0e33-4f82-a359-6973606f6529", "--natpf1", "delete", "ssh"]
Stderr: VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 529 of file VBoxManageModifyVM.cpp
Upvotes: 1
Views: 2752
Reputation: 5552
It looks like you've accidentally commented out the hosts
entry.
Change
# 127.0.0.1 localhost
# ::1 localhost
# 192.168.10.10 homestead.test
to
# 127.0.0.1 localhost
# ::1 localhost
192.168.10.10 homestead.test
Upvotes: 1
Reputation: 2222
You should have something like this:
---ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: c:/Users/UserName/.ssh/id_rsa.pub
keys:
- c:/Users/UserName/.ssh/id_rsa
folders:
- map: e:/MyFolder/Homestead
to: /home/vagrant/code
sites:
- map: homestead.test
to: /home/vagrant/code/public
databases:
- homestead
I learned how to do it here: https://medium.com/@eaimanshoshi/i-am-going-to-write-down-step-by-step-procedure-to-setup-homestead-for-laravel-5-2-17491a423aa
Upvotes: 0