qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Live migration using a specified networking adapter
@ 2021-04-14  4:49 Jing-Wei Su
  2021-04-19 19:06 ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: Jing-Wei Su @ 2021-04-14  4:49 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1461 bytes --]

Hello experts,


I have a network topology like this diagram.

When start live migration moving a VM from Host A to B,

the migration process uses either 10GbE (10.0.0.1) or 1 GbE (10.0.0.2),

but the user cannot specify the source NIC by current migrate command.


To solve the problem, my rough idea is to add a source ipv4:port argument,

the migration command seems like

```

migrate -b tcp:10.0.0.1:4444 -d tcp:10.0.0.3:4444.

```


Is it an available solution? Or, is there any concern and sugesstion?

Besides the idea, is there any good way to this issue?


   +-----------------------------------------------------+
   |                     10GbE switch                    |
   +-----------------------------------------------------+
           |            |                |
           |            |                |
           |            |                |
  10.0.0.1 |    10.0.0.2|        10.0.0.3|
   +-+----------+-+--------+-+  +--+----------+---------+
   |  |10GbE NIC | |1GbE NIC||  |  |10GbE NIE |         |
   |  +----------+ +--------+|  |  +----------+         |
   |                         |  |                       |
   |      +---------+        |  |                       |
   |      |   VM    |        |  |                       |
   |      +---------+        |  |                       |
   +-------------------------+  +-----------------------+
           Host A                         Host B


Thank you.


Regards,

Derek.

[-- Attachment #2: Type: text/html, Size: 5314 bytes --]

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

* Re: Live migration using a specified networking adapter
  2021-04-14  4:49 Live migration using a specified networking adapter Jing-Wei Su
@ 2021-04-19 19:06 ` Dr. David Alan Gilbert
  2021-04-20  8:27   ` Daniel P. Berrangé
  0 siblings, 1 reply; 3+ messages in thread
From: Dr. David Alan Gilbert @ 2021-04-19 19:06 UTC (permalink / raw)
  To: Jing-Wei Su; +Cc: berrange, qemu-devel

* Jing-Wei Su (jwsu1986@gmail.com) wrote:
> Hello experts,
> 
> 
> I have a network topology like this diagram.
> 
> When start live migration moving a VM from Host A to B,
> 
> the migration process uses either 10GbE (10.0.0.1) or 1 GbE (10.0.0.2),
> 
> but the user cannot specify the source NIC by current migrate command.
> 
> 
> To solve the problem, my rough idea is to add a source ipv4:port argument,
> 
> the migration command seems like
> 
> ```
> 
> migrate -b tcp:10.0.0.1:4444 -d tcp:10.0.0.3:4444.

I'm not sure what the OS lets us do, but if it lets us pick the IP and
port I think that would work; I don't think you need another tcp:
since we already know which protocol we're using.

> 
> ```
> 
> Is it an available solution? Or, is there any concern and sugesstion?
> 
> Besides the idea, is there any good way to this issue?

It's unusual; I don't think I've seen anyone ask for it before.
I assume there's a wayto get the host network stack to prefer
the 10GbE interface.
Or to use separate subnets; rememember that each interface
can have multiple IP addresses.

Dave

> 
>    +-----------------------------------------------------+
>    |                     10GbE switch                    |
>    +-----------------------------------------------------+
>            |            |                |
>            |            |                |
>            |            |                |
>   10.0.0.1 |    10.0.0.2|        10.0.0.3|
>    +-+----------+-+--------+-+  +--+----------+---------+
>    |  |10GbE NIC | |1GbE NIC||  |  |10GbE NIE |         |
>    |  +----------+ +--------+|  |  +----------+         |
>    |                         |  |                       |
>    |      +---------+        |  |                       |
>    |      |   VM    |        |  |                       |
>    |      +---------+        |  |                       |
>    +-------------------------+  +-----------------------+
>            Host A                         Host B
> 
> 
> Thank you.
> 
> 
> Regards,
> 
> Derek.
-- 
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK



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

* Re: Live migration using a specified networking adapter
  2021-04-19 19:06 ` Dr. David Alan Gilbert
@ 2021-04-20  8:27   ` Daniel P. Berrangé
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel P. Berrangé @ 2021-04-20  8:27 UTC (permalink / raw)
  To: Dr. David Alan Gilbert; +Cc: Jing-Wei Su, qemu-devel

On Mon, Apr 19, 2021 at 08:06:23PM +0100, Dr. David Alan Gilbert wrote:
> * Jing-Wei Su (jwsu1986@gmail.com) wrote:
> > Hello experts,
> > 
> > 
> > I have a network topology like this diagram.
> > 
> > When start live migration moving a VM from Host A to B,
> > 
> > the migration process uses either 10GbE (10.0.0.1) or 1 GbE (10.0.0.2),
> > 
> > but the user cannot specify the source NIC by current migrate command.
> > 
> > 
> > To solve the problem, my rough idea is to add a source ipv4:port argument,
> > 
> > the migration command seems like
> > 
> > ```
> > 
> > migrate -b tcp:10.0.0.1:4444 -d tcp:10.0.0.3:4444.
> 
> I'm not sure what the OS lets us do, but if it lets us pick the IP and
> port I think that would work; I don't think you need another tcp:
> since we already know which protocol we're using.
> 
> > 
> > ```
> > 
> > Is it an available solution? Or, is there any concern and sugesstion?
> > 
> > Besides the idea, is there any good way to this issue?
> 
> It's unusual; I don't think I've seen anyone ask for it before.
> I assume there's a wayto get the host network stack to prefer
> the 10GbE interface.
> Or to use separate subnets; rememember that each interface
> can have multiple IP addresses.

Yes, the recommended way is to have separate subnets for the
two NICs, and then use the IP address associated with the
fast NIC. Network routing will ensure migration traffic flows
over the main NIC. This is known to work well as OpenStack
uses this approach with QEMU/libvirt already.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



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

end of thread, other threads:[~2021-04-20  8:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14  4:49 Live migration using a specified networking adapter Jing-Wei Su
2021-04-19 19:06 ` Dr. David Alan Gilbert
2021-04-20  8:27   ` Daniel P. Berrangé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).