一. 提示 virtualbox machine 同名的已经存在
A VirtualBox machine with the name 'CentOS7' already exists.
Please use another name or delete the machine with the existing
name, and try again.
使用上面的vagrant box remove xxx 后,依旧提示同样的问题,
使用 vagrant global-status 查看目前的vittualbox,找到要删除的 id, 使用 vagrant destroy xxx 删除
如果还是删除不掉,那就使用 C:\software\virtualbox\VBoxManage.exe list vms 命令再查看所有的vms,
再使用这个命令删除指定的
C:\software\virtualbox\VBoxManage.exe unregistervm "CentOS7" --delete
二. SSH 超时问题
An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.
执行vagrant up 命令后 卡到 ssh auth mothod 这一步,
用 vagrant ssh-config 查看本地之前储存的 identity file在哪, 下次使用vagrant up命令前 先把这个文件删掉,然后再执行就行了.
最好把防火墙都暂时关闭,不然可能会导致设置网卡时,不能重新启动的问题.
这疫情何时才能消停呢.......
2022.05.23 再补充. 今天居家办公第三周. 周末window10升级,系统重启了. 今早上 打开开发工具就发现又不行了.... 看来这玩意不怎么可靠... 得考虑个替代工具了
一直
default: Warning: Authentication failure. Retrying...
参考了下面这位大佬的博文,解决了