ovs-brcompatd is not running的解决办法

在openstack里启动openvswitch-switch服务service openvswitch-switch start的时候可能会出现

ovs-brcompatd is not running的错误,解决方法如下:


apt-get install openvswitch-controller openvswitch-brcompat 
openvswitch-switch 

aptitude install -y openvswitch-datapath-source
aptitude install module-assistant 
module-assistant auto-install openvswitch-datapath
在这个过程中可能还会出现如下错误:

Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other valid kernel headers to use...

这是头文件的问题, the kernel generic headers is missing the version.h file.

解决方法如下:ln -s /usr/src/linux-headers-`uname -r`/include/generated/uapi/linux/version.h /lib/modules/`uname -r`/build/include/linux/

编辑 /etc/default/openvswitch-switch

BRCOMPAT=yes

在这过后如果还是启动不了就强制加载:

先移除网桥模块:rmmod bridge

/etc/init.d/openvswitch-switch force-reload-kmod
参考资料: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1094830

http://www.chenshake.com/install-on-ubuntu-12-04-open-vswitch/

https://ask.openstack.org/en/question/1427/ovs-plugin-error-failed-to-create-ovs-patch-port/

https://bugs.launchpad.net/ubuntu/+source/tp-smapi/+bug/1069432






 

你可能感兴趣的:(ovs-brcompatd is not running的解决办法)