居家办公开发环境搭建遇到的两个问题

一. 提示 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...

参考了下面这位大佬的博文,解决了

default: Warning: Authentication failure. Retrying..._Ther。的博客-CSDN博客【起因】很早之前使用vagrant搭建了自己的lnmp环境,前几天在弄composer安装laravel时不知道为什么老是安装不上(好像是系统内存不足),然后就不知道为什么我的虚拟机就炸了,然后我就重修搭建lnmp环境(校园网网速比较慢,下载软件还是挺费时间的)所以就想做一个自己的box方便之后瞎搞把虚拟机搞炸了也可以快速的重建。【问题】在导出自己的box之后,vagrant up时出现def...https://blog.csdn.net/qq_37562908/article/details/98965877

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值