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? - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki * Finland Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms) jussi.hirvi at greenspot.fi * http://www.greenspot.fi
Jussi Hirvi writes:> 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? > > - JussiHi, Check this out: http://people.redhat.com/~rjones/virt-p2v/virt-p2v.1.html
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? > > - JussHi 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 ==========================================================
On 03/31/2011 02:38 AM, Jussi Hirvi wrote:> 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? > > - Jussi >I haven't tried it, but in theory you could take a clonezilla image of the physical machine and restore it to a KVM disk image: Just create the initial virtual drives at least as large as the originals, boot clonezilla in the VM and restore from the images. -- Benjamin Franz