![将现有虚拟机添加到 vagrant 全局环境中](https://linux22.com/image/744798/%E5%B0%86%E7%8E%B0%E6%9C%89%E8%99%9A%E6%8B%9F%E6%9C%BA%E6%B7%BB%E5%8A%A0%E5%88%B0%20vagrant%20%E5%85%A8%E5%B1%80%E7%8E%AF%E5%A2%83%E4%B8%AD.png)
发生了一些事情,我的全局环境中不再有任何 vagrant boxes。换句话说:
$ vagrant global-status
id name provider state directory
--------------------------------------------------------------------
There are no active Vagrant environments on this computer! Or,
you haven't destroyed and recreated Vagrant environments that were
started with an older version of Vagrant.
Vagrantfile
我仍然可以使用并运行将目录更改为目录,$ vagrant up && vagrant ssh
但这有点烦人。
我宁愿不进行销毁,因为我担心会丢失所有数据。还有其他方法可以将这些虚拟机重新放入我的全局环境中吗?谢谢!