A VirtualBox machine with the name 'homestead' already exists

前端 未结 30 3720
旧巷少年郎
旧巷少年郎 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:18

    If you are a Windows User, make sure you delete C:\Users\<Username>\VirtualBox VMs\homesteadfolder. Because if there is still a folder named homestead, the action of vagrant up will not be completed

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

    Windows10

    Edit Homestead.yaml file and give a new name for the box:

    ip: "192.168.10.10"
    memory: 2048
    cpus: 2
    provider: virtualbox
    name: my-new-vbox      #new name for the box
    

    and run vagrant up or vagrant up --provision

    Or

    Open Virtualbx application in GUI and delete all the virtualbox that was causing problem and run the above command

    Or

    Delete the "Vagrant" file inside homestead folder and run the above command.

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

    I edited Homestead.yaml and add new name for it

    ip: "192.168.10.10"
    memory: 2048
    cpus: 4
    provider: virtualbox
    name: my-new-homestead-box-name
    
    0 讨论(0)
  • 2020-12-02 05:23

    I was receiving the same error message, even after running "homestead destory", and "vagrant destroy". Same as you, I was using the VirtualBox provider, vagrant, and homestead. Here's what I did:

    1. Opened VirtualBox GUI. I see "homestead" as a VM, but I cannot remove it, button is greyed out.
    2. I logged out of my OS, logged back in and re-opened VirtualBox. Status is now "aborted" and i'm able to remove.
    3. There were some residual files in ~/VirtualBox\ VMs/homestead, so i ran rm -r /Users/gabriel/VirtualBox\ VMs/homestead
    4. I am now able to run "homestead up"
    0 讨论(0)
  • 2020-12-02 05:23

    Add --force after box, and before your given name.

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

    For me, the machine was not showing up as an active VM in the VirtualBox application. To fix I had to do this:

    vagrant global-status

    This gave me the ID of the machine that I needed to destroy. With the ID, run:

    vagrant destroy {VM ID}

    I had to run that in sudo to actually destroy the machine. At that point, I was able to run

    vagrant up

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