请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

vagrant up失败,请老师指导

我是在win上面用virtualbox搭的虚机环境,centos7.2_64位,然后成功安装vagrant,然后下载centos/7的box已经成功,init已经做过了。

[protess@192 vagrant]$ vagrant box list
centos/7 (virtualbox, 1905.1)

然后我vagrant up的时候报错
No usable default provider could be found for your system.
Vagrant relies on interactions with 3rd party systems, known as
"providers", to provide Vagrant with resources to run development
environments. Examples are VirtualBox, VMware, Hyper-V.
The easiest solution to this message is to install VirtualBox, which
is available for free on all major platforms.
If you believe you already have a provider available, make sure it
is properly installed and configured. You can see more details about
why a particular provider isn’t working by forcing usage with
vagrant up --provider=PROVIDER, which should give you a more specific
error message for that particular provider.

我的virtualbox的版本是6.0,vagrant版本是2.5的,官方说明上面是支持的。“The VirtualBox provider is compatible with VirtualBox versions 4.0.x, 4.1.x, 4.2.x, 4.3.x, 5.0.x, 5.1.x, 5.2.x, and 6.0.x. Other ”

搞了一天也没搞好,请老师帮忙指导,谢谢

正在回答 回答被采纳积分+3

1回答

麦兜搞IT 2019-07-28 16:45:39

您好,我没有太明白您的意思,您是说,在windows上通过VirtualBox安装了一个centos,又在centos里安装了vagrant?然后在centos里通过vagrant要创建虚拟机?

如果是这样的话,那事不可以的,您这相当于虚拟机嵌套了,虚拟机里创建虚拟机,这个VirtualBox是不支持的,建议您直接在windows上使用vagrant

1 回复 有任何疑惑可以回复我~
  • 提问者 protess #1
    是的,我是在win上面通过virtualbox搭建了centos的虚机,然后在虚机里面想vagrant再建虚机。。。。。
    如果不行的话,那我直接centos装docker吧,谢谢老师。
    回复 有任何疑惑可以回复我~ 2019-07-28 21:36:07
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信