Hello,

I recently submitted a change to fix the way we manage namespaces in the OVF writer:

http://gerrit.ovirt.org/4540

The problem is that it doesn't work with the StAX reference implementation included with Java 7.

With the patched OVF writer I generated the attached OVF file. I would appreciate if someone can take a quick look at it and tell me if it is correct. I would also appreciate if you can send me known good OVF files generated by the engine, to compare them with the ones produced with the patched OVF writer.

Thanks in advance,
Juan Hernandez
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
<?xml version="1.0" encoding="UTF-8"?>
<ovf:Envelope xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1/"; xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData"; xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; ovf:version="3.1.0.0">
  <ovf:References>
    <ovf:File ovf:href="3ef50d37-2ced-423d-9aca-b76fae48f44b/27bcb418-d470-4ed5-831f-61ed0bef0c1f" ovf:id="27bcb418-d470-4ed5-831f-61ed0bef0c1f" ovf:size="5368709120" ovf:description="Active VM"/>
  </ovf:References>
  <ovf:Section xsi:type="ovf:NetworkSection_Type">
    <ovf:Info>List of networks</ovf:Info>
    <ovf:Network ovf:name="Network 1"/>
  </ovf:Section>
  <ovf:Section xsi:type="ovf:DiskSection_Type">
    <ovf:Info>List of Virtual Disks</ovf:Info>
    <ovf:Disk ovf:diskId="27bcb418-d470-4ed5-831f-61ed0bef0c1f" ovf:size="5" ovf:actual_size="0" ovf:vm_snapshot_id="d47364f2-623f-46d2-8a55-a0814c0b8e2c" ovf:parentRef="" ovf:fileRef="3ef50d37-2ced-423d-9aca-b76fae48f44b/27bcb418-d470-4ed5-831f-61ed0bef0c1f" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse"; ovf:volume-format="RAW" ovf:volume-type="Sparse" ovf:disk-interface="VirtIO" ovf:boot="true" ovf:disk-alias="myserver_disk1" ovf:wipe-after-delete="false"/>
  </ovf:Section>
  <ovf:Content ovf:id="out" xsi:type="ovf:VirtualSystem_Type">
    <ovf:Name>myserver</ovf:Name>
    <ovf:TemplateId>00000000-0000-0000-0000-000000000000</ovf:TemplateId>
    <ovf:TemplateName>Blank</ovf:TemplateName>
    <ovf:Description>My Server</ovf:Description>
    <ovf:Domain/>
    <ovf:CreationDate>2012/05/18 10:04:55</ovf:CreationDate>
    <ovf:ExportDate>2012/05/18 10:05:18</ovf:ExportDate>
    <ovf:IsInitilized>false</ovf:IsInitilized>
    <ovf:IsAutoSuspend>false</ovf:IsAutoSuspend>
    <ovf:TimeZone/>
    <ovf:IsStateless>false</ovf:IsStateless>
    <ovf:Origin>3</ovf:Origin>
    <ovf:default_boot_sequence>0</ovf:default_boot_sequence>
    <ovf:VmType>1</ovf:VmType>
    <ovf:DefaultDisplayType>1</ovf:DefaultDisplayType>
    <ovf:MinAllocatedMem>1024</ovf:MinAllocatedMem>
    <ovf:Section ovf:id="8a08d51e-fa27-4f0b-bed2-b1bcd8f596b7" ovf:required="false" xsi:type="ovf:OperatingSystemSection_Type">
      <ovf:Info>Guest Operating System</ovf:Info>
      <ovf:Description>OtherLinux</ovf:Description>
    </ovf:Section>
    <ovf:Section xsi:type="ovf:VirtualHardwareSection_Type">
      <ovf:Info>1 CPU, 1024 Memeory</ovf:Info>
      <ovf:System>
        <vssd:VirtualSystemType>ENGINE 3.1.0.0</vssd:VirtualSystemType>
      </ovf:System>
      <ovf:Item>
        <rasd:Caption>1 virtual cpu</rasd:Caption>
        <rasd:Description>Number of virtual CPU</rasd:Description>
        <rasd:InstanceId>1</rasd:InstanceId>
        <rasd:ResourceType>3</rasd:ResourceType>
        <rasd:num_of_sockets>1</rasd:num_of_sockets>
        <rasd:cpu_per_socket>1</rasd:cpu_per_socket>
      </ovf:Item>
      <ovf:Item>
        <rasd:Caption>1024 MB of memory</rasd:Caption>
        <rasd:Description>Memory Size</rasd:Description>
        <rasd:InstanceId>2</rasd:InstanceId>
        <rasd:ResourceType>4</rasd:ResourceType>
        <rasd:AllocationUnits>MegaBytes</rasd:AllocationUnits>
        <rasd:VirtualQuantity>1024</rasd:VirtualQuantity>
      </ovf:Item>
      <ovf:Item>
        <rasd:Caption>Drive 1</rasd:Caption>
        <rasd:InstanceId>27bcb418-d470-4ed5-831f-61ed0bef0c1f</rasd:InstanceId>
        <rasd:ResourceType>17</rasd:ResourceType>
        <rasd:HostResource>3ef50d37-2ced-423d-9aca-b76fae48f44b/27bcb418-d470-4ed5-831f-61ed0bef0c1f</rasd:HostResource>
        <rasd:Parent>00000000-0000-0000-0000-000000000000</rasd:Parent>
        <rasd:Template>00000000-0000-0000-0000-000000000000</rasd:Template>
        <rasd:ApplicationList/>
        <rasd:StorageId>392d4266-8b6b-47a1-9715-24c7d2eda80e</rasd:StorageId>
        <rasd:StoragePoolId>32f76b85-2490-4018-beaa-e305cbfa6e54</rasd:StoragePoolId>
        <rasd:CreationDate>2012/05/18 10:03:00</rasd:CreationDate>
        <rasd:LastModified>2012/05/18 10:03:00</rasd:LastModified>
        <rasd:last_modified_date>2012/05/18 10:05:18</rasd:last_modified_date>
      </ovf:Item>
      <ovf:Item>
        <rasd:Caption>USB Controller</rasd:Caption>
        <rasd:InstanceId>3</rasd:InstanceId>
        <rasd:ResourceType>23</rasd:ResourceType>
        <rasd:UsbPolicy>Enabled</rasd:UsbPolicy>
      </ovf:Item>
    </ovf:Section>
  </ovf:Content>
</ovf:Envelope>
_______________________________________________
Engine-devel mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-devel

Reply via email to