Now I'd like to export this VM to a single OVA file that includes the ISO image inside. It seems "vboxmanage export <name> -o <output file>.ova --options iso" does exactly this. The OVA archive includes the ISO file (and the OVF file inside looks sensible, too).
However, importing this OVA back to VirtualBox (from File / Import Appliance...) does not work. The import starts just fine (I get the "Importing appliance ... (1/3)" dialog), but after a while, I this this error message:
Code: Select all
Failed to import appliance C:\Temp\exporttest2.ova.
Could not get the storage format of the medium 'C:\Users\Pasi\VirtualBox VMs\exporttest2\exporttest2-disk1.iso' (VERR_SHARING_VIOLATION).
Result Code: VBOX_E_IPRT_ERROR (0x80BB0005)
Component: Medium
Interface: IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac}