[ovirt-users] Ovirt VM to kvm image
Budur Nagaraju
nbudoor at gmail.com
Wed Apr 13 15:28:12 UTC 2016
I have exported the vm to the export_domain below are the two files I found
in the path
"/var/lib/exports/export_domain/de23c906-bb57-4d78-9d50-041171b498f2/images/92fc9aa1-cad7-4562-b289-3795573cbb94"
a2ef36fa-ecfa-4138-8f19-2f7609276d4b
a2ef36fa-ecfa-4138-8f19-2f7609276d4b.meta
can we convert from these two files ?
On Wed, Apr 13, 2016 at 8:40 PM, Nathanaël Blanchet <blanchet at abes.fr>
wrote:
> On any host of the cluster, you will find the export domain mount point
> under /rhev/data-center/mnt/MOUNT
> Then, you can apply a succession of grep command to find the ids you need
> form $MOUNT, for example
>
> - find the vm:
> ID=$(grep $VMNAME -r master/vms/ | awk -F "/" '{ print $3 }') // gives
> the vm id
> - find the disk id :
> DISK=grep 'fileRef="' master/vms/$ID | awk -F ' ' '{print $5}' | awk
> -F \" '{print $2}' // gives the disk id
> - Copy the image anywhere you want.
> rsync -av images/DISK mount_point:/$VMNAME.img
>
> Note, you can do the same directly on any file system storage domain
> based, but be careful that the vm is down before.
> If you want to do the same with a block storage domain, you may use dd
> instead of rsync.
>
>
>
>
> Le 13/04/2016 16:27, Budur Nagaraju a écrit :
>
> I have exported VM to export domain,may I know the tools to or commands to
> convert ?
> On Apr 13, 2016 7:53 PM, "Nathanaël Blanchet" <blanchet at abes.fr> wrote:
>
>> Yes it is doable by searching relative ids on the storage, but the
>> simpliest way to do such a thing is exporting your vm via the export
>> domain, then the disk will be in raw format on the nfs share. Finally, you
>> may manually redefine your vm properties to libvirt/kvm.
>>
>> Le 13/04/2016 14:00, Budur Nagaraju a écrit :
>>
>> Hi
>>
>> Is there anyways to convert ovirt VM to kvm .IMG VM ?
>>
>> Thanks,
>> Nagaraju
>>
>>
>> _______________________________________________
>> Users mailing listUsers at ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>>
>>
>> --
>> Nathanaël Blanchet
>>
>> Supervision réseau
>> Pôle Infrastrutures Informatiques
>> 227 avenue Professeur-Jean-Louis-Viala
>> 34193 MONTPELLIER CEDEX 5
>> Tél. 33 (0)4 67 54 84 55
>> Fax 33 (0)4 67 54 84 14blanchet at abes.fr
>>
>>
> --
> Nathanaël Blanchet
>
> Supervision réseau
> Pôle Infrastrutures Informatiques
> 227 avenue Professeur-Jean-Louis-Viala
> 34193 MONTPELLIER CEDEX 5
> Tél. 33 (0)4 67 54 84 55
> Fax 33 (0)4 67 54 84 14blanchet at abes.fr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160413/95d2c0c4/attachment-0001.html>
More information about the Users
mailing list