I am learning to use vagrant and I have recently a setup vagrant homestead system on my local machine.
my homestead.yaml
is in scr/stubs/
folder.
It looks like this.
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: /var/www/myhomestead/homestead/ssh/id_rsa.pub
keys:
- /var/www/myhomestead/homestead/ssh/id_rsa
folders:
- map: /var/www/sites/
to: /home/vagrant/sites/
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
When I run "vagrant up" it gives me errors like this.
amit@Amit:/var/www/myhomestead/homestead$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'base' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Adding box 'base' (v0) for provider: virtualbox default: Downloading: base An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again.
Couldn't open file /var/www/myhomestead/homestead/base
You can try vagrant init hashicorp/precise32
. This creates the box not just the project.
Then do vagrant up
to get the ball rolling.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With