A VirtualBox machine with the name 'homestead-7' already exists. Please use another name or delete t

admin2023-01-1737281

在启动vagrant up时出现下面错误:

A VirtualBox machine with the name 'homestead-7' already exists. 
Please use another name or delete the machine with the existing name, and try again.

这是就因为字面上的意思,你已经有了这么一个虚拟机,不能再建立一个重名得虚拟机了。

该虚拟机在C:\Users\Admin\Homestead\.vagrant\machines\homestead-7目录:

解决方法:进入这个目录,把虚拟机名字修改了,我这里得名字是homestead-7,改了或者删除。

        查看虚拟器 

        vagrant global-status

blob.png

删除对应名称的虚拟机

vagrant destroy {id}

blob.png

再去执行vagrant up看看。

至此我的问题还没有解决,有解决方法如下:

通过VBoxManage list vms获取虚拟机列表,然后在通过运行 VBoxManage unregistervm homestead --delete

我的VBoxManage命令找不到还是没有成功,如果你得找到了应该可以了。

网友评论当前共有1条评论

  • 2020-04-14 17:15:37

    VBoxManage unregistervm homestead-7 --delete的时候显示 homestead-7被锁定无法删除的情况真么处理啊