Xen P2V for large physical hosts with much free space

Posted by Sirex on Server Fault See other posts from Server Fault or by Sirex
Published on 2011-02-02T14:33:17Z Indexed on 2011/02/02 15:27 UTC
Read the original article Hit count: 232

Filed under:
|
|
|
|

I need to P2V a rhel5 machine to xen under rhel5. I know I can use dd if=/dev/sda then using virt-install --import on the host, but the downside of this is the original machine has 80% free space on its drive.

Does anyone know of (or can document) a quick and easy method which works reliably, to produce a bootable xen image which can run under a hvm in such cases ?

I tried clonezilla to make the image, to avoid the free space problem, but it failed to do the clone with "something went wrong" (useless info, i know).

At the moment im looking at doing a dd of each partition, and a file level copy of the partition which is mostly empty, then creating a new virtual disk, copying the partitions over to it by mounting both the new image and the virtual drive on a second vm, then copying the boot sectors over, then copying the file level backup..... there must be an easier way ?

Oh, and budget is $0. :)

© Server Fault or respective owner

Related posts about linux

Related posts about redhat