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 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?
- Jussi
Hi,
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?
- 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
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.
On 31.3.2011 12.42, nux@li.nux.ro wrote:
Check this out: http://people.redhat.com/~rjones/virt-p2v/virt-p2v.1.html
Hei,
That looks like a very useful tip.
- Jussi
On Thu, 2011-03-31 at 05:41 -0700, Benjamin Franz wrote:
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.
That's an excellent idea! I didn't consider it when I was trying to figure out how to migrate a physical CentOS 5 server to a KVM.
I will try this just for shits and giggles.
Regards,
Ranbir
On Thu, 2011-03-31 at 05:41 -0700, Benjamin Franz wrote:
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.
That's an excellent idea! I didn't consider it when I was trying to figure out how to migrate a physical CentOS 5 server to a KVM.
On 1.4.2011 4.38, Kanwar Ranbir Sandhu wrote:
I will try this just for shits and giggles.
Please let us know what you will find out.
- Jussi
On Thu, 2011-03-31 at 21:38 -0400, Kanwar Ranbir Sandhu wrote:
On Thu, 2011-03-31 at 05:41 -0700, Benjamin Franz wrote:
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.
That's an excellent idea! I didn't consider it when I was trying to figure out how to migrate a physical CentOS 5 server to a KVM.
I will try this just for shits and giggles.
Regards,
Ranbir
This is pretty awesome for linux boxen, but just so that you know, it'll not be as straight forward for a windows box! That puppy there is an adventure in itself.
But just to note - Did the migration go smoothly?
Jussi Hirvi wrote:
On Thu, 2011-03-31 at 05:41 -0700, Benjamin Franz wrote:
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.
That's an excellent idea! I didn't consider it when I was trying to figure out how to migrate a physical CentOS 5 server to a KVM.
On 1.4.2011 4.38, Kanwar Ranbir Sandhu wrote:
I will try this just for shits and giggles.
Please let us know what you will find out.
- Jussi
I converted several bare-metal Windows systems to VirtualBox. KVM should be the same. I would clone C: partition to image file, create VirtualBox virt system with same partition size and create virtual shares whereimage file is located. Then I would clone from image to partition of virtual system and then reset Windows IDE drivers (Hiren's Boot CD and some BartPE can do it.)
Doing this on Linux would entail dd or other cloning procedure and LiveCD or Installation media to be able to change hdd/partition device paths/names (if necessary) and you are done.
Ljubomir
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?
- Jussi
Hi,
On 31.3.2011 12.42, nux@li.nux.ro wrote:
Check this out: http://people.redhat.com/~rjones/virt-p2v/virt-p2v.1.html
Does anyone have the .iso image of virt-p2v? It is not available anymore through that link. The source is available, but building it requires a *lot* of packages, some of which seem to be hard to find.
- Jussi
On Sun, 24 Apr 2011, Jussi Hirvi wrote:
Does anyone have the .iso image of virt-p2v? It is not available anymore through that link. The source is available, but building it requires a *lot* of packages, some of which seem to be hard to find.
I have a copy in my archive, but how about contacting Richard Jones, and asking him for an update or replacement?
-- Russ herrold
On Sun, 24 Apr 2011, Jussi Hirvi wrote:
Does anyone have the .iso image of virt-p2v? It is not available anymore through that link. The source is available, but building it requires a *lot* of packages, some of which seem to be hard to find.
Good idea, but I begin to be short of time... I would be grateful to have your copy, if you don't have any scruples about that - though the Clonezilla method is probably viable too.
http://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE#Physical_serv...
RJ's website says he is (was?) in the process of rewriting virt-p2v.
I have a copy in my archive, but how about contacting Richard Jones, and asking him for an update or replacement?
- Jussi
On Sun, 24 Apr 2011, Jussi Hirvi wrote:
RJ's website says he is (was?) in the process of rewriting virt-p2v.
I have a copy in my archive, but how about contacting Richard Jones, and asking him for an update or replacement?
I'll shuttle it out into public bandwidth and advice you privately of the URL -- it is a bit over 200M, so it will take a little while
-- Russ herrold