Re: [libvirt] about open vswitch supporting?

2012-09-04 Thread Laine Stump
On 09/03/2012 06:41 AM, yue wang wrote:
>
>
> Hi:
>
>
> i used to use linux bridge and specify interfaces
> by 'Generic ethernet connection' mode,after
> reading this page:
>
>
> http://libvirt.org/formatdomain.html#elementsNICS
>

Actually, for a standard linux bridge, you should be using  rather than  ("generic
ethernet connection"):

  http://www.libvirt.org/formatdomain.html#elementsNICSBridge

type='ethernet' should only be used if there is some special setup that
can't be taken care of by the standard types; type='ethernet' requires
special permissions that aren't normally required, and "taints" the
guest - it's considered to be unsupported.

>
>
> i am not sure if i need to change to another
> mode(eg:'virtual network') to specify interfaces
> when switching linux bridge to open vswitch?
>
>   any suggestions?
>

As long as your libvirt version is new enough (0.9.11 or newer), you can
continue to use  (as you should have previously
been), and add a  element to the
interface definition. For example, if you were previously using a linux
bridge at br0, you would have have used:

   
 
 ...
   

and if you switch to using an Open vSwitch bridge named ovsbr0, you
would change that to:

   
 
 
 ...
   

(you will notice that after you've edited you interface definition like
this, libvirt will automatically add a " to the  element. This is so that the
guest's interface can be known by a stable id that won't change as the
guest is stopped/restarted/migrated.)


If your libvirt is older than 0.9.11,you will need to either use the
Open vSwitch compatibility library to make your Open vSwitch bridge
appear to be a standard Linux host bridge, *or* you wil need to use
 along with an ifup script. I would
*strongly* recommend that you upgrade to 0.9.11+ if at all possible.

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] about open vswitch supporting?

2012-09-04 Thread Laine Stump
On 09/04/2012 02:20 AM, yue wang wrote:
> it seems the  'generic ethernet connection' network doesn't have the
> 'virtualport ' element, so there is no way to associate it with an
> interface's uuid.
> are there any workaround?

See the other reply I just sent (I thought I'd typed it up yesterday,
but forgot to hit send). You shouldn't be using the "generic ethernet
connection" type for either standard linux bridges or Open vSwitch
bridges (unless you are using Open vSwitch *and* your libvirt is older
than 0.9.11, and in that case there is no "type='openvswitch'" for
 anyway).

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] about open vswitch supporting?

2012-09-03 Thread yue wang
it seems the  'generic ethernet connection' network doesn't have the
'virtualport ' element, so there is no way to associate it with an
interface's uuid.
are there any workaround?

On Mon, Sep 3, 2012 at 6:41 PM, yue wang  wrote:

> Hi:
>
> i used to use linux bridge and specify interfaces by 'Generic ethernet 
> connection'
> mode,after reading this page:
> http://libvirt.org/formatdomain.html#elementsNICS
> i am not sure if i need to change to another mode(eg:'virtual network') to
> specify interfaces when switching linux bridge to open vswitch?
> any suggestions?
>
>
> thanks!
> heuye
>
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] about open vswitch supporting?

2012-09-03 Thread yue wang
Hi:

i used to use linux bridge and specify interfaces by 'Generic ethernet
connection'
mode,after reading this page:
http://libvirt.org/formatdomain.html#elementsNICS
i am not sure if i need to change to another mode(eg:'virtual network') to
specify interfaces when switching linux bridge to open vswitch?
any suggestions?


thanks!
heuye
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list