A VirtualBox machine with the name 'homestead' already exists

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

    I solved by using vboxmanage to get the ID of the VM.

    $ vboxmanage list vms
    "my-vm" {c700b8b6-b766-4638-871b-736b44b7db18}
    

    Copy the ID of the desired VM (the c700…db18 string) into the contents of ~/.vagrant/machines/default/virtualbox/id. Save the file then run vagrant up to get the vm working without having to destroy it.

提交回复
热议问题