Skip to content

Instantly share code, notes, and snippets.

@Zordrak
Created November 4, 2014 09:52
Show Gist options
  • Save Zordrak/e5adad8dc94a5938158c to your computer and use it in GitHub Desktop.
Save Zordrak/e5adad8dc94a5938158c to your computer and use it in GitHub Desktop.
ovirt import failure to get all disks
<?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.5.0.0">
<References>
<File ovf:href="a084a9f2-7457-4c25-a767-bb3eb9755c9a/b790fba2-f0bd-47f7-adbf-cbc1561a1ae8" ovf:id="b790fba2-f0bd-47f7-adbf-cbc1561a1ae8" ovf:size="1073741824" ovf:description="Active VM" />
<File ovf:href="018f3847-5eb2-47d7-9e5a-dec9a484809a/88f53567-0a0f-4893-8104-7112374c4027" ovf:id="88f53567-0a0f-4893-8104-7112374c4027" ovf:size="1073741824" ovf:description="Active VM" />
<File ovf:href="d4f9c0d4-d81e-4c30-9f84-ed4f7a84b94f/4c9ec172-8207-43ac-9190-69b4a18d85fa" ovf:id="4c9ec172-8207-43ac-9190-69b4a18d85fa" ovf:size="1073741824" ovf:description="Active VM" />
</References>
<Section xsi:type="ovf:NetworkSection_Type">
<Info>List of networks</Info>
<Network ovf:name="Network 1" />
</Section>
<Section xsi:type="ovf:DiskSection_Type">
<Info>List of Virtual Disks</Info>
<Disk ovf:diskId="b790fba2-f0bd-47f7-adbf-cbc1561a1ae8" ovf:size="1" ovf:actual_size="0" ovf:vm_snapshot_id="45f383fc-f6d0-44c4-93de-e333a0a6a67b" ovf:parentRef="" ovf:fileRef="a084a9f2-7457-4c25-a767-bb3eb9755c9a/b790fba2-f0bd-47f7-adbf-cbc1561a1ae8" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse" ovf:volume-format="RAW" ovf:volume-type="Sparse" ovf:disk-interface="VirtIO" ovf:boot="false" ovf:disk-alias="test_Disk3" ovf:wipe-after-delete="false" />
<Disk ovf:diskId="88f53567-0a0f-4893-8104-7112374c4027" ovf:size="1" ovf:actual_size="0" ovf:vm_snapshot_id="45f383fc-f6d0-44c4-93de-e333a0a6a67b" ovf:parentRef="" ovf:fileRef="018f3847-5eb2-47d7-9e5a-dec9a484809a/88f53567-0a0f-4893-8104-7112374c4027" 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="test_Disk1" ovf:wipe-after-delete="false" />
<Disk ovf:diskId="4c9ec172-8207-43ac-9190-69b4a18d85fa" ovf:size="1" ovf:actual_size="0" ovf:vm_snapshot_id="45f383fc-f6d0-44c4-93de-e333a0a6a67b" ovf:parentRef="" ovf:fileRef="d4f9c0d4-d81e-4c30-9f84-ed4f7a84b94f/4c9ec172-8207-43ac-9190-69b4a18d85fa" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse" ovf:volume-format="RAW" ovf:volume-type="Sparse" ovf:disk-interface="VirtIO" ovf:boot="false" ovf:disk-alias="test_Disk2" ovf:wipe-after-delete="false" />
</Section>
<Content ovf:id="out" xsi:type="ovf:VirtualSystem_Type">
<Description />
<Comment />
<CreationDate>2014/11/04 09:43:43</CreationDate>
<ExportDate>2014/11/04 09:45:32</ExportDate>
<DeleteProtected>false</DeleteProtected>
<SsoMethod>guest_agent</SsoMethod>
<IsSmartcardEnabled>false</IsSmartcardEnabled>
<TimeZone>Etc/GMT</TimeZone>
<default_boot_sequence>0</default_boot_sequence>
<Generation>4</Generation>
<VmType>1</VmType>
<VncKeyboardLayout>en-gb</VncKeyboardLayout>
<MinAllocatedMem>1024</MinAllocatedMem>
<IsStateless>false</IsStateless>
<IsRunAndPause>false</IsRunAndPause>
<AutoStartup>false</AutoStartup>
<Priority>1</Priority>
<CreatedByUserId>fdfc627c-d875-11e0-90f0-83df133b58cc</CreatedByUserId>
<IsBootMenuEnabled>false</IsBootMenuEnabled>
<IsSpiceFileTransferEnabled>true</IsSpiceFileTransferEnabled>
<IsSpiceCopyPasteEnabled>true</IsSpiceCopyPasteEnabled>
<Name>test</Name>
<TemplateId>00000000-0000-0000-0000-000000000000</TemplateId>
<TemplateName>Blank</TemplateName>
<IsInitilized>false</IsInitilized>
<Origin>3</Origin>
<DefaultDisplayType>0</DefaultDisplayType>
<TrustedService>false</TrustedService>
<OriginalTemplateId>00000000-0000-0000-0000-000000000000</OriginalTemplateId>
<OriginalTemplateName>Blank</OriginalTemplateName>
<UseLatestVersion>false</UseLatestVersion>
<Section ovf:id="747a4264-087c-4a4b-a172-8c0e7f55b1b4" ovf:required="false" xsi:type="ovf:OperatingSystemSection_Type">
<Info>Guest Operating System</Info>
<Description>other</Description>
</Section>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Info>1 CPU, 1024 Memeory</Info>
<System>
<vssd:VirtualSystemType>ENGINE 3.5.0.0</vssd:VirtualSystemType>
</System>
<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>
</Item>
<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>
</Item>
<Item>
<rasd:Caption>test_Disk3</rasd:Caption>
<rasd:InstanceId>b790fba2-f0bd-47f7-adbf-cbc1561a1ae8</rasd:InstanceId>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>a084a9f2-7457-4c25-a767-bb3eb9755c9a/b790fba2-f0bd-47f7-adbf-cbc1561a1ae8</rasd:HostResource>
<rasd:Parent>00000000-0000-0000-0000-000000000000</rasd:Parent>
<rasd:Template>00000000-0000-0000-0000-000000000000</rasd:Template>
<rasd:ApplicationList />
<rasd:StorageId>a5d03bbe-3401-42c2-8291-9fca5e7967bd</rasd:StorageId>
<rasd:StoragePoolId>00000002-0002-0002-0002-000000000392</rasd:StoragePoolId>
<rasd:CreationDate>2014/11/04 09:45:01</rasd:CreationDate>
<rasd:LastModified>1970/01/01 00:00:00</rasd:LastModified>
<rasd:last_modified_date>2014/11/04 09:45:32</rasd:last_modified_date>
<Type>disk</Type>
<Device>disk</Device>
<rasd:Address />
<BootOrder>0</BootOrder>
<IsPlugged>true</IsPlugged>
<IsReadOnly>false</IsReadOnly>
<Alias />
</Item>
<Item>
<rasd:Caption>test_Disk1</rasd:Caption>
<rasd:InstanceId>88f53567-0a0f-4893-8104-7112374c4027</rasd:InstanceId>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>018f3847-5eb2-47d7-9e5a-dec9a484809a/88f53567-0a0f-4893-8104-7112374c4027</rasd:HostResource>
<rasd:Parent>00000000-0000-0000-0000-000000000000</rasd:Parent>
<rasd:Template>00000000-0000-0000-0000-000000000000</rasd:Template>
<rasd:ApplicationList />
<rasd:StorageId>a5d03bbe-3401-42c2-8291-9fca5e7967bd</rasd:StorageId>
<rasd:StoragePoolId>00000002-0002-0002-0002-000000000392</rasd:StoragePoolId>
<rasd:CreationDate>2014/11/04 09:44:30</rasd:CreationDate>
<rasd:LastModified>1970/01/01 00:00:00</rasd:LastModified>
<rasd:last_modified_date>2014/11/04 09:45:32</rasd:last_modified_date>
<Type>disk</Type>
<Device>disk</Device>
<rasd:Address />
<BootOrder>1</BootOrder>
<IsPlugged>true</IsPlugged>
<IsReadOnly>false</IsReadOnly>
<Alias />
</Item>
<Item>
<rasd:Caption>test_Disk2</rasd:Caption>
<rasd:InstanceId>4c9ec172-8207-43ac-9190-69b4a18d85fa</rasd:InstanceId>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>d4f9c0d4-d81e-4c30-9f84-ed4f7a84b94f/4c9ec172-8207-43ac-9190-69b4a18d85fa</rasd:HostResource>
<rasd:Parent>00000000-0000-0000-0000-000000000000</rasd:Parent>
<rasd:Template>00000000-0000-0000-0000-000000000000</rasd:Template>
<rasd:ApplicationList />
<rasd:StorageId>a5d03bbe-3401-42c2-8291-9fca5e7967bd</rasd:StorageId>
<rasd:StoragePoolId>00000002-0002-0002-0002-000000000392</rasd:StoragePoolId>
<rasd:CreationDate>2014/11/04 09:44:47</rasd:CreationDate>
<rasd:LastModified>1970/01/01 00:00:00</rasd:LastModified>
<rasd:last_modified_date>2014/11/04 09:45:32</rasd:last_modified_date>
<Type>disk</Type>
<Device>disk</Device>
<rasd:Address />
<BootOrder>0</BootOrder>
<IsPlugged>true</IsPlugged>
<IsReadOnly>false</IsReadOnly>
<Alias />
</Item>
<Item>
<rasd:Caption>USB Controller</rasd:Caption>
<rasd:InstanceId>3</rasd:InstanceId>
<rasd:ResourceType>23</rasd:ResourceType>
<rasd:UsbPolicy>DISABLED</rasd:UsbPolicy>
</Item>
<Item>
<rasd:Caption>Graphical Controller</rasd:Caption>
<rasd:InstanceId>12b05cdd-b8ee-4d62-99e3-48c05131386d</rasd:InstanceId>
<rasd:ResourceType>20</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
<rasd:SinglePciQxl>false</rasd:SinglePciQxl>
<Type>video</Type>
<Device>cirrus</Device>
<rasd:Address />
<BootOrder>0</BootOrder>
<IsPlugged>true</IsPlugged>
<IsReadOnly>true</IsReadOnly>
<Alias />
<SpecParams>
<vram>32768</vram>
<heads>1</heads>
</SpecParams>
</Item>
<Item>
<rasd:Caption>CDROM</rasd:Caption>
<rasd:InstanceId>ff5d9d2a-61c4-43c8-83d3-ef6ca12cf94c</rasd:InstanceId>
<rasd:ResourceType>15</rasd:ResourceType>
<Type>disk</Type>
<Device>cdrom</Device>
<rasd:Address />
<BootOrder>0</BootOrder>
<IsPlugged>true</IsPlugged>
<IsReadOnly>true</IsReadOnly>
<Alias />
<SpecParams>
<path />
</SpecParams>
</Item>
<Item>
<rasd:ResourceType>0</rasd:ResourceType>
<rasd:InstanceId>2fcda3c3-a038-4b38-adbf-31d27ad09c26</rasd:InstanceId>
<Type>controller</Type>
<Device>virtio-scsi</Device>
<rasd:Address />
<BootOrder>0</BootOrder>
<IsPlugged>true</IsPlugged>
<IsReadOnly>false</IsReadOnly>
<Alias />
</Item>
<Item>
<rasd:ResourceType>0</rasd:ResourceType>
<rasd:InstanceId>5ee41f3b-e95f-48c4-8857-414a257ca708</rasd:InstanceId>
<Type>controller</Type>
<Device>virtio-serial</Device>
<rasd:Address />
<BootOrder>0</BootOrder>
<IsPlugged>true</IsPlugged>
<IsReadOnly>false</IsReadOnly>
<Alias />
</Item>
</Section>
<Section xsi:type="ovf:SnapshotsSection_Type">
<Snapshot ovf:id="45f383fc-f6d0-44c4-93de-e333a0a6a67b">
<Type>ACTIVE</Type>
<Description>Active VM</Description>
<CreationDate>2014/11/04 09:43:43</CreationDate>
</Snapshot>
</Section>
</Content>
</ovf:Envelope>
<?xml version='1.0' encoding='utf-8'?>
<ovf:Envelope 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:ovf='http://schemas.dmtf.org/ovf/envelope/1/' ovf:version='0.9'>
<References>
<File ovf:href='ea158213-6cc4-40c7-b3cc-8f96f1328a7b/673ba38c-fe5e-4930-8064-7b97cb874ba6' ovf:id='673ba38c-fe5e-4930-8064-7b97cb874ba6' ovf:size='42949672960' ovf:description='Exported by virt-v2v 1.27.48'/>
<File ovf:href='ea158213-6cc4-40c7-b3cc-8f96f1328a7b/e2f68bff-6dcf-4d86-aa2c-b441d2828f22' ovf:id='e2f68bff-6dcf-4d86-aa2c-b441d2828f22' ovf:size='107374182400' ovf:description='Exported by virt-v2v 1.27.48'/>
<File ovf:href='ea158213-6cc4-40c7-b3cc-8f96f1328a7b/cd26eba7-7b19-446c-8986-c8a979e87bb6' ovf:id='cd26eba7-7b19-446c-8986-c8a979e87bb6' ovf:size='21474836480' ovf:description='Exported by virt-v2v 1.27.48'/>
</References>
<Section xsi:type='ovf:NetworkSection_Type'>
<Info>List of networks</Info>
<Network ovf:name='br0'/>
</Section>
<Section xsi:type='ovf:DiskSection_Type'>
<Info>List of Virtual Disks</Info>
<Disk ovf:actual_size='12' ovf:diskId='673ba38c-fe5e-4930-8064-7b97cb874ba6' ovf:size='40' ovf:fileRef='ea158213-6cc4-40c7-b3cc-8f96f1328a7b/673ba38c-fe5e-4930-8064-7b97cb874ba6' ovf:parentRef='' ovf:vm_snapshot_id='04f34315-7ac3-4fc1-866b-71b318e1ca20' ovf:volume-format='COW' ovf:volume-type='Sparse' ovf:format='http://en.wikipedia.org/wiki/Byte' ovf:disk-interface='VirtIO' ovf:disk-type='System' ovf:boot='True'/>
<Disk ovf:actual_size='75' ovf:diskId='e2f68bff-6dcf-4d86-aa2c-b441d2828f22' ovf:size='100' ovf:fileRef='ea158213-6cc4-40c7-b3cc-8f96f1328a7b/e2f68bff-6dcf-4d86-aa2c-b441d2828f22' ovf:parentRef='' ovf:vm_snapshot_id='fa0dcc6d-0017-447c-b917-445bf4a560bb' ovf:volume-format='COW' ovf:volume-type='Sparse' ovf:format='http://en.wikipedia.org/wiki/Byte' ovf:disk-interface='VirtIO' ovf:disk-type='System' ovf:boot='False'/>
<Disk ovf:actual_size='11' ovf:diskId='cd26eba7-7b19-446c-8986-c8a979e87bb6' ovf:size='20' ovf:fileRef='ea158213-6cc4-40c7-b3cc-8f96f1328a7b/cd26eba7-7b19-446c-8986-c8a979e87bb6' ovf:parentRef='' ovf:vm_snapshot_id='9c59bb2d-288c-4a36-9c57-8184e51c4e3b' ovf:volume-format='COW' ovf:volume-type='Sparse' ovf:format='http://en.wikipedia.org/wiki/Byte' ovf:disk-interface='VirtIO' ovf:disk-type='System' ovf:boot='False'/>
</Section>
<Content ovf:id='out' xsi:type='ovf:VirtualSystem_Type'>
<Name>spacewalk</Name>
<TemplateId>00000000-0000-0000-0000-000000000000</TemplateId>
<TemplateName>Blank</TemplateName>
<Description>Exported by virt-v2v 1.27.48</Description>
<Domain/>
<CreationDate>2014/11/03 16:57:52</CreationDate>
<IsInitilized>True</IsInitilized>
<IsAutoSuspend>False</IsAutoSuspend>
<TimeZone/>
<IsStateless>False</IsStateless>
<Origin>0</Origin>
<VmType>1</VmType>
<DefaultDisplayType>1</DefaultDisplayType>
<Section ovf:id='8d5b5deb-7e2d-40df-81e5-c74ac0ac6f51' ovf:required='false' xsi:type='ovf:OperatingSystemSection_Type'>
<Info>Guest Operating System</Info>
<Description>OtherLinux</Description>
</Section>
<Section xsi:type='ovf:VirtualHardwareSection_Type'>
<Info>2 CPU, 6144 Memory</Info>
<Item>
<rasd:Caption>2 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>2</rasd:num_of_sockets>
<rasd:cpu_per_socket>1</rasd:cpu_per_socket>
</Item>
<Item>
<rasd:Caption>6144 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>6144</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Caption>USB Controller</rasd:Caption>
<rasd:InstanceId>4</rasd:InstanceId>
<rasd:ResourceType>23</rasd:ResourceType>
<rasd:UsbPolicy>Disabled</rasd:UsbPolicy>
</Item>
<Item>
<rasd:Caption>Graphical Controller</rasd:Caption>
<rasd:InstanceId>5</rasd:InstanceId>
<rasd:ResourceType>20</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
<rasd:Device>qxl</rasd:Device>
</Item>
<Item>
<rasd:InstanceId>673ba38c-fe5e-4930-8064-7b97cb874ba6</rasd:InstanceId>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>ea158213-6cc4-40c7-b3cc-8f96f1328a7b/673ba38c-fe5e-4930-8064-7b97cb874ba6</rasd:HostResource>
<rasd:Parent>00000000-0000-0000-0000-000000000000</rasd:Parent>
<rasd:Template>00000000-0000-0000-0000-000000000000</rasd:Template>
<rasd:ApplicationList/>
<rasd:StorageId>a5d03bbe-3401-42c2-8291-9fca5e7967bd</rasd:StorageId>
<rasd:StoragePoolId>00000000-0000-0000-0000-000000000000</rasd:StoragePoolId>
<rasd:CreationDate>2014/11/03 16:57:52</rasd:CreationDate>
<rasd:LastModified>2014/11/03 16:57:52</rasd:LastModified>
<rasd:last_modified_date>2014/11/03 16:57:52</rasd:last_modified_date>
</Item>
<Item>
<rasd:InstanceId>e2f68bff-6dcf-4d86-aa2c-b441d2828f22</rasd:InstanceId>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>ea158213-6cc4-40c7-b3cc-8f96f1328a7b/e2f68bff-6dcf-4d86-aa2c-b441d2828f22</rasd:HostResource>
<rasd:Parent>00000000-0000-0000-0000-000000000000</rasd:Parent>
<rasd:Template>00000000-0000-0000-0000-000000000000</rasd:Template>
<rasd:ApplicationList/>
<rasd:StorageId>a5d03bbe-3401-42c2-8291-9fca5e7967bd</rasd:StorageId>
<rasd:StoragePoolId>00000000-0000-0000-0000-000000000000</rasd:StoragePoolId>
<rasd:CreationDate>2014/11/03 16:57:52</rasd:CreationDate>
<rasd:LastModified>2014/11/03 16:57:52</rasd:LastModified>
<rasd:last_modified_date>2014/11/03 16:57:52</rasd:last_modified_date>
</Item>
<Item>
<rasd:InstanceId>cd26eba7-7b19-446c-8986-c8a979e87bb6</rasd:InstanceId>
<rasd:ResourceType>17</rasd:ResourceType>
<rasd:HostResource>ea158213-6cc4-40c7-b3cc-8f96f1328a7b/cd26eba7-7b19-446c-8986-c8a979e87bb6</rasd:HostResource>
<rasd:Parent>00000000-0000-0000-0000-000000000000</rasd:Parent>
<rasd:Template>00000000-0000-0000-0000-000000000000</rasd:Template>
<rasd:ApplicationList/>
<rasd:StorageId>a5d03bbe-3401-42c2-8291-9fca5e7967bd</rasd:StorageId>
<rasd:StoragePoolId>00000000-0000-0000-0000-000000000000</rasd:StoragePoolId>
<rasd:CreationDate>2014/11/03 16:57:52</rasd:CreationDate>
<rasd:LastModified>2014/11/03 16:57:52</rasd:LastModified>
<rasd:last_modified_date>2014/11/03 16:57:52</rasd:last_modified_date>
</Item>
<Item>
<rasd:InstanceId>3</rasd:InstanceId>
<rasd:Caption>Ethernet adapter on br0</rasd:Caption>
<rasd:ResourceType>10</rasd:ResourceType>
<rasd:ResourceSubType>3</rasd:ResourceSubType>
<rasd:Connection>br0</rasd:Connection>
<rasd:Name>eth0</rasd:Name>
<rasd:MACAddress>52:54:00:70:7e:24</rasd:MACAddress>
</Item>
</Section>
</Content>
</ovf:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment