Error when trying vagrant up

前端 未结 23 2263
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 17:34

I\'m using Vagrant for my environment and I\'ve got a little issue:

$vagrant up

Bringing machine \'default\' up with \'virtualbox\' provider...
==> defau         


        
相关标签:
23条回答
  • 2020-11-30 17:56

    I know this is old, but I got exactly the same error. Turns out I was missing this step that is clearly in the documentation.

    I needed to edit the Vagrantfile to set the config.vm.box equal to the image I had downloaded, hashicorp/precise32. By default it was set to base.

    Here's what the documentation says:

    Now that the box has been added to Vagrant, we need to configure our project to use it as a base. Open the Vagrantfile and change the contents to the following:

    Vagrant.configure("2") do |config|
      config.vm.box = "hashicorp/precise32"
    end
    
    0 讨论(0)
  • 2020-11-30 17:57

    The first and most important step before starting a Vagrant is, check which all boxes are present in your system. Use this command for getting the list of boxes available.

    vagrant box list

    Then move to further process that is, selecting a particular box

    vagrant init ubuntu/trusty64 (I have selected ubuntu/trusty64)

    then,

    vagrant up

    Thanks

    0 讨论(0)
  • 2020-11-30 18:01

    I faced same issue when I ran following commands

    vagrant init
    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: Box file was not detected as metadata. Adding it directly...
    ==> 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 /home/...../base
    

    I corrected with

    >vagrant init laravel/homestead
    >Vagrant up
    

    It worked for me.

    Happy coding

    0 讨论(0)
  • 2020-11-30 18:01

    well, actually you have to do:

    vagrant up laravel/homestead
    

    because according to homestead walkthrough you've just downloaded it: http://laravel.com/docs/5.0/homestead by:

    vagrant box add laravel/homestead
    

    so you have to launch the box you mean to use - not some random ubuntu image ;)

    0 讨论(0)
  • 2020-11-30 18:06

    Check Homestead.yaml file carefully.Check if there is any extra space character after line ends. Then, open gitbash -> go Homestead directory -> command "vagrant up --provision".

    0 讨论(0)
提交回复
热议问题