vagrant import虚拟机失败

yangkf 发布于 2015/09/26 11:46
阅读 1K+
收藏 0

我用vagrant1.7.4配置Linux虚拟机在Win10上,provision是Virtualbox 5.0.4,加载虚拟机时,terminal提示错误如下:

vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'http://10.10.3.84/work/DEV/vagrant_package/pack
age_2105_8_18.box'...
Progress: 20%Progress: 30%Progress: 50%Progress: 70%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/megoo/.vagrant.d/boxes/http-VAGRANTCOLON--VAGRANTS
LASH--VAGRANTSLASH-10.10.3.84-VAGRANTSLASH-work-VAGRANTSLASH-DEV-VAGRANTSLASH-va
grant_package-VAGRANTSLASH-package_2105_8_18.box/0/virtualbox/box.ovf", "--vsys"
, "0", "--vmname", "ecloud_dev_default_1439782028161_84247_1443237374356_79374",
 "--vsys", "0", "--unit", "9", "--disk", "C:\\Users\\megoo\\VirtualBox VMs\\eclo
ud_dev_default_1439782028161_84247_1443237374356_79374\\box-disk2.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting C:\Users\megoo\.vagrant.d\boxes\http-VAGRANTCOLON--VAGRANTSLASH--VA
GRANTSLASH-10.10.3.84-VAGRANTSLASH-work-VAGRANTSLASH-DEV-VAGRANTSLASH-vagrant_pa
ckage-VAGRANTSLASH-package_2105_8_18.box\0\virtualbox\box.ovf...
OK.
0%...10%...20%...30%...40%...50%...60%...70%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Appliance import failed
VBoxManage.exe: error: Could not create the imported medium 'C:\Users\megoo\Virt
ualBox VMs\ecloud_dev_default_1439782028161_84247_1443237374356_79374\box-disk2.
vmdk' (VERR_VD_VMDK_INVALID_FORMAT)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component A
pplianceWrap, interface IAppliance
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(s
truct HandlerArg *)" at line 877 of file VBoxManageAppliance.cpp

对错误做了以下的分析:

1、Virtualbox的问题,新建了一个CentOS的虚拟机测试,可以正常使用;

2、Vagrant的问题,把Vagrant卸载重新安装,再次Vagrant Up还是同样的问题;

有没有人出现同样的问题,如何解决?请与我分享,谢谢!

加载中
返回顶部
顶部