我正在尝试在MacBook Pro上创建一个VirtualBox Ubuntu VM的流浪盒。当我运行命令时,我得到一个我不明白的错误。我尝试过重建虚拟机。我尝试过不同状态的不同虚拟机。我一直在打这堵砖墙。
看起来VBoxManage尝试为包进程创建一个临时文件,但由于某种原因无法写入该文件。这也发生在我的Ubuntu笔记本电脑上。这真的很有趣,让我怀疑它是否是VBoxManage本身的一个问题,然而,似乎很多人都没有这个特定的问题(尽管错误代码"代码VBOX_E_FILE_ERROR( 0x80bb0004)"相对常见。)
以下是我的命令的输出:
earthmant$ vagrant package --base 64precise6
==> 64precise6: Attempting graceful shutdown of VM...
64precise6: Guest communication could not be established! This is usually because
64precise6: SSH is not running, the authentication information was changed,
64precise6: or some other networking issue. Vagrant will force halt, if
64precise6: capable.
==> 64precise6: Forcing shutdown of VM...
==> 64precise6: Exporting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["export", "64precise6", "--output", "/Users/earthmant/.vagrant.d/tmp/1417878317/box.ovf"]
Stderr: 0%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Appliance write failed
VBoxManage: error: File not accessible or erroneous file contents
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance
VBoxManage: error: Context: "int handleExportAppliance(HandlerArg*)" at line 1121 of file VBoxManageAppliance.cpp
答案 0 :(得分:1)
我注意到很多人明确指出,当您在VirtualBox中创建VM时,您应该使用vmdk文件格式的磁盘。我用过qcow。当我使用vmdk重建VM时,vagrant包成功了。