Skip to contentSkip to conversation

Secure migration of LVM based guests over WAN

DISCUSSION Lukas Laukamp 2 participants 5 messages Oct 16, 2012 – Oct 17, 2012 KVM

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 9 lines · Lukas Laukamp

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

Quoted 6 lines

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.

Signature · 1 line
error compiling committee.c: too many arguments to function
#2 lore raw

Am 16.10.2012 11:40, schrieb Avi Kivity:

Quoted 16 lines · Lukas Laukamp
Quoted 9 lines

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

Quoted 6 lines

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?

Quoted 8 lines

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

#3 lore raw
Quoted 26 lines · Lukas Laukamp

Am 16.10.2012 11:40, schrieb Avi Kivity:

Quoted 16 lines · Lukas Laukamp
Quoted 9 lines

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

Quoted 6 lines

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?

Quoted 8 lines

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.

Quoted 4 lines

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.

Quoted 4 lines

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.

Signature · 1 line
error compiling committee.c: too many arguments to function
#4 lore raw

Am 16.10.2012 12:10, schrieb Avi Kivity:

Quoted 28 lines · Lukas Laukamp
Quoted 27 lines

Am 16.10.2012 11:40, schrieb Avi Kivity:

Quoted 16 lines · Lukas Laukamp
Quoted 9 lines

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

Quoted 6 lines

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?

Quoted 8 lines

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,

Quoted 9 lines
Quoted 2 lines

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.

Quoted 3 lines

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