无法找到Vagrant'box'错误

时间:2014-05-05 18:59:40

标签: hadoop virtualbox vagrant

我已经安装了Vagrant和VirtualBox来模拟Hadoop管理(Apache Ambari)。根据它的安装文档,我已经完成了创建vm的所有事情(使用'vagrant up'命令)。我已经手动安装了lucid32盒子文件并将其放到了目录中,但它仍然说:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The box 'lucid32' could not be found.

我做错了什么?

2 个答案:

答案 0 :(得分:3)

在此过程之后,我能够使用最新安装获得一个盒子。

# From your home directory, install the template box
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box

# From your project directory
vagrant init lucid32
vagrant up

使用Apache Ambari:

# clone from GitHub
git clone https://github.com/u39kun/ambari-vagrant.git

# Append these entries to ambari-vagrant/append-to-etc-hosts.txt
# ubuntu 12.4 hosts
192.168.12.101 u1201.ambari.apache.org u1201
192.168.12.102 u1202.ambari.apache.org u1202
192.168.12.103 u1203.ambari.apache.org u1203
192.168.12.104 u1204.ambari.apache.org u1204
192.168.12.105 u1205.ambari.apache.org u1205
192.168.12.106 u1206.ambari.apache.org u1206
192.168.12.107 u1207.ambari.apache.org u1207
192.168.12.108 u1208.ambari.apache.org u1208
192.168.12.109 u1209.ambari.apache.org u1209
192.168.12.110 u1210.ambari.apache.org u1210

# Modify your hosts file
sudo cat ambari-vagrant/append-to-etc-hosts.txt >> /etc/hosts

# Get up and running
cd ambari-vagrant/ubuntu12.4
vagrant up

答案 1 :(得分:1)

  

Vagrant的配置存在问题。错误消息   印在下面:

     

VM:   *无法找到“hashicorp / precise64”框。

对我来说,这是一个使用太旧版本的流浪者(版本1.0.1)的简单问题。

https://www.vagrantup.com/downloads.html

下载最新内容

然后:

$ sudo dpkg -i vagrant_1.8.5_x86_64.deb