
Hello, I downloaded an image .vmdk from a repository and wanted to import it into my oVirt infrastructure. Is it possible? If it is possible how? Thanks, Massimo

------=_Part_8836_1411683396.1403731335751 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit I though that you asked this question yesterday. Add yourself to the Cc of the following RFE https://bugzilla.redhat.com/show_bug.cgi?id=1062910 You can import vmware images only if it running in an ESX instance ----- Original Message ----- From: "Massimo Mad" <mad1969it@gmail.com> To: users@ovirt.org Sent: Tuesday, June 24, 2014 9:19:35 AM Subject: [ovirt-users] Convert vmware vm Hello, I downloaded an image . vmdk from a repository and wanted to import it into my oVirt infrastructure . Is it possible? If it is possible how? Thanks, Massimo _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ------=_Part_8836_1411683396.1403731335751 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"font-family: times new roman, new york, times, se= rif; font-size: 12pt; color: #000000"><div>I though that you asked this que= stion yesterday. Add yourself to the Cc of the following RFE<br></div><div>= <span class=3D"Object" id=3D"OBJ_PREFIX_DWT961_com_zimbra_url"><span class= =3D"Object" id=3D"OBJ_PREFIX_DWT977_com_zimbra_url"><a target=3D"_blank" hr= ef=3D"https://bugzilla.redhat.com/show_bug.cgi?id=3D1062910" data-mce-href= =3D"https://bugzilla.redhat.com/show_bug.cgi?id=3D1062910"><a href=3D"https= ://bugzilla.redhat.com/show_bug.cgi?id=3D1062910 ">https://bugzilla.redhat.= com/show_bug.cgi?id=3D1062910 </a></a></span></span><br data-mce-bogus=3D"1= "></div><div><span class=3D"Object"><span class=3D"Object"><br></span></spa= n></div><div><span class=3D"Object"><span class=3D"Object">You can import v= mware images only if it running in an ESX instance<br></span></span></div><= hr id=3D"zwchr"><div style=3D"color:#000;font-weight:normal;font-style:norm= al;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12= pt;" data-mce-style=3D"color: #000; font-weight: normal; font-style: normal= ; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size= : 12pt;"><b>From: </b>"Massimo Mad" <mad1969it@gmail.com><br><b>To: <= /b>users@ovirt.org<br><b>Sent: </b>Tuesday, June 24, 2014 9:19:35 AM<br><b>= Subject: </b>[ovirt-users] Convert vmware vm<br><div><br></div><div dir=3D"= ltr"><div><div>Hello,<br><span id=3D"result_box" class=3D"" lang=3D"en"><sp= an class=3D"">I downloaded</span> <span class=3D"">an image .</span><span c= lass=3D"">vmdk</span> <span class=3D"">from a repository</span> <span class= =3D"">and wanted to</span> <span class=3D"">import it</span> <span class=3D= "">into my</span> <span class=3D"">oVirt</span> <span class=3D"">infrastruc= ture</span><span>.</span><br> <span class=3D"">Is it possible?</span><br> <= span class=3D"">If it is possible</span> <span class=3D"">how?</span></span=

II created this document for the company where I work. Maybe it is userfull for you too: Migrate from VMWare to oVirt 1. On VmWare: a. Export the VM to ovf format. There is a smb/nfs share on virt-v2v you can use as storage. i. NFS: Virtv2v.:/media/Storage ii. SMB: virtv2v. share: virtv2v 2. with virtv2v a. Log in on the virt-v2v vm. b. Locate and Extract the ovf file with tar –xvf c. Convert the extracted vmdk file to raw disk format with the following command: vboxmanage clonehd --format RAW <VMNAME>.vmdk <NewVMName>.raw d. Convert the created RAW file to a qemu2 img: qemu-img convert -f raw <VM-Name>.raw -O qcow2 <VMName>.qcow2 e. Run the vm in virsh: virt-install --connect qemu:///system --ram 1024 -n griffu -r 2048 --os-type=linux --os-variant=rhel6 --disk path=/media/Storage/<VMName>.qcow2,device=disk,format=qcow2 --vcpus=2 --vnc --noautoconsole –import f. Take a xml dump of the VM and copy the result in a new file <VMName>.xml virsh dumpxml <VMName> g. Now let’s move the vm to ovirt. Make sure the nfs is attached to the TestDev Datacenter. virt-v2v -i libvirtxml -ic qemu+ssh://<FQDN-Hypervisor> /system -o rhev -os <FQDN-NFS-exportdomainserver>:/media/NfsProgress -n ovirtmgmt <VMName>.xml 2014-06-24 15:19 GMT+02:00 Massimo Mad <mad1969it@gmail.com>:

