Turning a running Linux system into a KVM instance on another machine
Posted
by
Charles
on Server Fault
See other posts from Server Fault
or by Charles
Published on 2010-06-29T00:44:13Z
Indexed on
2013/11/12
9:59 UTC
Read the original article
Hit count: 183
I have two physical machines that I wish to virtualize.
I can not (physically) plug the hard drives from either machine into the new machine that will act as their VM host, so I think that copying the entire structure of the system over using dd
is out of the question.
How can I best go about migrating these machines from their hardware to the KVM environment? I've set up empty, unformatted LVM logical volumes to host their filesystems, with the understanding that giving the VMs a real partition to work with achieves higher performance than sticking an image on the filesystem.
Would I be better off creating new OS installs and rsyncing the differences over?
FWIW, the two machines to be VM'd are running CentOS 5, and the host machine is running Ubuntu Server 10.04 for no particularly important reason. I doubt this matters too much, as it's still going to be KVM and libvert that matter.
© Server Fault or respective owner