[ovirt-users] Spam Re: Convert vmware vm
Maurice James
mjames at media-node.com
Mon Jun 30 16:48:48 UTC 2014
How do I do this to a VM that has multiple disks?
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
----- Original Message -----
From: "Koen Vanoppen" <vanoppen.koen at gmail.com>
To: "Massimo Mad" <mad1969it at gmail.com>, users at ovirt.org
Sent: Friday, June 27, 2014 1:41:12 AM
Subject: Re: [ovirt-users] Convert vmware vm
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 at gmail.com > :
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 at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140630/5737bd5a/attachment-0001.html>
More information about the Users
mailing list