Commit 1e6fab60 authored by Agata Murawska's avatar Agata Murawska Committed by Michael Hanselmann

Import: unittests

Signed-off-by: default avatarAgata Murawska <agatamurawska@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 7bde29b5
......@@ -81,6 +81,7 @@ DIRS = \
qa \
test \
test/data \
test/data/ovfdata \
tools
BUILDTIME_DIR_AUTOCREATE = \
......@@ -640,6 +641,23 @@ TEST_FILES = \
test/data/proc_drbd83_sync.txt \
test/data/proc_drbd83_sync_krnl2.6.39.txt \
test/data/sys_drbd_usermode_helper.txt \
test/data/ovfdata/compr_disk.vmdk.gz \
test/data/ovfdata/corrupted_resources.ovf \
test/data/ovfdata/empty.ovf \
test/data/ovfdata/ganeti.mf \
test/data/ovfdata/ganeti.ovf \
test/data/ovfdata/gzip_disk.ovf \
test/data/ovfdata/new_disk.vmdk \
test/data/ovfdata/no_disk_in_ref.ovf \
test/data/ovfdata/no_ovf.ova \
test/data/ovfdata/ova.ova \
test/data/ovfdata/second_disk.vmdk \
test/data/ovfdata/virtualbox.ovf \
test/data/ovfdata/wrong_extension.ovd \
test/data/ovfdata/wrong_manifest.mf \
test/data/ovfdata/wrong_manifest.ovf \
test/data/ovfdata/wrong_ova.ova \
test/data/ovfdata/wrong_xml.ovf \
test/import-export_unittest-helper
python_tests = \
......@@ -674,6 +692,7 @@ python_tests = \
test/ganeti.netutils_unittest.py \
test/ganeti.objects_unittest.py \
test/ganeti.opcodes_unittest.py \
test/ganeti.ovf_unittest.py \
test/ganeti.qlang_unittest.py \
test/ganeti.query_unittest.py \
test/ganeti.rapi.baserlib_unittest.py \
......
<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by VMware ovftool 2.0.1 (build-260188), User: , UTC time: 2011-08-17T15:12:11.715742Z-->
<Envelope vmw:buildId="build-260188" xmlns="http://schemas.dmtf.org/ovf/envelope/1" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<References>
<File ovf:href="other_disk.vmdk" ovf:id="file1" ovf:size="761627136"/>
</References>
<DiskSection>
<Info>Virtual disk information</Info>
<Disk ovf:capacity="16514" ovf:capacityAllocationUnits="byte * 2^20" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="2042953728"/>
</DiskSection>
<NetworkSection>
<Info>The list of logical networks</Info>
<Network ovf:name="bridged">
<Description>The bridged network</Description>
</Network>
</NetworkSection>
<VirtualSystem ovf:id="vm">
<Info>A virtual machine</Info>
<Name>AyertiennaSUSE.x86_64-0.0.2</Name>
<OperatingSystemSection ovf:id="83" vmw:osType="suse64Guest">
<Info>The kind of installed guest operating system</Info>
</OperatingSystemSection>
<VirtualHardwareSection>
<Info>Virtual hardware requirements</Info>
<System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>AyertiennaSUSE.x86_64-0.0.2</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>vmx-04</vssd:VirtualSystemType>
</System>
<Item>
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
<rasd:Description>Number of Virtual CPUs</rasd:Description>
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
<rasd:Description>Memory Size</rasd:Description>
<rasd:ElementName>512MB of memory</rasd:ElementName>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:VirtualQuantity>512</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>SCSI Controller</rasd:Description>
<rasd:ElementName>scsiController0</rasd:ElementName>
<rasd:InstanceID>4</rasd:InstanceID>
<rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
<rasd:ResourceType>6</rasd:ResourceType>
</Item>
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>IDE Controller</rasd:Description>
<rasd:ElementName>ideController0</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceType>5</rasd:ResourceType>
</Item>
<Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:ElementName>disk1</rasd:ElementName>
<rasd:HostResource>ovf:/disk/vmdisk1</rasd:HostResource>
<rasd:InstanceID>8</rasd:InstanceID>
<rasd:Parent>4</rasd:Parent>
<rasd:ResourceType>17</rasd:ResourceType>
</Item>
<Item>
<rasd:AddressOnParent>2</rasd:AddressOnParent>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection>bridged</rasd:Connection>
<rasd:Description>E1000 ethernet adapter on &quot;bridged&quot;</rasd:Description>
<rasd:ElementName>ethernet0</rasd:ElementName>
<rasd:InstanceID>9</rasd:InstanceID>
<rasd:ResourceSubType>E1000</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
</Item>
</VirtualHardwareSection>
</VirtualSystem>
</Envelope>
<?xml version="1.0"?>
<Envelope ovf:version="1.0" xml:lang="en-US" xmlns="http://schemas.dmtf.org/ovf/envelope/1" 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">
<References>
</References>
<DiskSection>
</DiskSection>
<NetworkSection>
</NetworkSection>
<VirtualSystem>
<Info>A virtual machine</Info>
<OperatingSystemSection>
</OperatingSystemSection>
<VirtualHardwareSection>
</VirtualHardwareSection>
</VirtualSystem>
</Envelope>
SHA1(ganeti.ovf)= d298200d9044c54b0fde13efaa90e564badc5961
SHA1(new_disk.vmdk)= 711c48f14c934228b8e117d036c913cdb9d63305
<?xml version="1.0"?>
<Envelope ovf:version="1.0" xml:lang="en-US" xmlns="http://schemas.dmtf.org/ovf/envelope/1" 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" xmlns:gnt="http://ganeti">
<References>
<File ovf:href="new_disk.vmdk" ovf:id="file1"/>
</References>
<DiskSection>
<Info>List of the virtual disks used in the package</Info>
<Disk ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse"/>
</DiskSection>
<gnt:GanetiSection>
<gnt:Version>0</gnt:Version>
<gnt:AutoBalance>False</gnt:AutoBalance>
<gnt:Tags></gnt:Tags>
<gnt:DiskTemplate>plain</gnt:DiskTemplate>
<gnt:OperatingSystem>
<gnt:Name>lenny-image</gnt:Name>
</gnt:OperatingSystem>
<gnt:Network>
<gnt:Nic ovf:name="routed">
<gnt:Mode>bridged</gnt:Mode>
<gnt:MACAddress>aa:00:00:d8:2c:1e</gnt:MACAddress>
<gnt:IPAddress>none</gnt:IPAddress>
<gnt:Link>xen-br0</gnt:Link>
</gnt:Nic>
</gnt:Network>
<gnt:Hypervisor>
<gnt:Name>xen-pvm</gnt:Name>
<gnt:Parameters>
<gnt:root-path>/dev/sda</gnt:root-path>
<gnt:kernel_args>ro</gnt:kernel_args>
</gnt:Parameters>
</gnt:Hypervisor>
</gnt:GanetiSection>
<NetworkSection>
<Info>Logical networks used in the package</Info>
<Network ovf:name="routed">
<Description>Logical network used by this appliance.</Description>
</Network>
</NetworkSection>
<VirtualSystem ovf:id="New-shiny-instance">
<Info>A virtual machine</Info>
<Name>ganeti-test-xen</Name>
<OperatingSystemSection ovf:id="93">
<Info>The kind of installed guest operating system</Info>
<Description>Ubuntu</Description>
</OperatingSystemSection>
<VirtualHardwareSection>
<Info>Virtual hardware requirements for a virtual machine</Info>
<System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>Ubuntu-freshly-created</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>
</System>
<Item>
<rasd:Caption>1 virtual CPU</rasd:Caption>
<rasd:ElementName>1 virtual CPU</rasd:ElementName>
<rasd:Description>Number of virtual CPUs</rasd:Description>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Caption>2048 MB of memory</rasd:Caption>
<rasd:ElementName>2048 MB of memory</rasd:ElementName>
<rasd:Description>Memory Size</rasd:Description>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:AllocationUnits>MegaBytes</rasd:AllocationUnits>
<rasd:VirtualQuantity>2048</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Caption>Ethernet adapter on 'NAT'</rasd:Caption>
<rasd:ElementName>Ethernet adapter on 'NAT'</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceType>10</rasd:ResourceType>
<rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection></rasd:Connection>
</Item>
<Item>
<rasd:Caption>disk1</rasd:Caption>
<rasd:ElementName>disk1</rasd:ElementName>
<rasd:Description>Disk Image</rasd:Description>
<rasd:InstanceID>7</rasd:InstanceID>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>/disk/vmdisk1</rasd:HostResource>
<rasd:Parent>3</rasd:Parent>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
</Item>
</VirtualHardwareSection>
</VirtualSystem>
</Envelope>
<?xml version="1.0"?>
<Envelope ovf:version="1.0" xml:lang="en-US" xmlns="http://schemas.dmtf.org/ovf/envelope/1" 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" xmlns:gnt="http://ganeti">
<References>
<File ovf:href="compr_disk.vmdk.gz" ovf:compression="gzip" ovf:id="file1"/>
</References>
<DiskSection>
<Info>List of the virtual disks used in the package</Info>
<Disk ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse"/>
</DiskSection>
<gnt:GanetiSection>
<gnt:Version>0</gnt:Version>
<gnt:AutoBalance>False</gnt:AutoBalance>
<gnt:Tags></gnt:Tags>
<gnt:DiskTemplate>plain</gnt:DiskTemplate>
<gnt:OperatingSystem>
<gnt:Name>lenny-image</gnt:Name>
</gnt:OperatingSystem>
<gnt:Network>
<gnt:Nic ovf:name="routed">
<gnt:Mode>bridged</gnt:Mode>
<gnt:MACAddress>aa:00:00:d8:2c:1e</gnt:MACAddress>
<gnt:IPAddress>none</gnt:IPAddress>
<gnt:Link>xen-br0</gnt:Link>
</gnt:Nic>
</gnt:Network>
<gnt:Hypervisor>
<gnt:Name>xen-pvm</gnt:Name>
<gnt:Parameters>
<gnt:root-path>/dev/sda</gnt:root-path>
<gnt:kernel_args>ro</gnt:kernel_args>
</gnt:Parameters>
</gnt:Hypervisor>
</gnt:GanetiSection>
<NetworkSection>
<Info>Logical networks used in the package</Info>
<Network ovf:name="routed">
<Description>Logical network used by this appliance.</Description>
</Network>
</NetworkSection>
<VirtualSystem ovf:id="New-shiny-instance">
<Info>A virtual machine</Info>
<Name>ganeti-test-xen</Name>
<OperatingSystemSection ovf:id="93">
<Info>The kind of installed guest operating system</Info>
<Description>Ubuntu</Description>
</OperatingSystemSection>
<VirtualHardwareSection>
<Info>Virtual hardware requirements for a virtual machine</Info>
<System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>Ubuntu-freshly-created</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>
</System>
<Item>
<rasd:Caption>1 virtual CPU</rasd:Caption>
<rasd:ElementName>1 virtual CPU</rasd:ElementName>
<rasd:Description>Number of virtual CPUs</rasd:Description>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Caption>2048 MB of memory</rasd:Caption>
<rasd:ElementName>2048 MB of memory</rasd:ElementName>
<rasd:Description>Memory Size</rasd:Description>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:AllocationUnits>MegaBytes</rasd:AllocationUnits>
<rasd:VirtualQuantity>2048</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Caption>Ethernet adapter on 'NAT'</rasd:Caption>
<rasd:ElementName>Ethernet adapter on 'NAT'</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceType>10</rasd:ResourceType>
<rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection></rasd:Connection>
</Item>
<Item>
<rasd:Caption>disk1</rasd:Caption>
<rasd:ElementName>disk1</rasd:ElementName>
<rasd:Description>Disk Image</rasd:Description>
<rasd:InstanceID>7</rasd:InstanceID>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>/disk/vmdisk1</rasd:HostResource>
<rasd:Parent>3</rasd:Parent>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
</Item>
</VirtualHardwareSection>
</VirtualSystem>
</Envelope>
<?xml version="1.0"?>
<Envelope ovf:version="1.0" xml:lang="en-US" xmlns="http://schemas.dmtf.org/ovf/envelope/1" 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">
<References>
<File ovf:href="second_disk.vmdk" ovf:id="file2"/>
</References>
<DiskSection>
<Info>List of the virtual disks used in the package</Info>
<Disk ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse"/>
<Disk ovf:diskId="vmdisk2" ovf:fileRef="file2" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse"/>
</DiskSection>
<NetworkSection>
<Info>Logical networks used in the package</Info>
<Network ovf:name="NAT">
<Description>Logical network used by this appliance.</Description>
</Network>
</NetworkSection>
<VirtualSystem ovf:id="Ubuntu-freshly-created">
<Info>A virtual machine</Info>
<OperatingSystemSection ovf:id="93">
<Info>The kind of installed guest operating system</Info>
<Description>Ubuntu</Description>
</OperatingSystemSection>
<VirtualHardwareSection>
<Info>Virtual hardware requirements for a virtual machine</Info>
<System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>Ubuntu-freshly-created</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>
</System>
<Item>
<rasd:Caption>1 virtual CPU</rasd:Caption>
<rasd:ElementName>1 virtual CPU</rasd:ElementName>
<rasd:Description>Number of virtual CPUs</rasd:Description>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Caption>2048 MB of memory</rasd:Caption>
<rasd:ElementName>2048 MB of memory</rasd:ElementName>
<rasd:Description>Memory Size</rasd:Description>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:AllocationUnits>MegaBytes</rasd:AllocationUnits>
<rasd:VirtualQuantity>2048</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Caption>ideController0</rasd:Caption>
<rasd:ElementName>ideController0</rasd:ElementName>
<rasd:Description>IDE Controller</rasd:Description>
<rasd:InstanceID>3</rasd:InstanceID>
<rasd:ResourceType>5</rasd:ResourceType>
<rasd:ResourceSubType>PIIX4</rasd:ResourceSubType>
<rasd:Address>1</rasd:Address>
</Item>
<Item>
<rasd:Caption>Ethernet adapter on 'NAT'</rasd:Caption>
<rasd:ElementName>Ethernet adapter on 'NAT'</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceType>10</rasd:ResourceType>
<rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection>NAT</rasd:Connection>
</Item>
<Item>
<rasd:Caption>disk1</rasd:Caption>
<rasd:ElementName>disk1</rasd:ElementName>
<rasd:Description>Disk Image</rasd:Description>
<rasd:InstanceID>7</rasd:InstanceID>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>/disk/vmdisk1</rasd:HostResource>
<rasd:Parent>3</rasd:Parent>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
</Item>
<Item>
<rasd:Caption>disk1</rasd:Caption>
<rasd:ElementName>disk1</rasd:ElementName>
<rasd:Description>Disk Image</rasd:Description>
<rasd:InstanceID>9</rasd:InstanceID>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>/disk/vmdisk1</rasd:HostResource>
<rasd:Parent>3</rasd:Parent>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
</Item>
</VirtualHardwareSection>
</VirtualSystem>
</Envelope>
<?xml version="1.0"?>
<Envelope ovf:version="1.0" xml:lang="en-US" xmlns="http://schemas.dmtf.org/ovf/envelope/1" 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">
<References>
<File ovf:href="new_disk.vmdk" ovf:id="file1"/>
<File ovf:href="second_disk.vmdk" ovf:id="file2"/>
</References>
<DiskSection>
<Info>List of the virtual disks used in the package</Info>
<Disk ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse"/>
<Disk ovf:diskId="vmdisk2" ovf:fileRef="file2" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse"/>
</DiskSection>
<NetworkSection>
<Info>Logical networks used in the package</Info>
<Network ovf:name="bridged">
<Description>Logical network used by this appliance.</Description>
</Network>
</NetworkSection>
<VirtualSystem ovf:id="Ubuntu-freshly-created">
<Info>A virtual machine</Info>
<OperatingSystemSection ovf:id="93">
<Info>The kind of installed guest operating system</Info>
<Description>Ubuntu</Description>
</OperatingSystemSection>
<VirtualHardwareSection>
<Info>Virtual hardware requirements for a virtual machine</Info>
<System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>Ubuntu-freshly-created</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>
</System>
<Item>
<rasd:Caption>1 virtual CPU</rasd:Caption>
<rasd:ElementName>1 virtual CPU</rasd:ElementName>
<rasd:Description>Number of virtual CPUs</rasd:Description>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Caption>2048 MB of memory</rasd:Caption>
<rasd:ElementName>2048 MB of memory</rasd:ElementName>
<rasd:Description>Memory Size</rasd:Description>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:AllocationUnits>MegaBytes</rasd:AllocationUnits>
<rasd:VirtualQuantity>2048</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Caption>ideController0</rasd:Caption>
<rasd:ElementName>ideController0</rasd:ElementName>
<rasd:Description>IDE Controller</rasd:Description>
<rasd:InstanceID>3</rasd:InstanceID>
<rasd:ResourceType>5</rasd:ResourceType>
<rasd:ResourceSubType>PIIX4</rasd:ResourceSubType>
<rasd:Address>1</rasd:Address>
</Item>
<Item>
<rasd:Caption>Ethernet adapter on 'NAT'</rasd:Caption>
<rasd:ElementName>Ethernet adapter on 'NAT'</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceType>10</rasd:ResourceType>
<rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection>bridged</rasd:Connection>
</Item>
<Item>
<rasd:Caption>disk1</rasd:Caption>
<rasd:ElementName>disk1</rasd:ElementName>
<rasd:Description>Disk Image</rasd:Description>
<rasd:InstanceID>7</rasd:InstanceID>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>/disk/vmdisk1</rasd:HostResource>
<rasd:Parent>3</rasd:Parent>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
</Item>
<Item>
<rasd:Caption>disk1</rasd:Caption>
<rasd:ElementName>disk1</rasd:ElementName>
<rasd:Description>Disk Image</rasd:Description>
<rasd:InstanceID>9</rasd:InstanceID>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>/disk/vmdisk1</rasd:HostResource>
<rasd:Parent>3</rasd:Parent>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
</Item>
</VirtualHardwareSection>
</VirtualSystem>
</Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by VMware ovftool 2.0.1 (build-260188), User: , UTC time: 2011-08-17T15:12:11.715742Z-->
<Envelope vmw:buildId="build-260188" xmlns="http://schemas.dmtf.org/ovf/envelope/1" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<References>
<File ovf:href="AyertiennaSUSE.x86_64-0.0.2-disk1.vmdk" ovf:id="file1" ovf:size="761627136"/>
</References>
<DiskSection>
<Info>Virtual disk information</Info>
<Disk ovf:capacity="16514" ovf:capacityAllocationUnits="byte * 2^20" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="2042953728"/>
</DiskSection>
<NetworkSection>
<Info>The list of logical networks</Info>
<Network ovf:name="bridged">
<Description>The bridged network</Description>
</Network>
</NetworkSection>
<VirtualSystem ovf:id="vm">
<Info>A virtual machine</Info>
<Name>AyertiennaSUSE.x86_64-0.0.2</Name>
<OperatingSystemSection ovf:id="83" vmw:osType="suse64Guest">
<Info>The kind of installed guest operating system</Info>
</OperatingSystemSection>
<VirtualHardwareSection>
<Info>Virtual hardware requirements</Info>
<System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>AyertiennaSUSE.x86_64-0.0.2</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>vmx-04</vssd:VirtualSystemType>
</System>
<Item>
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
<rasd:Description>Number of Virtual CPUs</rasd:Description>
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
<rasd:Description>Memory Size</rasd:Description>
<rasd:ElementName>512MB of memory</rasd:ElementName>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:VirtualQuantity>512</rasd:VirtualQuantity>
</Item>
<Item ovf:required="false">
<rasd:Address>0</rasd:Address>
<rasd:Description>USB Controller</rasd:Description>
<rasd:ElementName>usb</rasd:ElementName>
<rasd:InstanceID>3</rasd:InstanceID>
<rasd:ResourceType>23</rasd:ResourceType>
</Item>
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>SCSI Controller</rasd:Description>
<rasd:ElementName>scsiController0</rasd:ElementName>
<rasd:InstanceID>4</rasd:InstanceID>
<rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
<rasd:ResourceType>6</rasd:ResourceType>
</Item>
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>IDE Controller</rasd:Description>
<rasd:ElementName>ideController0</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceType>5</rasd:ResourceType>
</Item>
<Item ovf:required="false">
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Description>Floppy Drive</rasd:Description>
<rasd:ElementName>floppy0</rasd:ElementName>
<rasd:InstanceID>6</rasd:InstanceID>
<rasd:ResourceType>14</rasd:ResourceType>
</Item>
<Item ovf:required="false">
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:ElementName>cdrom1</rasd:ElementName>
<rasd:InstanceID>7</rasd:InstanceID>
<rasd:Parent>5</rasd:Parent>
<rasd:ResourceType>15</rasd:ResourceType>
</Item>
<Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:ElementName>disk1</rasd:ElementName>
<rasd:HostResource>ovf:/disk/vmdisk1</rasd:HostResource>
<rasd:InstanceID>8</rasd:InstanceID>
<rasd:Parent>4</rasd:Parent>
<rasd:ResourceType>17</rasd:ResourceType>
</Item>
<Item>
<rasd:AddressOnParent>2</rasd:AddressOnParent>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection>bridged</rasd:Connection>
<rasd:Description>E1000 ethernet adapter on &quot;bridged&quot;</rasd:Description>
<rasd:ElementName>ethernet0</rasd:ElementName>
<rasd:InstanceID>9</rasd:InstanceID>
<rasd:ResourceSubType>E1000</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
</Item>
</VirtualHardwareSection>
</VirtualSystem>
</Envelope>
SHA1(new_disk.vmdk)= 0500304662fb8a6a7925b5a43bc0e05d6a03720d
SHA1(wrong_manifest.ovf)= 0500304662fb8a6a7965b5a43bc0e05d6a03720d
<?xml version="1.0"?>
<Envelope ovf:version="1.0" xml:lang="en-US" xmlns="http://schemas.dmtf.org/ovf/envelope/1" 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" xmlns:gnt="http://ganeti">
<References>
<File ovf:href="new_disk.vmdk" ovf:id="file1"/>
</References>
<DiskSection>
<Info>List of the virtual disks used in the package</Info>
<Disk ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse"/>
</DiskSection>
<gnt:GanetiSection>
<gnt:VersionId>0</gnt:VersionId>
<gnt:AutoBalance>False</gnt:AutoBalance>
<gnt:Tags></gnt:Tags>
<gnt:OS>
<gnt:Name>lenny-image</gnt:Name>