Vagrant up返回"压缩图像已损坏"

 樱花落下的那天 发布于 2023-01-03 13:18

我正在尝试使用Ubuntu 14.04 32bit作为基础创建一个流浪盒.

第一个VMDK已成功打包和测试.然后我意识到用Latex(Tex Live)配置盒子需要很长时间.所以我用以下方式创建了一个新包:

    创建原始VMDK的"完整克隆"(选中"重新初始化所有网卡的MAC地址")

    安装乳胶.

    关闭并开始打包克隆.

一旦我将包添加到流浪汉,我创建了一个新的流浪盒.但运行它返回以下内容:

$ 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从未更改过.

有人会知道发生了什么以及如何解决这个问题?

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有