New to vagrant and just trying to wrap my mind around what's going. Using OSX.
installed Virtual Box
installed Vagrant
Downloaded the homestead Vagrant box via
vagrant box add laravel/homestead
- I presume this is the actual VM image. Where did it download to ?
Cloned the Homestead repository into my 'home' folder. git clone https://github.com/laravel/homestead.git Homestead
created ssh key
-- Possible mistakes made below
Opened homestead.yaml located in the ~/Homestead/src/stubs/
Edited shared folders and mapped nginx directory to domain, mapped IP to mydomain.app in hosts file
Ran
vagrant up
, vagrant created some huge 2.7GB folder called VirtualToolBox or something along those lines in my home directory, it appeared to have some Virtual machine images in it ? I presume it just copied the Vagrant Box image I downloaded earlier into my home directory ?I opened the browser and ran mydomain.app and browser stated (no input source file)
I went to fiddle with homestead.yaml file in
~/Homestead/src/stubs/
and updated my shared folders. Next time I ranvagrant up
it gave me an error, stating that the old shared folder is no longer there, but I changed the thing in homestead.yaml, but it was still reading the old configuration from somewhere.Then I found a hidden folder in my home directory, namely
.homestead
which had yet another homestead.yaml file with the old configuration settings.I thought I would start fresh. Deleted ~/homestead and ~/.homestead as well that VToolbox folder with vm images folder in my home directory ~/
I have then cloned the Homestead repo again git clone https://github.com/laravel/homestead.git Homestead into my home folder, however when I now run vagrant up I get an error that '
a box must be specified
'. running vagrant init or vagrant provision does not help.
Where does that leave me, did I actually delete the whole vagrant
VM image I downloaded with vagrant box add laravel/homestead
? And I now
need to download it again ? That VirtualToolBox folder that was created is not where it download as it was only created on first vagrant up command. So I hope I don't have to download it again and there's still a copy somewhere ?
Where is the actual image that the vagrant box add laravel/homestead
command downloads ?
Where does vagrant install ?
Which homestead.yaml file should I be working with ? The one in the hidden folder ?
What do I need to run after changing configuration/shared folders etc. in homestead.yaml ?