I guess a kernel space OVS instance is already running on your system. To completely remove OVS from a linux system use the following commands:
kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid` rmmod openvswitch rm -rf /usr/local/etc/openvswitch rm -rf /usr/local/var/run/openvswitch The "rmmod openvswitch" command should remove the kernel module. Then try re-installing OVS without the kernel modules: ./boot.sh ./configure make make install mkdir -p /usr/local/etc/openvswitch ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \ --remote=db:Open_vSwitch,Open_vSwitch,manager_options \ --private-key=db:Open_vSwitch,SSL,private_key \ --certificate=db:Open_vSwitch,SSL,certificate \ --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert \ --pidfile --detach ovs-vsctl --no-wait init ovs-vswitchd --pidfile --detach On 27 January 2014 10:23, sonia verma <soniaverma9...@gmail.com> wrote: > HI Asadullah > > Thanks > I need to run OVS in userspace and i have succesfully installed OVS using > instructions in INSTALL.USERSPACE. > However whenever i start the switch,the kernel module openvswitch appears > in lsmod. > Can we start the OVS in userspace without loading its kernel module? > > > > > Thanks > > > On Mon, Jan 27, 2014 at 10:39 AM, Asadullah Hussain > <asadxf...@gmail.com>wrote: > >> To add a bridge in user space the following command is used: >> >> ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev >> >> If "br0" appears in the network interface list then OVS is running in >> userspace successfully: >> >> You can use "ifconfig" to confirm that. >> >> >> On 27 January 2014 09:41, sonia verma <soniaverma9...@gmail.com> wrote: >> >>> Hi Arun >>> >>> Thanks >>> >>> I'm able to install ovs in userspace after following the >>> INSTALL.USERSPACE and I'm able to create bridge successfully by using >>> ovs-vsctl add-br br0 command. >>> >>> But how to confirm whether it runs in userspace or not? >>> >>> Thanks >>> >>> >>> On Mon, Jan 27, 2014 at 9:19 AM, Arun Sharma <arun.sha...@calsoftinc.com >>> > wrote: >>> >>>> I hope you have referred >>>> INSTALL.userspace<http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.userspace;hb=a3ea1821d67e7dc8af32d7a55b5857014ec4583f> >>>> document >>>> "Using Open vSwitch without kernel support" related to this? >>>> >>>> To be specific, " >>>> On Linux, when a physical interface is in use by the userspace >>>> datapath, packets received on the interface still also pass into the >>>> kernel TCP/IP stack. This can cause surprising and incorrect >>>> behavior. You can use "iptables" to avoid this behavior, by using it >>>> to drop received packets. For example, to drop packets received on >>>> eth0: >>>> iptables -A INPUT -i eth0 -j DROP >>>> iptables -A FORWARD -i eth0 -j DROP >>>> " >>>> >>>> >>>> From: sonia verma <soniaverma9...@gmail.com> >>>> Date: Sun, 26 Jan 2014 08:59:54 +0530 >>>> To: "discuss@openvswitch.org" <discuss@openvswitch.org> >>>> Subject: [ovs-discuss] OVS in userspace >>>> >>>> Hi >>>> >>>> Is it possible to run ovs on userspace without loading its kernel >>>> modules? >>>> >>>> Please help regarding this. >>>> >>>> Thanks >>>> _______________________________________________ discuss mailing list >>>> discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss >>>> >>> >>> >>> _______________________________________________ >>> discuss mailing list >>> discuss@openvswitch.org >>> http://openvswitch.org/mailman/listinfo/discuss >>> >>> >> >> >> -- >> Asadullah Hussain >> > > -- Asadullah Hussain
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss