<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><span name="x">How do I do this to a VM that has multiple disks?</span><br></div><div><span name="x"><br></span></div><div><span name="x"><br></span></div><div><span name="x">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 <br></span></div><div><span name="x"><br></span></div><div><span name="x"><br></span></div><div><span name="x"><br></span></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="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>To: </b>"Massimo Mad" <mad1969it@gmail.com>, users@ovirt.org<br><b>Sent: </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="ltr">II created this document for the company where I work. Maybe it is userfull for you too:<br><div><br></div>Migrate from VMWare to oVirt<br><div><br></div>1. 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. SMB: virtv2v. share: virtv2v<br><div><br></div>2. with virtv2v <br><div><br></div>a. Log in on the virt-v2v vm.<br>b. Locate and Extract the ovf file with tar –xvf<br>c. Convert the extracted vmdk file to raw disk format with the following command:<br> vboxmanage clonehd --format RAW <VMNAME>.vmdk <NewVMName>.raw<br>d. Convert 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 griffu -r 2048 --os-type=linux --os-variant=rhel6 --disk path=/media/Storage/<VMName>.qcow2,device=disk,format=qcow2 --vcpus=2 --vnc --noautoconsole –import<br>f. Take a xml dump of the VM and copy the result in a new file <VMName>.xml<br> virsh dumpxml <VMName><br>g. Now let’s move the vm to ovirt. Make sure the nfs is attached to the TestDev Datacenter.<br>virt-v2v -i libvirtxml -ic qemu+ssh://<FQDN-Hypervisor> /system -o rhev -os <FQDN-NFS-exportdomainserver>:/media/NfsProgress -n ovirtmgmt <VMName>.xml<br> <br></div><div class="gmail_extra"><br><div><br></div><div class="gmail_quote">2014-06-24 15:19 GMT+02:00 Massimo Mad <span dir="ltr"><<a href="mailto:mad1969it@gmail.com" target="_blank" data-mce-href="mailto:mad1969it@gmail.com">mad1969it@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" data-mce-style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;"><div class="HOEnZb"><div class="h5"><div dir="ltr"><div><div>Hello,<br><span lang="en"><span>I downloaded</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</span> <span>oVirt</span> <span>infrastructure</span><span>.</span><br> <span>Is 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="mailto:Users@ovirt.org" target="_blank" data-mce-href="mailto:Users@ovirt.org">Users@ovirt.org</a><br> <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank" data-mce-href="http://lists.ovirt.org/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.ovirt.org/mailman/listinfo/users<br></div><div><br></div></div></body></html>