From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Laukamp Subject: Re: Secure migration of LVM based guests over WAN Date: Wed, 17 Oct 2012 12:18:59 +0200 Message-ID: <507E8613.6060901@laukamp.me> References: <507D2504.6090206@laukamp.me> <507D2B99.1090306@redhat.com> <507D2D7F.4050904@laukamp.me> <507D32A0.8030102@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mailer0.lippux.de ([5.9.218.245]:49795 "EHLO mailer0.lippux.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756500Ab2JQKTG (ORCPT ); Wed, 17 Oct 2012 06:19:06 -0400 In-Reply-To: <507D32A0.8030102@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Am 16.10.2012 12:10, schrieb Avi Kivity: > On 10/16/2012 11:48 AM, Lukas Laukamp wrote: >> Am 16.10.2012 11:40, schrieb Avi Kivity: >>> On 10/16/2012 11:12 AM, Lukas Laukamp wrote: >>>> Hey all, >>>> >>>> I have a question about a solution for migrate LVM based guests directly >>>> over the network. >>>> >>>> So the situation: Two KVM hosts with libvirt, multiple LVM based guests >>>> Want to do: Migrate a LVM based guest directly to the other host over an >>>> secure connection >>>> >>>> I know that migration is possible when the VM disks are stored on an >>>> NFS, GFS2 filer/cluster etc. >>>> >>>> So would it be possible to do an offline migration directly with netcat >>>> or something like that? >>>> >>> If all you need is offline, you can use scp to copy each volume to the >>> destination volume. Make sure the guests are shut down when you do that. >>> >>> It is also possible to do a live migration, but unless the destination >>> and source are in the same IP subnet, the guests are going to lose >>> connectivity. >>> >>> >> Hello Avi, >> >> so can I simply copy an logical volume to the path of the volume group >> with scp? > Yes. Best to enable compression to avoid sending zero blocks. > >> For the live migration theme, it would be no problem when the guests >> looses connectivity, how could be done a live migration? >> > See the -b option to the migrate command. > I will read a little bit about the live migration theme. Best Regards