【发布时间】:2013-07-25 02:24:03
【问题描述】:
我导入了precision32 box,然后在VM 上安装了一些包和其他数据。我的计划是然后将其重新打包到一个盒子中,以在共享时节省复杂的配置。
但是。
vagrant package --base dev-vm --output /box/vm.box
总是返回
[dev-vm] VM not created . Moving on
我的目录结构是:
-dev-vm
--.vagrant
--Logs
--box.ovf
--box-disk1.vmdk
--dev-vm_13345342.vbpx
--metadata.json
--Vagrantfile
我
set VAGRANT_LOG=debug
其中没有显示关于正在发生的事情的额外信息。
使用 Cygwin 的 Windows 7
更新:
export VAGRANT_LOG=debug
供 Cygwin 设置调试日志。
然后我得到
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
INFO warden: Calling action: #<Vagrant::Action::Builtin::Call:0x2abb800>
INFO runner: Running action: #<Vagrant::Action::Builder:0x2695920>
INFO warden: Calling action: #<VagrantPlugins::ProviderVirtualBox::Action::Created:0x267c078>
INFO runner: Running action: #<Vagrant::Action::Warden:0x2ac6c48>
INFO warden: Calling action: #<VagrantPlugins::ProviderVirtualBox::Action::MessageNotCreated:0x2ac6c00>
INFO interface: info: VM not created. Moving on...
【问题讨论】:
-
当我打包一个 VirtualBox 配置的盒子时,我必须使用带有时间码的特定盒子名称,例如
lucid_1372711888。 -
@bfitzpatrick 。就是这样。所以: vagrant package --base dev-vm_13743534 --output /box/vm.box 工作。您想将此添加为答案以便我接受吗?