VirtualBox

Opened 10 years ago

Closed 8 years ago

#13029 closed defect (obsolete)

Exported OVF sometimes has wrong OperatingSystemSection ovf:id field

Reported by: bryank Owned by:
Component: OVF Version: VirtualBox 4.3.10
Keywords: Cc:
Guest type: other Host type: other

Description

If a VM is created without an OS type set, the exported VM has a nonsense value for the ovf:id. The OVF can be be imported again, if the number is positive, however I have seen it be negative (on a Mac install, output below is on Ubuntu), and then it fails validation. The import/export code differs in the format specification.

The export code has:

/* Guest OS type */
ovf::CIMOSType_T cim = convertVBoxOSType2CIMOSType(strOsTypeVBox.c_str(), fLongMode);
pNewDesc->addEntry(VirtualSystemDescriptionType_OS,
                   "",
                   Utf8StrFmt("%RI32", cim),
                   strOsTypeVBox);

Whereas the import code has:

 Utf8StrFmt strCIMOSType("%RU32", (uint32_t)vsysThis.cimos);

Reproduce with these commands:

 vboxmanage createvm --name test --register
 vboxmanage export test --output test.ovf
 grep '<OperatingSystemSection' test.ovf

Produces this for me:

<OperatingSystemSection ovf:id="380928">

Change History (1)

comment:1 by aeichner, 8 years ago

Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy