VirtualBox

Changeset 34505 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 30, 2010 12:58:37 PM (14 years ago)
Author:
vboxsync
Message:

Main/OVF: write vbox ostype into ovf:/OperatingSystemSection/vbox:OSType element on export as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImplExport.cpp

    r34101 r34505  
    10111011            <Description>Linux 2.6.x</Description>
    10121012        </OperatingSystemSection> */
     1013    VirtualSystemDescriptionEntry *pvsdeOS = llOS.front();
    10131014    xml::ElementNode *pelmOperatingSystemSection;
    10141015    if (enFormat == OVF_0_9)
     
    10201021        pelmOperatingSystemSection = pelmVirtualSystem->createChild("OperatingSystemSection");
    10211022
    1022     pelmOperatingSystemSection->setAttribute("ovf:id", llOS.front()->strOvf);
     1023    pelmOperatingSystemSection->setAttribute("ovf:id", pvsdeOS->strOvf);
    10231024    pelmOperatingSystemSection->createChild("Info")->addContent("The kind of installed guest operating system");
    10241025    Utf8Str strOSDesc;
    1025     convertCIMOSType2VBoxOSType(strOSDesc, (ovf::CIMOSType_T)llOS.front()->strOvf.toInt32(), "");
     1026    convertCIMOSType2VBoxOSType(strOSDesc, (ovf::CIMOSType_T)pvsdeOS->strOvf.toInt32(), "");
    10261027    pelmOperatingSystemSection->createChild("Description")->addContent(strOSDesc);
     1028    // add the VirtualBox ostype in a custom tag in a different namespace
     1029    xml::ElementNode *pelmVBoxOSType = pelmOperatingSystemSection->createChild("vbox:OSType");
     1030    pelmVBoxOSType->setAttribute("ovf:required", "false");
     1031    pelmVBoxOSType->addContent(pvsdeOS->strVboxCurrent);
    10271032
    10281033    // <VirtualHardwareSection ovf:id="hw1" ovf:transport="iso">
Note: See TracChangeset for help on using the changeset viewer.

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