Vagrant under Windows 10 with VirtualBox - 如何连接到创建的机器
Vagrant under Windows 10 with VirtualBox - how to connect into created machine
我运行 Vagrant version 2.0.1 with VirtualBox v. 5.2.2 under Windows 10,都差不多是最新版本了。
我从图像 ubuntu/xenial64(最新版本 20171201.0.0)创建机器。
我更新了所有软件包并安装了 MongoDB 版本 3.4.0.
我还在 Vagrantfile 中公开了 MongoDB 个端口。
我从主机访问数据库没有问题。
现在我想从这台机器创建一台新机器,如下所示:
vagrant package --output mongodb.box
vagrant box add mongodb mongodb.box
rm mongodb.box
cd ..
mkdir mongodb
cd mongodb
vagrant init mongodb
vagrant up
然后我收到重复消息 "default: Warning: Authentication failure. Retrying...",直到 Vagrant 说无法连接。
我不能
vagrant ssh
进入机器,但如果我在 Vagrantfile 中启用 mongodb 端口,我可以访问数据库。
有没有另一种方法来创建我自己的工作和可管理的机器?
我检查了 %userhome%.vagrant.d\boxes\mongodb[=15=]\virtualbox\Vagrantfile,
没有任何设置
config.ssh.username
config.ssh.password
我从原来的 xenial box 复制它后,它工作正常。
我运行 Vagrant version 2.0.1 with VirtualBox v. 5.2.2 under Windows 10,都差不多是最新版本了。
我从图像 ubuntu/xenial64(最新版本 20171201.0.0)创建机器。
我更新了所有软件包并安装了 MongoDB 版本 3.4.0.
我还在 Vagrantfile 中公开了 MongoDB 个端口。
我从主机访问数据库没有问题。
现在我想从这台机器创建一台新机器,如下所示:
vagrant package --output mongodb.box
vagrant box add mongodb mongodb.box
rm mongodb.box
cd ..
mkdir mongodb
cd mongodb
vagrant init mongodb
vagrant up
然后我收到重复消息 "default: Warning: Authentication failure. Retrying...",直到 Vagrant 说无法连接。 我不能
vagrant ssh
进入机器,但如果我在 Vagrantfile 中启用 mongodb 端口,我可以访问数据库。
有没有另一种方法来创建我自己的工作和可管理的机器?
我检查了 %userhome%.vagrant.d\boxes\mongodb[=15=]\virtualbox\Vagrantfile,
没有任何设置config.ssh.username
config.ssh.password
我从原来的 xenial box 复制它后,它工作正常。