On 04/12/2012 03:35 AM, yue wang wrote: > hi everybody, > i saw the new feature: network: support Open vSwitch. > how to use this feature? are there any documents about that? i didn't > find it on the website. It's a very new feature, only in libvirt-0.9.10 and newer. Here is the commit log that describes additions to the XML to configure an interface to use an openvswitch bridge: commit df8100463272c3c9a7a680d547b675ec277ed53e Author: Ansis Atteka <aatteka@xxxxxxxxxx> Date: Fri Feb 10 23:09:00 2012 +0200 network: support Open vSwitch This patch allows libvirt to add interfaces to already existing Open vSwitch bridges. The following syntax in domain XML file can be used: <interface type='bridge'> <source bridge='ovsbr'/> <virtualport type='openvswitch'> <parameters interfaceid='921a80cd-e6de-5a2e-db9c-ab27f15a6e1d'/> </virtualport> </interface> or if libvirt should auto-generate the interfaceid use following syntax: <interface type='bridge'> <source bridge='ovsbr'/> <virtualport type='openvswitch'> </virtualport> </interface> It is also possible to pass an optional profileid. To do that use following syntax: <interface type='bridge'> <source bridge='ovsbr'/> <virtualport type='openvswitch'> <parameters interfaceid='921a80cd-e6de-5a2e-db9c-ab27f15a6e1d' profileid='test-profile'/> </virtualport> </interface> To create Open vSwitch bridge install Open vSwitch and run the following command: ovs-vsctl add-br ovsbr