尝试将VMWare工作站提供程序用于vagrant(我现在知道需要许可证),然后切换回VirtualBox,我遇到了这个问题:
$ ~/Homestead > vagrant up --provider=virtualbox
A valid license is required to run the Vagrant VMware
provider. Please visit http://www.vagrantup.com to purchase
a license. Once you purchase a license, you can install it
using `vagrant plugin license`.
Vagrant failed to initialize at a very early stage:
The plugins failed to load properly. The error message given is
shown below.
exit
我还尝试通过VAGRANT_DEFAULT_PROVIDER
导出默认提供商,但无济于事。
答案 0 :(得分:2)
你不需要等号(=
)。跑吧
vagrant up --provider virtualbox
如果导出VAGRANT_DEFAULT_PROVIDER
,则可以使用选项
fhenri@machine:~/project/ubuntu$ export VAGRANT_DEFAULT_PROVIDER=virtualbox
fhenri@machine:~/project/ubuntu$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
您可以卸载vmware插件以查看它是否有效
vagrant plugin uninstall vagrant-vmware-fusion
然后再次运行
你可以确认你对任何Vagrant文件有同样的问题吗?