4
回答
xen使用open vswitch的问题
华为云7大明星产品0元使用! >>>   

之前安装了xen,使用的是linux的bridge。

现在想采用open vswitch,发现了一堆错误。比如 /etc/xen/qemu-ifup脚本问题,不能初始化tap设备。

而如果开启open vswitch的linux bridge兼容功能,一切又正常了。

而我并不响开启兼容功能,我该怎么办?

 

举报
yandong
发帖于5年前 4回/1K+阅
共有4个答案 最后回答: 5年前
必须开。 看看官方给出的解释: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.bridge;hb=HEAD
 
This file documents how Open vSwitch may be used as a drop-in
replacement for a Linux kernel bridge in an environment that includes
elements that are tightly tied to the Linux bridge tools
(e.g. "brctl") and architecture.  We recommend directly using the
management tools provided with Open vSwitch rather than these
compatibility hooks for environments that are not tightly tied to the
Linux bridging tools; they are more efficient and better reflect the
actual operation and status.。。。。

大致意思是有很多工具,软件等等和Linux kernel bridge的关联比较紧密,比如我们使用的xen-4.1。上一小节提到xen无法创建,错误里面有句话是 /etc/xen/scripts/qemu-ifup: could not launch network script”,而查看这个脚本,里面的内容是:

#!bin/sh

Echo –c `config qemu network with xen bridge for`

Echo $*

Ifconfig $1 0.0.0.0 up

Brctl addif $2 $1

此处便发现这个脚本使用Brctl而其依赖于linux bridge

如果不开启ovs bridge兼容功能是可以做到的,可以使用libvirtd来启动你的虚拟机,libvirt已经内部支持ovs了,不需要使用ovs bridge兼容。
参见官方新闻:http://openvswitch.org/news/
Binary Bit Me Libvirt 0.9.11 has Support for Open vSwitch Libvirt release 0.9.11 has added support for Open vSwitch so it is no longer required to use bridge compatibility mode! Fedora 17 has 0.9.11 included.
--- 共有 1 条评论 ---
yandong你好,你对ovs这么精通啊,能留个联系方法么,邮箱或者qq,方便请教,谢谢 5年前 回复
顶部