Poh Yong Hwang
2010-Jun-24 11:17 UTC
[CentOS-virt] (KVM) How can I migrate VM in a non shared storage environment?
Hi, I have a server running CentOS 5.5 with KVM capabilities. I need to migrate all the VMs to another server with the exact same hardware specs. The problem is it is running on individual harddisks, not shared storage. What is the best way to migrate to minimise downtime? Thanks! YongSan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20100624/45a870a9/attachment-0006.html>
compdoc
2010-Jun-24 13:54 UTC
[CentOS-virt] (KVM) How can I migrate VM in a non shared storage environment?
One way would be to boot the VMs with a product like Acronis or Ghost, and create an image of the VM's drive(s). Then create a new VM on the 2nd server that has nics with the same MAC addresses as the old VM, and storage with the same sizes, and restore the image there. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20100624/383f648b/attachment-0006.html>
Kelvin Edmison
2010-Jun-24 14:52 UTC
[CentOS-virt] (KVM) How can I migrate VM in a non shared storage environment?
On 24/06/10 7:17 AM, "Poh Yong Hwang" <yongsan at gmail.com> wrote:> I have a server running CentOS 5.5 with KVM capabilities. I need to migrate > all the VMs to another server with the exact same hardware specs. The problem > is it is running on individual harddisks, not shared storage. What is the best > way to migrate to minimise downtime?I've had good success using dd and nc (netcat) to copy the contents of a disk or disk image from one machine to another, and verifying the copy was successful with a md5sum or sha1sum of both the original and copied disk. Kelvin
Christopher Hunt
2010-Jun-28 16:17 UTC
[CentOS-virt] (KVM) How can I migrate VM in a non shared storage environment?
+1 for dd + nc over ssh if necessary. This process can and probably will saturate your ethernet interface, so depending upon the amount of traffic the box pushes on the public interface the size of the partition and other factors, sometimes i add a crossover cable between unused interfaces on the 2 boxes and run the process over that interface, so it doesn't impact the running vms. Cheers -Chris On 6/24/2010 9:00 AM, centos-virt-request at centos.org wrote:> Message: 3 > Date: Thu, 24 Jun 2010 10:52:57 -0400 > From: Kelvin Edmison<kelvin at kindsight.net> > Subject: Re: [CentOS-virt] (KVM) How can I migrate VM in a non shared > storage environment? > To: Discussion about the virtualization on CentOS > <centos-virt at centos.org> > Message-ID:<C848E989.30D95%kelvin at kindsight.net> > Content-Type: text/plain; charset="US-ASCII" > > > > > On 24/06/10 7:17 AM, "Poh Yong Hwang"<yongsan at gmail.com> wrote: > >> I have a server running CentOS 5.5 with KVM capabilities. I need to migrate >> all the VMs to another server with the exact same hardware specs. The problem >> is it is running on individual harddisks, not shared storage. What is the best >> way to migrate to minimise downtime? > > I've had good success using dd and nc (netcat) to copy the contents of a > disk or disk image from one machine to another, and verifying the copy was > successful with a md5sum or sha1sum of both the original and copied disk. > > Kelvin > > > > ------------------------------ > > _______________________________________________ > CentOS-virt mailing list > CentOS-virt at centos.org > http://lists.centos.org/mailman/listinfo/centos-virt > > > End of CentOS-virt Digest, Vol 34, Issue 13 > *******************************************
Apparently Analagous Threads
- Resizing EXT3 partition in guest instance CentOS5
- How do I reduce a disk size of a particular VM?
- Can shorewall be setup in a datacenter environment?
- KVM instance keep crashing
- [PATCH 1/3] nv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped