在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
本文介绍了在OpenStack环境中启动OpenVSwitch时遇到ovs-brcompat未运行错误的解决步骤。包括安装必要的软件包、配置内核头文件链接及强制加载网桥模块等。
173

被折叠的 条评论
为什么被折叠?



