2016-09-05 33 views
0

我正在尝试使用虚拟框设置虚拟机。我已经在我的Windows 7 64位机器上安装了虚拟盒子和流浪汉。我还用puphpet构建了一个环境。但每当我尝试安装箱ubuntu1404-64,它抛出的错误无法找到流氓框错误

Bringing machine 'machine1' up with 'virtualbox' provider... 
==>Machine1: Box 'puphpet/ubuntu1404-x64' could not be found. Attempting to find and install... 
machine1: Box Provider: virtualbox 
machine1: Box Version: >= 0 
machine1: Box file was not detected as metadata. Adding it directly... 
machine1: Adding box 'puphpet/ubuntu1404-x64' (v0) for provider: virtualbox 
machine1: Downloading: puphpet/boxes/ubuntu1404-x64 
machine1: 
An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. 

我检查URL https://atlas.hashicorp.com/puphpet/boxes/ubuntu1404-x64/和箱puphpet/ubuntu1404-64确实存在。

此外,当它说The error message, if any, is reproduced below它没有在终端上显示任何描述。

我googled的问题,尝试了一些在这里的答案在stackoverflow但没有结果。请帮忙。

+0

我已经通过它的文档,它说那里的盒子里面需要一个metadata.json文件。现在,当我通过我的cmd运行vagrant时,它说框文件没有被检测为元数据。 – Sid

回答

2

我已经在过去类似的情况,并使用流浪汉命令行,而不是让它被自动下载(从Vagrantfile的URL)帮我下载框:

$ vagrant box add USER/BOX 

查看更多here。你可以尝试相同的方法吗?它也可能适用于你。

编辑:在Windows框中,Microsoft Visual C++ 2010 redist看起来需要执行配置的框。它可以下载here。更多关于puhpet问题的信息:here

+0

感谢您的信息Geo,我浏览了他们的文档,但问题仍然存在。箱子找不到。 – Sid

+0

该框的URL是否存在且有效?如果是这样,下面是我如何使用它的一个例子:'vagrant box add ubuntu-1464 https:// github.com/kraksoft/vagrant-box-ubuntu/releases/download/14.04/ubuntu-14.04-amd64.box'。然后,在我的流浪文件中,我只是将盒子名称配置为'ubuntu-1464',我删除了该URL。这使得流浪者在本地安装的箱子列表中找到它。 – Geo

+0

我尝试从github上下载,但仍然一样。我还手动下载了这个盒子文件,并尝试'vagrant box add name local_box_file',但它仍然抛出相同的错误。 – Sid