[Solved] Can not start Openvswitch on Archer C7 v2 LEDE

I have recently installed LEDE 17.01.4 in my Archer C7 v2 router. I have also installed the Openvswitch package. opkg status showing the the following

root@LEDE:~# opkg status kmod-openvswitch
Package: kmod-openvswitch
Version: 4.4.92+2.5.0-22d4614ddf83988a3771fb379ea029e663b4455a
Depends: kernel (= 4.4.92-1-45d282495a15974d60f8edb091d0e2a9), kmod-stp, kmod-gre, kmod-lib-crc32c, kmod-vxlan, kmod-nf-conntrack, kmod-nf-conntrack6
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1517433207

There is no database created in the /etc/ folder for openvswitch. There is also no ovs-ctl file and ovs-lib file exist in the /usr/share/openvswitch/scripts/ location.

If I try to create a bridge it shows the following error:

root@LEDE:~# ovs-vsctl add-br br0
-ash: ovs-vsctl: not found

opkg files shows the following:

root@LEDE:~# opkg files kmod-openvswitch
Package kmod-openvswitch (4.4.92+2.5.0-22d4614ddf83988a3771fb379ea029e663b4455a) is installed on root and has the following files:
/etc/modules.d/21-openvswitch
/lib/modules/4.4.92/openvswitch.ko

I am stucked at this point now. Anyone please help on how can I start the openvswitch?

In addition, I think you need openvswitch

The package description...

Provides the main userspace components required for Open vSwitch to function. Includes also the main OVS utilities (ovs-appctl, ovs-vsctl, etc).

1 Like

Thank you for your reply jwoods. But there is only one package (kmod-openvswitch) available for openvswitch in openwrt website in LEDE 17 in *.ipk format.

In chaos claimer version there was another package named openvswitch-basic. But I can not find any similar package (openvswitch-basic) in LEDE or recent trunk version. http://downloads.openwrt.org/releases/17.01.4/targets/ar71xx/generic/packages/

The non-kernel userspace packages are at a different location, see http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/packages/.

You should use opkg update; opkg install openvswitch to obtain proper packages instead of downloading them manually.

1 Like

Thank you very much jow. This is exactly what I was searching for. You are awsome.