[ovs-discuss] discuss Digest, Vol 43, Issue 39

changliwei07 at gmail.com changliwei07 at gmail.com
Sat Jan 19 09:16:32 UTC 2013


you should set  like this
 
 <interface type='bridge'>
        <mac address='52:54:00:04:a8:3b'/>a
        <target dev='tap0'/>
       
      <source bridge='ovsbr0'/>
      <virtualport type='openvswitch'>
      </virtualport>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </interface>

and use virsh create vm_name.xml

not use virt-manage gui menu to create vm 





From: discuss-request
Date: 2013-01-19 05:30
To: discuss
Subject: discuss Digest, Vol 43, Issue 39
Send discuss mailing list submissions to
discuss at openvswitch.org

To subscribe or unsubscribe via the World Wide Web, visit
http://openvswitch.org/mailman/listinfo/discuss
or, via email, send a message with subject or body 'help' to
discuss-request at openvswitch.org

You can reach the person managing the list at
discuss-owner at openvswitch.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of discuss digest..."


Today's Topics:

   1. Libvirt does not let me choose the OVS bridge... (Martinx - ?????)
   2. Re: Libvirt does not let me choose the OVS bridge...
      (Martinx - ?????)
   3. Re: Libvirt does not let me choose the OVS bridge... (Ben Pfaff)


----------------------------------------------------------------------

Message: 1
Date: Fri, 18 Jan 2013 18:40:53 -0200
From: Martinx - ?????  <thiagocmartinsc at gmail.com>
Subject: [ovs-discuss] Libvirt does not let me choose the OVS
bridge...
To: discuss at openvswitch.org
Message-ID:
<CAJSM8J0T_=f8+rKhZc6dSsKFSinX_N49ST9bpawQU8RZ=DKQyQ at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

Hi!

 I'm trying Open vSwitch after much delay... Can't use brctl anymore...
 =P

 I have Ubuntu 12.04 64 bits, Open vSwitch 1.4.0+build0, with Ubuntu Cloud
Archives <https://wiki.ubuntu.com/ServerTeam/CloudArchive> repository
enabled... Which provides libvirt 0.9.13 for Ubuntu 12.04 LTS.

 What I'm doing?

ovs-vsctl add-br ovsbr0
ovs-vsctl add-port ovsbr0 eth0
ovs-vsctl add-port ovsbr0 ovsbr0p1 -- set interface ovsbr0p1 type=internal

My /etc/network/interfaces have:
---
# The primary network interface
auto eth0
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
 down ifconfig $IFACE down

auto ovsbr0p1
iface ovsbr0p1 inet static
address 10.32.14.2
 netmask 24
---

 But when open virt-manager, I can't select the ovsbr0p1 (or ovsbr0)...
They are "unselectable" (gray)...

 What am I missing?

 I followed this guide to help me:
http://blog.allanglesit.com/2012/10/linux-kvm-ubuntu-12-10-with-openvswitch/

 When I tried to manually select the ovsbr0 or ovsbr0p1, virt-manager
returns:

------
Traceback (most recent call last):
File ?/usr/share/virt-manager/virtManager/asyncjob.py?, line 45, in
cb_wrapper
callback(asyncjob, *args, **kwargs)
File ?/usr/share/virt-manager/virtManager/create.py?, line 1909, in
do_install
guest.start_install(False, meter=meter)
File ?/usr/lib/python2.7/dist-packages/virtinst/Guest.py?, line 1236, in
start_install
noboot)
File ?/usr/lib/python2.7/dist-packages/virtinst/Guest.py?, line 1304, in
_create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File ?/usr/lib/python2.7/dist-packages/libvirt.py?, line 2501, in
createLinux
if ret is None:raise libvirtError(?virDomainCreateLinux() failed?,
conn=self)
libvirtError: Unable to add bridge ovsbr0p1 port vnet0: Operation not
supported
------

 I do not have openvswitch-brcompat installed. And I don't think I need it.

Thanks!
Thiago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130118/2b1651b6/attachment-0001.htm>

------------------------------

Message: 2
Date: Fri, 18 Jan 2013 19:22:30 -0200
From: Martinx - ?????  <thiagocmartinsc at gmail.com>
Subject: Re: [ovs-discuss] Libvirt does not let me choose the OVS
bridge...
To: discuss at openvswitch.org
Message-ID:
<CAJSM8J3s4Xm4YCq-pW=0qzo4tdhhZyp9QmOVav__ijgiXEvZCw at mail.gmail.com>
Content-Type: text/plain; charset="iso-2022-jp"

