<div dir="ltr">II created this document for the company where I work. Maybe it is userfull for you too:<br><br>Migrate from VMWare to oVirt<br><br>1. On VmWare:<br><br>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><br>2. with virtv2v <br><br>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><br><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">mad1969it@gmail.com</a>></span>:<br><blockquote class="gmail_quote" 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">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>