尝试 vagrant up 时出错 [英] Error when trying vagrant up
本文介绍了尝试 vagrant up 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的环境中使用 Vagrant,但遇到了一个小问题:
I'm using Vagrant for my environment and I've got a little issue:
$vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Adding box 'base' (v0) for provider: virtualbox
default: Downloading: base
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /Users/.../base
我已经用 vagrant init
初始化了我的项目,但由于某种原因 vagrant up
拒绝工作.
I have initialised my project with vagrant init
but for some reason vagrant up
refuses to work.
推荐答案
看起来您可能已经创建了一个仅使用 vagrant init
的 Vagrant 项目.这将创建您的 Vagrantfile,但它不会定义一个框.
It looks like you may have created a Vagrant project with just vagrant init
. That will create your Vagrantfile, but it won't have a box defined.
相反,你可以试试
Instead, you could try
$ vagrant init hashicorp/precise32
$ vagrant up
使用标准的 Ubuntu 映像.Vagrant 网站有一个入门,其中提供了一些很好的例子.
which uses a standard Ubuntu image. The Vagrant website has a Getting Started which gives some good examples.
这篇关于尝试 vagrant up 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文