This is a multi-part message in MIME format.
--------------030203070900070908050609
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
On any host of the cluster, you will find the export domain mount point=20
under /rhev/data-center/mnt/MOUNT
Then, you can apply a succession of grep command to find the ids you=20
need form $MOUNT, for example
* find the vm:
ID=3D$(grep $VMNAME -r master/vms/ | awk -F "/" '{ print $3 }') //
gives the vm id
* find the disk id :
DISK=3Dgrep 'fileRef=3D"' 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=20
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=20
instead of rsync.
Le 13/04/2016 16:27, Budur Nagaraju a =C3=A9crit :
I have exported VM to export domain,may I know the tools to or=20
commands to convert ?
On Apr 13, 2016 7:53 PM, "Nathana=C3=ABl Blanchet" <blanchet(a)abes.fr=20
<mailto:blanchet@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 =C3=A9crit :
>
> Hi
>
> Is there anyways to convert ovirt VM to kvm .IMG VM ?
>
> Thanks,
> Nagaraju
>
>
>
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org <mailto:Users@ovirt.org>
>
http://lists.ovirt.org/mailman/listinfo/users
--=20
Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau
P=C3=B4le Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5 =09
T=C3=A9l. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
blanchet(a)abes.fr <mailto:blanchet@abes.fr> =20
--=20
Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau
P=C3=B4le Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5 =09
T=C3=A9l. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
blanchet(a)abes.fr
--------------030203070900070908050609
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta content=3D"text/html; charset=3Dutf-8"
http-equiv=3D"Content-Ty=
pe">
</head>
<body text=3D"#000000" bgcolor=3D"#FFFFFF">
On any host of the cluster, you will find the export domain mount
point under /rhev/data-center/mnt/MOUNT<br>
Then, you can apply a succession of grep command to find the ids you
need form $MOUNT, for example<br>
<ul>
<li>find the vm:<br>
ID=3D$(grep $VMNAME -r master/vms/ | awk -F "/" '{ print $3 }')
/=
/
gives the vm id</li>
<li>find the disk id :<br>
DISK=3Dgrep 'fileRef=3D"' master/vms/$ID | awk -F ' '
'{print $5}=
' |
awk -F \" '{print $2}' // gives the disk id<br>
</li>
<li>Copy the image anywhere you want.<br>
rsync -av images/DISK mount_point:/$VMNAME.img</li>
</ul>
<p>Note, you can do the same directly on any file system storage
domain based, but be careful that the vm is down before.<br>
If you want to do the same with a block storage domain, you may
use dd instead of rsync.<br>
</p>
<br>
<br>
<br>
<br>
<div class=3D"moz-cite-prefix">Le 13/04/2016 16:27, Budur Nagaraju a
=C3=A9crit=C2=A0:<br>
</div>
<blockquote
cite=3D"mid:CAHNF9Q8M2Gh+QMdCyauYUJvEk8fzUBuuvXqp1xVmLwxhz7Xiag@mail.gmai=
l.com"
type=3D"cite">
<p dir=3D"ltr">I have exported VM to export domain,may I know the
tools to or commands to convert ?</p>
<div class=3D"gmail_quote">On Apr 13, 2016 7:53 PM,
"Nathana=C3=ABl
Blanchet" <<a moz-do-not-send=3D"true"
href=3D"mailto:blanchet@abes.fr">blanchet@abes.fr</a>>
wrote=
:<br
type=3D"attribution">
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text=3D"#000000" bgcolor=3D"#FFFFFF"> 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=C2=A0 to libvirt/kvm.<br>
<br>
<div>Le 13/04/2016 14:00, Budur Nagaraju a =C3=A9crit=C2=A0:<=
br>
</div>
<blockquote type=3D"cite">
<p dir=3D"ltr">Hi </p>
<p dir=3D"ltr">Is there anyways to convert ovirt VM to kvm
.IMG VM ?</p>
<p dir=3D"ltr">Thanks,<br>
Nagaraju</p>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send=3D"true" href=3D"mailto:Users@ovirt.org"
target=3D"_bl=
ank">Users(a)ovirt.org</a>
<a moz-do-not-send=3D"true"
href=3D"http://lists.ovirt.org/mailman/listin=
fo/users"
target=3D"_blank">http://lists.ovirt.org/mailman/listinfo/us...
</a>
</pre>
</blockquote>
<br>
<pre cols=3D"72">--=20
Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau
P=C3=B4le Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5 =09
T=C3=A9l. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
<a moz-do-not-send=3D"true" href=3D"mailto:blanchet@abes.fr"
target=3D"_b=
lank">blanchet(a)abes.fr</a> </pre>
</div>
</blockquote>
</div>
</blockquote>
<br>
<pre class=3D"moz-signature" cols=3D"72">--=20
Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau
P=C3=B4le Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5 =09
T=C3=A9l. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
<a class=3D"moz-txt-link-abbreviated"
href=3D"mailto:blanchet@abes.fr">bl=
anchet(a)abes.fr</a> </pre>
</body>
</html>
--------------030203070900070908050609--