Hi!

 Also, I just tried this:

ifdown ovsbr0p1
ifdown eth0

ovs-vsctl del-port ovsbr0p1
ovs-vsctl del-br ovsbr0
ovs-vsctl show (empty / clean)

ovs-vsctl add-br br0
ovs-vsctl add-port br0 eth0
ovs-vsctl list-br

New /etc/network/interfaces:

------
# The primary network interface
auto eth0
iface eth0 inet static
address 10.32.14.2
netmask 24
# gateway 10.32.14.1

auto br0
iface br0 inet manual
up ifconfig $IFACE 0.0.0.0 up
 down ifconfig $IFACE down
------

 And now I can select the bridge (br0) on virt-manager but, same error when
I try to start it:

 "Unable to complete install: 'Unable to add bridge br0 port vnet0:
Operation not supported'"

 I just read this:
http://blog.allanglesit.com/2012/03/linux-kvm-ubuntu-12-04-with-openvswitch/-
since I'm using Ubuntu 12.04 but, no difference, same error...

 I really appreciate ANY help from you guys!

Thanks!
Thiago

On 18 January 2013 18:40, Martinx - ????? <thiagocmartinsc at gmail.com> wrote:

> Hi!
>
>  I'm trying Open vSwitch after much delay... Can't use brctl anymore...
>  =P
>
>  I have Ubuntu 12.04 64 bits, Open vSwitch 1.4.0+build0, with Ubuntu
> Cloud Archives <https://wiki.ubuntu.com/ServerTeam/CloudArchive>repository enabled... Which provides libvirt 0.9.13 for Ubuntu 12.04 LTS.
>
>  What I'm doing?
>
> ovs-vsctl add-br ovsbr0
> ovs-vsctl add-port ovsbr0 eth0
> ovs-vsctl add-port ovsbr0 ovsbr0p1 -- set interface ovsbr0p1 type=internal
>
> My /etc/network/interfaces have:
> ---
> # The primary network interface
> auto eth0
> iface eth0 inet manual
> up ifconfig $IFACE 0.0.0.0 up
>  down ifconfig $IFACE down
>
> auto ovsbr0p1
> iface ovsbr0p1 inet static
> address 10.32.14.2
>  netmask 24
> ---
>
>  But when open virt-manager, I can't select the ovsbr0p1 (or ovsbr0)...
> They are "unselectable" (gray)...
>
>  What am I missing?
>
>  I followed this guide to help me:
> http://blog.allanglesit.com/2012/10/linux-kvm-ubuntu-12-10-with-openvswitch/
>
>  When I tried to manually select the ovsbr0 or ovsbr0p1, virt-manager
> returns:
>
> ------
> Traceback (most recent call last):
> File ?/usr/share/virt-manager/virtManager/asyncjob.py?, line 45, in
> cb_wrapper
> callback(asyncjob, *args, **kwargs)
> File ?/usr/share/virt-manager/virtManager/create.py?, line 1909, in
> do_install
> guest.start_install(False, meter=meter)
> File ?/usr/lib/python2.7/dist-packages/virtinst/Guest.py?, line 1236, in
> start_install
> noboot)
> File ?/usr/lib/python2.7/dist-packages/virtinst/Guest.py?, line 1304, in
> _create_guest
> dom = self.conn.createLinux(start_xml or final_xml, 0)
> File ?/usr/lib/python2.7/dist-packages/libvirt.py?, line 2501, in
> createLinux
> if ret is None:raise libvirtError(?virDomainCreateLinux() failed?,
> conn=self)
> libvirtError: Unable to add bridge ovsbr0p1 port vnet0: Operation not
> supported
> ------
>
>  I do not have openvswitch-brcompat installed. And I don't think I need it.
>
> Thanks!
> Thiago
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130118/95486fd1/attachment-0001.htm>

------------------------------

Message: 3
Date: Fri, 18 Jan 2013 13:30:00 -0800
From: Ben Pfaff <blp at nicira.com>
Subject: Re: [ovs-discuss] Libvirt does not let me choose the OVS
bridge...
To: Martinx - ????? <thiagocmartinsc at gmail.com>
Cc: discuss at openvswitch.org
Message-ID: <20130118213000.GD19119 at nicira.com>
Content-Type: text/plain; charset=utf-8

Open vSwitch doesn't have any built-in integration with libvirt, but
on the other hand libvirt does have some support for Open vSwitch, so
perhaps you should try inquiring on a libvirt mailing list.

