[Users] importing a kvm.img to ovirt
Rene Rosenberger
r.rosenberger at netbiscuits.com
Thu Mar 29 06:11:12 UTC 2012
Hi,
no one an idea? This is the ovf file what was created from virt-v2v:
<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="70ce3fbc-93e8-4739-8996-f7b3599b63ec/9b8d7a8a-3b14-4c30-a61f-92758d765a8e" ovf:id="9b8d7a8a-3b14-4c30-a61f-92758d765a8e" ovf:size="26843545600" ovf:description="imported by virt-v2v"/></References>
<Section xsi:type="ovf:NetworkSection_Type">
<Info>List of networks</Info>
<Network ovf:name="rhevm"/></Section>
<Section xsi:type="ovf:DiskSection_Type">
<Info>List of Virtual Disks</Info>
<Disk ovf:diskId="9b8d7a8a-3b14-4c30-a61f-92758d765a8e" ovf:size="25" ovf:actual_size="25" ovf:fileRef="70ce3fbc-93e8-4739-8996-f7b3599b63ec/9b8d7a8a-3b14-4c30-a61f-92758d765a8e" ovf:parentRef="" ovf:vm_snapshot_id="00000000-0000-0000-0000-000000000000" ovf:volume-format="RAW" ovf:volume-type="Preallocated" ovf:format="http://en.wikipedia.org/wiki/Byte" ovf:disk-interface="VirtIO" ovf:boot="True"/></Section>
<Content ovf:id="out" xsi:type="ovf:VirtualSystem_Type">
<Name>jira-test</Name>
<TemplateId>00000000-0000-0000-0000-000000000000</TemplateId>
<TemplateName>Blank</TemplateName>
<Description>Imported with virt-v2v</Description>
<Domain/>
<CreationDate>2012/03/28 13:20:36</CreationDate>
<IsInitilized>True</IsInitilized>
<IsAutoSuspend>False</IsAutoSuspend>
<TimeZone/>
<IsStateless>False</IsStateless>
<Origin>0</Origin>
<VmType>1</VmType>
<DefaultDisplayType>0</DefaultDisplayType>
<Section ovf:id="6c2bc24d-cee0-4549-83d2-6e897657fbec" ovf:required="false" xsi:type="ovf:OperatingSystemSection_Type">
<Info>Guest Operating System</Info>
<Description>RHEL5x64</Description>
</Section>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Info>1 CPU, 1 Memory</Info>
<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>1 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>1</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>
</Item>
<Item><rasd:Caption>Drive 1</rasd:Caption><rasd:InstanceId>9b8d7a8a-3b14-4c30-a61f-92758d765a8e</rasd:InstanceId><rasd:ResourceType>17</rasd:ResourceType><rasd:HostResource>70ce3fbc-93e8-4739-8996-f7b3599b63ec/9b8d7a8a-3b14-4c30-a61f-92758d765a8e</rasd:HostResource><rasd:Parent>00000000-0000-0000-0000-000000000000</rasd:Parent><rasd:Template>00000000-0000-0000-0000-000000000000</rasd:Template><rasd:ApplicationList/><rasd:StorageId>bb13e29f-0e5a-4f79-8bf2-f235a0dbd515</rasd:StorageId><rasd:StoragePoolId>00000000-0000-0000-0000-000000000000</rasd:StoragePoolId><rasd:CreationDate>2012/03/28 13:01:23</rasd:CreationDate><rasd:LastModified>2012/03/28 13:01:23</rasd:LastModified><rasd:last_modified_date>2012/03/28 13:01:23</rasd:last_modified_date></Item><Item><rasd:Caption>Ethernet adapter on rhevm</rasd:Caption><rasd:InstanceId>3</rasd:InstanceId><rasd:ResourceType>10</rasd:ResourceType><rasd:ResourceSubType>3</rasd:ResourceSubType><rasd:Connection>rhevm</rasd:Connection><rasd:Name>eth0</rasd:Name><rasd:MACAddress>24:42:53:21:52:45</rasd:MACAddress></Item></Section>
</Content>
</ovf:Envelope>
Regards, rene
Von: Rene Rosenberger
Gesendet: Mittwoch, 28. März 2012 15:24
An: Rene Rosenberger; Michal Kopacki
Cc: users at ovirt.org
Betreff: AW: [Users] importing a kvm.img to ovirt
Hi,
i have now converted with this command:
virt-v2v -i libvirtxml -o rhev -osd 192.168.xxx.xxx:/nfsexport --network rhevm test.xml
when I click on vm import in ovirt I get the following error message:
Failed to read VM 'test' OVF, it may be corrupted.
Any ideas what could be wrong?
Regards, rene
Von: users-bounces at ovirt.org [mailto:users-bounces at ovirt.org] Im Auftrag von Rene Rosenberger
Gesendet: Mittwoch, 28. März 2012 14:45
An: Michal Kopacki
Cc: users at ovirt.org
Betreff: Re: [Users] importing a kvm.img to ovirt
Hi,
would this be ok:
<domain type='kvm'>
<name>test</name>
<uuid>4dea24b3-1d52-d8f3-2516-782e98a23fa0</uuid>
<memory>1024</memory>
<vcpu>1</vcpu>
<os>
<type arch="x86_64">hvm</type>
</os>
<clock sync="localtime"/>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/test.img'/>
<target dev='hda'/>
</disk>
<interface type='network'>
<source network='default'/>
<mac address='24:42:53:21:52:45'/>
</interface>
<graphics type='vnc' port='-1' keymap='de'/>
</devices>
</domain>
How to import this via virt-2v2?
Regards, rene
Von: Michal Kopacki [mailto:mkopacki at gmail.com]
Gesendet: Mittwoch, 28. März 2012 14:39
An: Rene Rosenberger
Cc: users at ovirt.org
Betreff: Re: AW: [Users] importing a kvm.img to ovirt
On 03/28/2012 02:35 PM, Rene Rosenberger wrote:
Hi,
how do i create such an xml file. Is somewhere an example or a generator.
Regards, rene
http://libvirt.org/drvqemu.html#xmlconfig - at the bottom
--
Michal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20120329/86db7096/attachment-0001.html>
More information about the Users
mailing list