[CentOS] Migrating standalone systems to KVM

Thu Mar 31 12:07:45 UTC 2011
Alain Péan <alain.pean at lpp.polytechnique.fr>

Le 31/03/2011 11:38, Jussi Hirvi a écrit :
> A while ago I got great instructions from Pasi for migrating standalone
> systems to *xen*. However, now I have decided to use KVM instead, which
> raises a new question:
>
> How to migrate a standalone system to *KVM*?
>
> I know a two-step way to do it:
> 	standalone system ->  xen pv guest
> 	xen pv guest ->  KVM pv guest
> 	
> I read that xen ->  KVM migration is trivially easy.
>
> But is there an easier (one-step) way to do this?
>
> - Juss

Hi Juss,

This link explains how to migrate from physical machine to virtual 
(P2V), for Prowmox ve, which uses KVM (and openvz). But the techniques 
explained here (based on clonezilla or System rescue CD) should apply to 
KVM in a CentOS environnement too.

http://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE

Basically, you copy the image file from the physical server, on the 
network, with clonezilla or System Rescue CD, then you prepare a VM 
using raw drives, and you replace the raw files by the image files of 
the physical machine.

Notice that for a windows machine (no support for SCSI in KVM), you have 
first to prepare the machine to use IDE drives, using the registry patch 
mergeide.reg.

Hope that helps.

Alain

-- 
==========================================================
Alain Péan - LPP/CNRS
Administrateur Système/Réseau
Laboratoire de Physique des Plasmas - UMR 7648
Observatoire de Saint-Maur
4, av de Neptune, Bat. A
94100 Saint-Maur des Fossés
Tel : 01-45-11-42-39 - Fax : 01-48-89-44-33
==========================================================