Also, version 1.4.0 is four minor versions behind, seeing as we just
released 1.4.4.  You might try a new version.

On Fri, Jan 18, 2013 at 07:22:30PM -0200, Martinx - ????? wrote:
> Hi!
> 
>  Also, I just tried this:
> 
> ifdown ovsbr0p1
> ifdown eth0
> 
> ovs-vsctl del-port ovsbr0p1
> ovs-vsctl del-br ovsbr0
> ovs-vsctl show (empty / clean)
> 
> ovs-vsctl add-br br0
> ovs-vsctl add-port br0 eth0
> ovs-vsctl list-br
> 
> New /etc/network/interfaces:
> 
> ------
> # The primary network interface
> auto eth0
> iface eth0 inet static
> address 10.32.14.2
> netmask 24
> # gateway 10.32.14.1
> 
> auto br0
> iface br0 inet manual
> up ifconfig $IFACE 0.0.0.0 up
>  down ifconfig $IFACE down
> ------
> 
>  And now I can select the bridge (br0) on virt-manager but, same error when
> I try to start it:
> 
>  "Unable to complete install: 'Unable to add bridge br0 port vnet0:
> Operation not supported'"
> 
>  I just read this:
> http://blog.allanglesit.com/2012/03/linux-kvm-ubuntu-12-04-with-openvswitch/-
> since I'm using Ubuntu 12.04 but, no difference, same error...
> 
>  I really appreciate ANY help from you guys!
> 
> Thanks!
> Thiago
> 
> On 18 January 2013 18:40, Martinx - ????? <thiagocmartinsc at gmail.com> wrote:
> 
> > Hi!
> >
> >  I'm trying Open vSwitch after much delay... Can't use brctl anymore...
> >  =P
> >
> >  I have Ubuntu 12.04 64 bits, Open vSwitch 1.4.0+build0, with Ubuntu
> > Cloud Archives <https://wiki.ubuntu.com/ServerTeam/CloudArchive>repository enabled... Which provides libvirt 0.9.13 for Ubuntu 12.04 LTS.
> >
> >  What I'm doing?
> >
> > ovs-vsctl add-br ovsbr0
> > ovs-vsctl add-port ovsbr0 eth0
> > ovs-vsctl add-port ovsbr0 ovsbr0p1 -- set interface ovsbr0p1 type=internal
> >
> > My /etc/network/interfaces have:
> > ---
> > # The primary network interface
> > auto eth0
> > iface eth0 inet manual
> > up ifconfig $IFACE 0.0.0.0 up
> >  down ifconfig $IFACE down
> >
> > auto ovsbr0p1
> > iface ovsbr0p1 inet static
> > address 10.32.14.2
> >  netmask 24
> > ---
> >
> >  But when open virt-manager, I can't select the ovsbr0p1 (or ovsbr0)...
> > They are "unselectable" (gray)...
> >
> >  What am I missing?
> >
> >  I followed this guide to help me:
> > http://blog.allanglesit.com/2012/10/linux-kvm-ubuntu-12-10-with-openvswitch/
> >
> >  When I tried to manually select the ovsbr0 or ovsbr0p1, virt-manager
> > returns:
> >
> > ------
> > Traceback (most recent call last):
> > File ?/usr/share/virt-manager/virtManager/asyncjob.py?, line 45, in
> > cb_wrapper
> > callback(asyncjob, *args, **kwargs)
> > File ?/usr/share/virt-manager/virtManager/create.py?, line 1909, in
> > do_install
> > guest.start_install(False, meter=meter)
> > File ?/usr/lib/python2.7/dist-packages/virtinst/Guest.py?, line 1236, in
> > start_install
> > noboot)
> > File ?/usr/lib/python2.7/dist-packages/virtinst/Guest.py?, line 1304, in
> > _create_guest
> > dom = self.conn.createLinux(start_xml or final_xml, 0)
> > File ?/usr/lib/python2.7/dist-packages/libvirt.py?, line 2501, in
> > createLinux
> > if ret is None:raise libvirtError(?virDomainCreateLinux() failed?,
> > conn=self)
> > libvirtError: Unable to add bridge ovsbr0p1 port vnet0: Operation not
> > supported
> > ------
> >
> >  I do not have openvswitch-brcompat installed. And I don't think I need it.
> >
> > Thanks!
> > Thiago
> >

> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss



------------------------------

_______________________________________________
discuss mailing list
discuss at openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss


End of discuss Digest, Vol 43, Issue 39
***************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130119/b1c7355a/attachment.html>


More information about the discuss mailing list