Getting errors while exporting Windows7 virtualbox image to a .box format

18 views
Skip to first unread message

Anshul Mittal

unread,
Mar 24, 2019, 9:41:58 PM3/24/19
to Vagrant
I am trying to export a Windows7 virtualbox image to a .box format, but getting errors while exporting it. please advise. The logs are mentioned below:

cat metadata.json
{"provider":"virtualbox"}

l$ vagrant package --base="abc" --output="abc1.box" --include metadata.json
==> vagrant: A new version of Vagrant is available: 2.2.4!
==> vagrant: To upgrade visit: https://www.vagrantup.com/downloads.html

==> abc: 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", "abc", "--output", "/Users/anshulmittal/.vagrant.d/tmp/vagrant-package-20190323-41800-161eeyz/box.ovf"]

Stderr: 0%...
Progress state: VBOX_E_IPRT_ERROR
VBoxManage: error: Appliance write failed
VBoxManage: error: RTVfsFsStrmAdd failed for 'box.ovf' (VERR_ALREADY_EXISTS)
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component ApplianceWrap, interface IAppliance
VBoxManage: error: Context: "RTEXITCODE handleExportAppliance(HandlerArg *)" at line 1263 of file VBoxManageAppliance.cpp

Alvaro Miranda Aguilera

unread,
Mar 25, 2019, 2:33:34 PM3/25/19
to vagra...@googlegroups.com
hello

error message says there is already some files on that path:

VBoxManage: error: Appliance write failed
VBoxManage: error: RTVfsFsStrmAdd failed for 'box.ovf' (VERR_ALREADY_EXISTS)

Can you try to delete "/Users/anshulmittal/.vagrant.d/tmp/*" and try again? ?

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/0a61bab3-3653-40c1-878d-b71ab7a6bbc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

lashe adebayo

unread,
Mar 25, 2019, 8:07:08 PM3/25/19
to vagra...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages