我使用创建了一个无业游民的盒子vagrant package,上传并释放了它。
然后,我vagrant init <username>/<box>创建了一个Vagrantfile。我什至将盒装版本附加到Vagrantfile。
接下来我做了vagrant up --provider virtualbox。这会尝试在本地获取框,然后在找不到框时出现错误:
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.
If you're adding a box from HashiCorp's Atlas, make sure the box is
released.
Run Code Online (Sandbox Code Playgroud)
我已经将virtualbox设置为提供程序,并且virtual box与我使用的其他box都可以正常工作。
如果您使用的是 ubuntu,请确保已安装 virtualbox。
sudo apt install virtualbox-qt
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4378 次 |
| 最近记录: |