Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vagrant up command fails [duplicate]

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

like image 394
Arya Avatar asked Dec 02 '14 06:12

Arya


1 Answers

You can try vagrant init hashicorp/precise32. This creates the box not just the project.

Then do vagrant up to get the ball rolling.

like image 102
Ali Gajani Avatar answered Sep 18 '22 10:09

Ali Gajani