2014-07-14 38 views
6

我試圖創建一個使用Ubuntu 14.04 32bit作爲基礎的流浪盒。流浪漢迴歸「壓縮圖像已損壞」

第一個VMDK打包並測試成功。然後我意識到配備Latex(Tex Live)需要很長的時間。所以,我在下面的方式創建一個新的包:

  1. 創建「完整克隆」原VMDK的(經過「重新初始化的所有網卡的MAC地址」)
  2. 安裝的乳膠。
  3. 關閉並開始打包克隆。

有一次,我將這個包裹加入了流浪漢,我創造了一個新的流浪者箱子。但是,運行它返回以下:

$ vagrant up 
Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Importing base box 'ubuntu-latex'... 
Progress: 10%There was an error while executing `VBoxManage`, a CLI used by Vagrant 
for controlling VirtualBox. The command and stderr is shown below. 

Command: ["import", "/home/me/.vagrant.d/boxes/ubuntu-latex/0/virtualbox/box.ovf", "--vsys", "0", "--vmname", "Ubuntu-HL-Latex_1_1405303855841_84250", "--vsys", "0", "--unit", "11", "--disk", "/home/me/VirtualBox VMs/Ubuntu-HL-Latex_1_1405303855841_84250/box-disk2.vmdk"] 

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% 
Interpreting /home/me/.vagrant.d/boxes/ubuntu-latex/0/virtualbox/box.ovf... 
OK. 
0%...10%... 
Progress state: VBOX_E_FILE_ERROR 
VBoxManage: error: Appliance import failed 
VBoxManage: error: Could not create the clone medium '/home/me/VirtualBox VMs/Ubuntu-HL-Latex_1_1405303855841_84250/box-disk2.vmdk'. 
VBoxManage: error: VMDK: Compressed image is corrupted '/home/me/.vagrant.d/boxes/ubuntu-latex/0/virtualbox/box-disk2.vmdk' (VERR_ZIP_CORRUPTED) 
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance 
VBoxManage: error: Context: "int handleImportAppliance(HandlerArg*)" at line 779 of file VBoxManageAppliance.cpp 

vagrant init是爲原始和乳膠盒子執行的vagrantfile從未改變。

有人會對發生了什麼以及如何解決這個問題有個想法嗎?

回答

1

我有同樣的問題,我定會這樣:

$vagrant box list 

$vagrant box remove precise6 

$vagrant up