p2v v2v v2p tool from open source? [closed]
http://www.mondorescue.org/ try this out!! one of the very good tool
I use KVM in production environments at work.
p2v, we tend to just copy the hard disk (with dd) from a physical entity to an LVM disk, or iSCSI LUN, then set KVM to boot from that.
v2v is easy, if you're using LVM, just snapshot the disk, then clone the VM, edit the domain xml file (easy with libvirtd/virsh), then restart the new clone with the snapshot of the disk.
v2p, again, just use dd to copy the hard disk from LVM to a physical disk (or disk array).
- p2v: dd if=/dev/sdb of=/dev/VolGroup0/virtualDisk
- v2v: lvcreate -L** -s -n snapshot /dev/VolGroup0/original
- v2p: dd if=/dev/VolGroup0/virtualDisk of=/dev/sdb
For dd commands, you may find that you want to set bs=10240 to make copying faster. YMMV and all that.
Richard W.M. Jones of Red Hat (of libguestfs / guestfish fame) has done (and is doing) substantial work in this area. His virt-p2v tool is presently withdrawn to undergo rewrite; however, he has documented a less-automated process to be used in the interim.
Patches providing substantial virt-v2v automation between qemu, VMware ESX and RHEV (Red Hat Enterprise Virtualization) have committed to libguestfs recently, so there's quite a lot going on.