[ovs-discuss] Open vSwitch installation in userspace.

Hardeep Uppal hardeep.uw at gmail.com
Wed Aug 4 20:32:19 UTC 2010


Hi Jesse,

Thanks for your reply. I can see that OpenvSwicth created the bridge br0.
But when I update my domU.cfg file to update the network bridge to br0 from
eth0, domU does not boot and I get the following error

$ sudo xm create domU.cfg
   Using config file "/etc/xen/domU.cfg".
   Error: Device 0 (vif) could not be connected. Hotplug scripts not
working.

The bridge should be visible to Xen right? I can see the bridge when I run
ifconfig.

ettm at ettm:~$ ifconfig
br0       Link encap:Ethernet  HWaddr 00:25:64:49:d7:94
          inet addr:128.xxx.x.xx  Bcast:128.208.3.255  Mask:255.255.255.0
          inet6 addr: fe80::225:64ff:fe49:d794/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:14330 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1313 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:2297956 (2.2 MB)  TX bytes:463836 (463.8 KB)


Do I need to do something else to make domU use br0 created by open vswicth?


I appreciate the help.

--hardeep

On Fri, Jul 30, 2010 at 6:12 PM, Jesse Gross <jesse at nicira.com> wrote:

> On Fri, Jul 30, 2010 at 4:47 PM, Hardeep Uppal <hardeep.uw at gmail.com>wrote:
>
>> Hi Jesse,
>>
>> I followed the steps in INSTALL.usespace to create bridge br0 and there
>> were no error messages. How do I check if the bridge br0 is created? I tried
>> "brctl show" but i didn't see bridge br0.
>>
>> I am running Xen3.3 with Debian kernel 2.6.26-2-xen-686 as dom0 and ubuntu
>> 9.04 as domUs. I have a linux bridge "eth0" which is bounded to interfaces
>> peth0 and vif1.0.
>>
>> ettm at ettm:~$ brctl show
>> bridge name    bridge id             STP enabled    interfaces
>> eth0        8000.00256449d794          no                  peth0
>>
>>                                                         vif1.0
>> pan0        8000.000000000000         no
>>
>> I want to create a bridge br0 using open vswitch with interfaces peth0 and
>> vif1.0 and replace the linux bridge eth0. I am not sure how to go about
>> doing that using open vswitch. I would appreciate any help I can get.
>
>
> brctl is part of the Linux bridging tools, which are not the preferred
> method of interacting with Open vSwitch.  We do have a compatibility layer
> but it requires kernel support.
>
> A simple way to see if a bridge was created is check if the bridge
> interface exists.  In this case "ifconfig br0" should show an interface.
>  You can also see the list of bridges using "ovs-vsctl list-br".
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20100804/1015888f/attachment-0001.html>


More information about the discuss mailing list