I just did that at: http://www.ovirt.org/Vm_migration_from_vmware feel free to make this pretty, it's more or less just a raw dump of the mail. Am 27.06.2014 13:40, schrieb Sandro Bonazzola:
-- Mit freundlichen Grüßen / Regards Sven Kieske Systemadministrator Mittwald CM Service GmbH & Co. KG Königsberger Straße 6 32339 Espelkamp T: +49-5772-293-100 F: +49-5772-293-333 https://www.mittwald.de Geschäftsführer: Robert Meyer St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen

No, as far as I know this is _not_ on the roadmap. Am 27.06.2014 21:02, schrieb Massimo Mad:
-- Mit freundlichen Grüßen / Regards Sven Kieske Systemadministrator Mittwald CM Service GmbH & Co. KG Königsberger Straße 6 32339 Espelkamp T: +49-5772-293-100 F: +49-5772-293-333 https://www.mittwald.de Geschäftsführer: Robert Meyer St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen

On 06/30/2014 09:50 AM, Sven Kieske wrote:
No, as far as I know this is _not_ on the roadmap.
actually it is. http://www.ovirt.org/Features/virt-v2v_Integration one of my comments to the feature page was it should include a file based conversion, not just from esxi. http://lists.ovirt.org/pipermail/users/2014-July/025876.html

Am 03.08.2014 21:35, schrieb Itamar Heim:
No, it's not: "Offline VMware images (OVAs), not yet. However patches are welcome. We quite literally have no one available to implement this."[1] [1]http://lists.ovirt.org/pipermail/users/2014-July/025881.html Or has this changed yet? This would be great news! -- Mit freundlichen Grüßen / Regards Sven Kieske Systemadministrator Mittwald CM Service GmbH & Co. KG Königsberger Straße 6 32339 Espelkamp T: +49-5772-293-100 F: +49-5772-293-333 https://www.mittwald.de Geschäftsführer: Robert Meyer St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen

Am 04.08.2014 17:33, schrieb Michal Skrivanek:
Thanks for the update! -- Mit freundlichen Grüßen / Regards Sven Kieske Systemadministrator Mittwald CM Service GmbH & Co. KG Königsberger Straße 6 32339 Espelkamp T: +49-5772-293-100 F: +49-5772-293-333 https://www.mittwald.de Geschäftsführer: Robert Meyer St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen

----- Original Message -----
By the way, how are you going to copy the VM between the two system? As far as I know scp doesn't handle really well with sparse files (and thin provisioned VMs are sparse files) ending up copying the fully expanded disk image wasting a lot of time just transferring zeroes. Some third party utilities, like virtsync for the KVM world (http://www.virtsync.com/) or Veam FastSCP (http://www.veeam.com/vmware-esxi-fastscp.html) for the VMWare world, already implement some smarter copy approach (also a tar with -S option over an ssh pipe is indeed enough) to make it more efficient and they are quite appreciated. Are we designing something similar? thanks, Simone

virt-install --connect qemu:///system --ram 1024 -n griffu -r 2048 --os-ty=
------=_Part_9876_729657104.1404146928830 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable How do I do this to a VM that has multiple disks?=20 virt-install --connect qemu:///system --ram 1024 -n griffu -r 2048 --os-typ= e=3Dlinux --os-variant=3Drhel6 --disk path=3D/media/Storage/<VMName>.qcow2,= device=3Ddisk,format=3Dqcow2 --vcpus=3D2 --vnc --noautoconsole =E2=80=93imp= ort=20 ----- Original Message ----- From: "Koen Vanoppen" <vanoppen.koen@gmail.com>=20 To: "Massimo Mad" <mad1969it@gmail.com>, users@ovirt.org=20 Sent: Friday, June 27, 2014 1:41:12 AM=20 Subject: Re: [ovirt-users] Convert vmware vm=20 II created this document for the company where I work. Maybe it is userfull= for you too:=20 Migrate from VMWare to oVirt=20 1. On VmWare:=20 a. Export the VM to ovf format. There is a smb/nfs share on virt-v2v you ca= n use as storage.=20 i. NFS: Virtv2v.:/media/Storage=20 ii. SMB: virtv2v. =EF=83=A0 share: virtv2v=20 2. with virtv2v=20 a. Log in on the virt-v2v vm.=20 b. Locate and Extract the ovf file with tar =E2=80=93xvf=20 c. Convert the extracted vmdk file to raw disk format with the following co= mmand:=20 vboxmanage clonehd --format RAW <VMNAME>.vmdk <NewVMName>.raw=20 d. Convert the created RAW file to a qemu2 img:=20 qemu-img convert -f raw <VM-Name>.raw -O qcow2 <VMName>.qcow2=20 e. Run the vm in virsh:=20 virt-install --connect qemu:///system --ram 1024 -n griffu -r 2048 --os-typ= e=3Dlinux --os-variant=3Drhel6 --disk path=3D/media/Storage/<VMName>.qcow2,= device=3Ddisk,format=3Dqcow2 --vcpus=3D2 --vnc --noautoconsole =E2=80=93imp= ort=20 f. Take a xml dump of the VM and copy the result in a new file <VMName>.xml= =20 virsh dumpxml <VMName>=20 g. Now let=E2=80=99s move the vm to ovirt. Make sure the nfs is attached to= the TestDev Datacenter.=20 virt-v2v -i libvirtxml -ic qemu+ssh://<FQDN-Hypervisor> /system -o rhev -os= <FQDN-NFS-exportdomainserver>:/media/NfsProgress -n ovirtmgmt <VMName>.xml= =20 2014-06-24 15:19 GMT+02:00 Massimo Mad < mad1969it@gmail.com > :=20 Hello,=20 I downloaded an image . vmdk from a repository and wanted to import it into= my oVirt infrastructure .=20 Is it possible?=20 If it is possible how?=20 Thanks,=20 Massimo=20 _______________________________________________=20 Users mailing list=20 Users@ovirt.org=20 http://lists.ovirt.org/mailman/listinfo/users=20 _______________________________________________=20 Users mailing list=20 Users@ovirt.org=20 http://lists.ovirt.org/mailman/listinfo/users=20 ------=_Part_9876_729657104.1404146928830 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"font-family: times new roman, new york, times, se= rif; font-size: 12pt; color: #000000"><div><span name=3D"x">How do I do thi= s to a VM that has multiple disks?</span><br></div><div><span name=3D"x"><b= r></span></div><div><span name=3D"x"><br></span></div><div><span name=3D"x"= pe=3Dlinux --os-variant=3Drhel6 --disk path=3D/media/Storage/<VMName>= .qcow2,device=3Ddisk,format=3Dqcow2 --vcpus=3D2 --vnc --noautoconsole =E2= =80=93import <br></span></div><div><span name=3D"x"><br></span></div><div><= span name=3D"x"><br></span></div><div><span name=3D"x"><br></span></div><hr= id=3D"zwchr"><div style=3D"color:#000;font-weight:normal;font-style:normal= ;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt= ;" data-mce-style=3D"color: #000; font-weight: normal; font-style: normal; = text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: = 12pt;"><b>From: </b>"Koen Vanoppen" <vanoppen.koen@gmail.com><br><b>T= o: </b>"Massimo Mad" <mad1969it@gmail.com>, users@ovirt.org<br><b>Sen= t: </b>Friday, June 27, 2014 1:41:12 AM<br><b>Subject: </b>Re: [ovirt-users= ] Convert vmware vm<br><div><br></div><div dir=3D"ltr">II created this docu= ment for the company where I work. Maybe it is userfull for you too:<br><di= v><br></div>Migrate from VMWare to oVirt<br><div><br></div>1. &n= bsp; On VmWare:<br><div><br></div>a. Export the VM to ovf= format. There is a smb/nfs share on virt-v2v you can use as storage. = <br> i. NFS: Virtv2v.:/media/Storage<br>ii. &= nbsp; SMB: virtv2v. =EF=83=A0 share: virtv2v<br><div><br></div>2. &nbs= p; with virtv2v <br><div><br></div>a. Log in on the= virt-v2v vm.<br>b. Locate and Extract the ovf file with = tar =E2=80=93xvf<br>c. Convert the extracted vmdk file to= raw disk format with the following command:<br> vboxmanage clonehd --forma= t RAW <VMNAME>.vmdk <NewVMName>.raw<br>d. Con= vert the created RAW file to a qemu2 img:<br>qemu-img convert -f raw <VM= -Name>.raw -O qcow2 <VMName>.qcow2<br>e. Run the= vm in virsh:<br> virt-install --connect qemu:///system --ram 1024 -n griff= u -r 2048 --os-type=3Dlinux --os-variant=3Drhel6 --disk path=3D/media/Stora= ge/<VMName>.qcow2,device=3Ddisk,format=3Dqcow2 --vcpus=3D2 --vnc --no= autoconsole =E2=80=93import<br>f. Take a xml dump of the = VM and copy the result in a new file <VMName>.xml<br> virsh dumpxml &= lt;VMName><br>g. Now let=E2=80=99s move the vm to ovir= t. Make sure the nfs is attached to the TestDev Datacenter.<br>virt-v2v -i = libvirtxml -ic qemu+ssh://<FQDN-Hypervisor> /system -o rhev -os <F= QDN-NFS-exportdomainserver>:/media/NfsProgress -n ovirtmgmt <VMName&g= t;.xml<br> <br></div><div class=3D"gmail_extra"><br><div><br></div><div cla= ss=3D"gmail_quote">2014-06-24 15:19 GMT+02:00 Massimo Mad <span dir=3D"ltr"= h5"><div dir=3D"ltr"><div><div>Hello,<br><span lang=3D"en"><span>I download= ed</span> <span>an image .</span><span>vmdk</span> <span>from a repository<= /span> <span>and wanted to</span> <span>import it</span> <span>into my</spa= n> <span>oVirt</span> <span>infrastructure</span><span>.</span><br> <span>I= s it possible?</span><br> <span>If it is possible</span> <span>how?</span><= /span><br></div>Thanks,<br></div>Massimo<br></div></div></div><br>_________= ______________________________________<br> Users mailing list<br> <a href= =3D"mailto:Users@ovirt.org" target=3D"_blank" data-mce-href=3D"mailto:Users= @ovirt.org">Users@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailm= an/listinfo/users" target=3D"_blank" data-mce-href=3D"http://lists.ovirt.or= g/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>= <br> <br></blockquote></div><br></div><br>_________________________________= ______________<br>Users mailing list<br>Users@ovirt.org<br>http://lists.ovi= rt.org/mailman/listinfo/users<br></div><div><br></div></div></body></html> ------=_Part_9876_729657104.1404146928830--
participants (8)
-
Itamar Heim
-
Koen Vanoppen
-
Massimo Mad
-
Maurice James
-
Michal Skrivanek
-
Sandro Bonazzola
-
Simone Tiraboschi
-
Sven Kieske