Error when trying vagrant up

前端 未结 23 2187
隐瞒了意图╮
隐瞒了意图╮ 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:50

    edit the vagrant file created by vagrant init in the same directory and enter the box name in the line config.vm.box = "ubuntu/trusty64" where ubuntu/trusty64 is your base box. Now vagrant up will download and set ubuntu/trusty64 as base box for you.

    0 讨论(0)
  • 2020-11-30 17:51

    work to me these are the following steps:

    • cd homestead (in your directory homestead folder) OR cd Homestead
    • del vagrantfile or rm -Rf Vagrantfile
    • vagrant init laravel/homestead
    • vagrant up
    0 讨论(0)
  • 2020-11-30 17:51

    you can also just add the vm to your machine

    vagrant box add precise32 http://files.vagrantup.com/precise32.box
    
    0 讨论(0)
  • 2020-11-30 17:54

    if "Vagrantfile" already exists in this directory. Remove it before running "vagrant init". error shows then

    1. rm Vagrantfile
    2. vagrant init hashicorp/precise64
    3. vagrant up
    
    0 讨论(0)
  • 2020-11-30 17:54

    This work for me on Windows 10: https://stackoverflow.com/a/31594225/2400373

    But it is necessary to delete the file: Vagranfile after use the command:

    vagrant init precise64 http://files.vagrantup.com/precise64.box
    

    And after

    vagrant up
    
    0 讨论(0)
  • 2020-11-30 17:55

    With me I got an error when run vagrant up is (I used Macbook pro, Mac OS: 10.12.1):

    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...

    I tried to delete the Vagrantfile in my folder and run:

    vagrant init hashicorp/precise64

    then:

    vagrant up

    It can solved my problem. Hope this can help for someone who face the same problem.

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