<virtualport type ='openvswitch'/>不被识别

为了让我的虚拟机使用openvswitch接口,我必须添加以下几行到一个虚拟机xmlconfiguration文件:

<source bridge='ovsbr'/> <virtualport type='openvswitch'/> 

我编辑文件,无论如何,而第一行是保存,第二个不是。 它只是消失,所以我认为虚拟端口标记不被识别…但是这会导致错误,当我启动虚拟机。

xml规范是否改变了? 或者我做错了什么? 这是输出

 virsh --version=long 

libvirt 0.9.8的Virsh命令行工具请访问网站http://libvirt.org/

  Compiled with support for: Hypervisors: Xen QEmu/KVM UML OpenVZ LXC Test Networking: Remote Daemon Network Bridging Nwfilter VirtualPort Storage: Dir Disk Filesystem SCSI Multipath iSCSI LVM Miscellaneous: AppArmor Secrets Debug Readline 

打开vSwitch支持需要libvirt 0.9.11或更高版本 。 你的libvirt太旧了。

要解决此问题,请升级您的系统。