vagrant - 尝试 vagrant up 时出错

标签 vagrant

我在我的环境中使用 Vagrant,但遇到了一个小问题:

$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 拒绝工作。

最佳答案

看来您可能仅使用 vagrant init 创建了一个 Vagrant 项目。这将创建您的 Vagrantfile,但它不会定义一个框。

相反,您可以尝试

$ vagrant init hashicorp/precise32
$ Vagrant 起来

它使用标准的 Ubuntu 镜像。 Vagrant 网站有一个 Getting Started其中给出了一些很好的例子。

关于vagrant - 尝试 vagrant up 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23874260/

相关文章:

go - Visual Studio Code 和 vagrant 集成

plugins - 安装 vagrant-vsphere 插件

php - Vagrant 规定 : installing LAMP throwing errors

mysql - 使用 bash 脚本在 CentOS 6 VM (Vagrant) 上安装 MySQL

ssh - Vagrant 在不使用 key 的情况下提示输入密码

Laravel Homestead,npm install --no-bin-links 错误

linux - 等待机器启动时超时!! Vagrant-虚拟盒子

mongodb - 无法连接到 MongoDB、Ubuntu 64 VM(Vagrant、PuPHPet)

virtualbox - Vagrant 重置了我的虚拟机,现在我害怕我失去了我的工作

windows - 无法启动 Git Bash