在Windows 8上发出虚假信息

时间:2015-11-22 16:40:34

标签: windows vagrant puphpet

我在Windows 8上安装了最新版本的vagrant 1.7.4和virtualbox 5.0.10时出现此错误:

D:\myproject>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: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'base' (v0) for provider: virtualbox
    default: Downloading: base
    default:
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 /myproject/base

似乎路径无效,这是windows,但路径似乎是一个linux系统。

如果我这样做会发生同样的事情

 vagrant init
 vagrant up

在新文件夹中。

成功下载该框:

 vagrant box add puphpet/ubuntu1404-x64

1 个答案:

答案 0 :(得分:0)

你必须修改vagrantfile。你必须创建自己的名字而不是基础包,或者你应该先运行它vagrant init {boxname}