public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Secure migration of LVM based guests over WAN
@ 2012-10-16  9:12 Lukas Laukamp
  2012-10-16  9:40 ` Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: Lukas Laukamp @ 2012-10-16  9:12 UTC (permalink / raw)
  To: kvm

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?

Would be greate when someone could help me.

Best Regards

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Secure migration of LVM based guests over WAN
  2012-10-16  9:12 Secure migration of LVM based guests over WAN Lukas Laukamp
@ 2012-10-16  9:40 ` Avi Kivity
  2012-10-16  9:48   ` Lukas Laukamp
  0 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2012-10-16  9:40 UTC (permalink / raw)
  To: Lukas Laukamp; +Cc: kvm

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.


-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Secure migration of LVM based guests over WAN
  2012-10-16  9:40 ` Avi Kivity
@ 2012-10-16  9:48   ` Lukas Laukamp
  2012-10-16 10:10     ` Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: Lukas Laukamp @ 2012-10-16  9:48 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm

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?

For the live migration theme, it would be no problem when the guests 
looses connectivity, how could be done a live migration?

Best Regards

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Secure migration of LVM based guests over WAN
  2012-10-16  9:48   ` Lukas Laukamp
@ 2012-10-16 10:10     ` Avi Kivity
  2012-10-17 10:18       ` Lukas Laukamp
  0 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2012-10-16 10:10 UTC (permalink / raw)
  To: Lukas Laukamp; +Cc: kvm

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.

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Secure migration of LVM based guests over WAN
  2012-10-16 10:10     ` Avi Kivity
@ 2012-10-17 10:18       ` Lukas Laukamp
  0 siblings, 0 replies; 5+ messages in thread
From: Lukas Laukamp @ 2012-10-17 10:18 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-17 10:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-16  9:12 Secure migration of LVM based guests over WAN Lukas Laukamp
2012-10-16  9:40 ` Avi Kivity
2012-10-16  9:48   ` Lukas Laukamp
2012-10-16 10:10     ` Avi Kivity
2012-10-17 10:18       ` Lukas Laukamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox