A VirtualBox machine with the name 'homestead' already exists

前端 未结 30 3718
旧巷少年郎
旧巷少年郎 2020-12-02 04:58

Since homestead 2.0 homestead laravel has not been working

I don\'t know why \'homestead init\' creates a Homestead.yaml file in mydirectory/.homestead and not in

相关标签:
30条回答
  • 2020-12-02 05:11

    None of this worked for me. I was using an old dev machine

    I attempted:

    1. vagrant global-status > destroy any by id which you don't need or match what is conflicting

    2. open virtualbox and remove + delete files for any which you don't need or are conflicting

    What worked:

    • locate your ~/.vagrant/machines/ or ~/.vagrant.d/boxes folder. In my case, it contained the conflicting vm and also a bunch of old left over vm machines which steps 1 & 2 did not remove for some reason.

    • after clearing these, everything worked fine again, finally!

    0 讨论(0)
  • 2020-12-02 05:11

    In my case the following article provide the solution. There was a folder named homestead inside the path /var/root/VirtualBox VMs/ that was causing the issue. Once this folder was removed, rm -r homestead, the issue was resolved. If you can not see or have access to this path execute the following commands in your terminal windows:

    $ sudo -s 
    $ cd /var/root/VirtualBox\ VMs
    

    And proceed to delete the homestead folder.

    0 讨论(0)
  • 2020-12-02 05:12

    I had the same issue today. Windows 10. I recently had updated Homestead, so the error was probably because of that. I tried it all, destroy, up, delete folders, whatever. Whenever I tried to run vagrant up, it was showing this kind of errors. The solution? After updating, I noticed that Homestead is now naming the boxes by the project folder name, and Homestead.yaml has all that infos. I just run that Homestead Windows configuration vendor\\bin\\homestead make and later them a vagrant up (before making sure it was all clean) and voilá, looks like the machine is booting now. =) Try that if you need it.

    0 讨论(0)
  • 2020-12-02 05:13

    I'm a bit late to the party on this, but for anyone else having this issue SergioPeluzzi came closest, but didn't get the cigar with this:

    Seek for vb.name = settings["name"] = "homestead" line and changed "homestead" to "HOMESTEAD" and "vói lá"

    The line is actually:

    vb.name = settings["name"] ||= "homestead"
    

    As you can see from the bit that says settings["name"], you just need to add a name field to your Homestead YAML file, e.g.

    memory: 2048
    cpus: 1
    provider: virtualbox
    name: my-sexy-homestead-box
    
    0 讨论(0)
  • 2020-12-02 05:13

    I solved this editing /Homestead_folder/scripts/homestead.rb

    Seek for vb.name = settings["name"] = "homestead" line and changed homestead to HOMESTEAD and "vói lá" that worked for me.

    0 讨论(0)
  • 2020-12-02 05:13

    Open VirtualBox GUI. See for your VM and remove it. It solved my problem.

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