无法调出添加了参数--name的流浪盒图像

时间:2014-12-16 17:48:38

标签: vagrant

我直接使用URL下载了Vagrant框图像,然后使用--name选项将其添加为

    C:\Users\vnathan>vagrant box add --name monasca c:\Users\vnathan\.vagrant\machines\monasca\devstack\virtualbox\devstack-0.1.3.box

我能够看到vmdk文件,manifest.json文件,Vagrantfile,OVA文件的目录。 在目录C:\ Users \ vnathan.vagrant.d \ boxes \ monasca \ 0 \ virtualbox

我能够在运行

时查看添加的框列表
       C:\Users\vnathan>vagrant box list
       monasca (virtualbox, 0)

但是我无法在运行流浪汉命令时调出流浪盒。

      C:\Users\vnathan>vagrant up monasca
      The machine with the name 'monasca' was not found configured for this Vagrant environment.

我更新了主config.vm.box = "monasca"中的Vagrantfile,但仍无法调出实例。

请让我知道我应该怎么做才能启动流浪者的方框。提前谢谢。

1 个答案:

答案 0 :(得分:0)

感谢宝马;我尝试了下面的步骤,通过一些网站,最后我能够添加monasca框作为流浪汉的一部分,但VirtualBox无法导入图像;我现在需要深入解决这个问题。

C:\Users\vnathan>vagrant status
Current machine states:

     default                   not created (virtualbox)

     The environment has not yet been created. Run `vagrant up` to
     create the environment. If a machine is not created, only the
     default provider will be shown. So if a provider is not listed,
     then the machine is not created for that environment.

运行流浪汉

C:\Users\vnathan>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'monasca'...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "C:/Users/vnathan/.vagrant.d/boxes/monasca/0/virtualbox/box.
ovf", "--vsys", "0", "--vmname", "ds-build_devstack_1412364613065_73348_14187919
33520_71376", "--vsys", "0", "--unit", "7", "--disk", "C:\\Users\\vnathan\\Virtu
alBox VMs\\ds-build_devstack_1412364613065_73348_1418791933520_71376\\box-disk1.
vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting C:\Users\vnathan\.vagrant.d\boxes\monasca\0\virtualbox\box.ovf...
OK.
0%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Appliance import failed
VBoxManage.exe: error: Could not create the clone medium 'C:\Users\vnathan\Virtu
alBox VMs\ds-build_devstack_1412364613065_73348_1418791933520_71376\box-disk1.vm
dk'.
VBoxManage.exe: error: VMDK: Compressed image is corrupted 'C:\Users\vnathan\.va
grant.d\boxes\monasca\0\virtualbox\box-disk1.vmdk' (VERR_ZIP_CORRUPTED)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component A
ppliance, interface IAppliance
VBoxManage.exe: error: Context: "int __cdecl handleImportAppliance(struct Handle
rArg *)" at line 779 of file VBoxManageAppliance.cpp
相关问题