[libvirt-users] help:any docs for open vswitch supporting?

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. Thanks, Heuye

http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=WHY-O... For more information, please see http://openvswitch.org/ then join Open vSwitch Community by subscribing related mail listing such as http://mail.openvswitch.org/mailman/listinfo/discuss Alex ----- Original Message ----- From: "yue wang" <heuye.wang@gmail.com> To: libvirt-users@redhat.com Sent: Thursday, April 12, 2012 3:35:00 PM Subject: [libvirt-users] help:any docs for open vswitch supporting? 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. Thanks, Heuye _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

thank you, but i think i did not describe my quenstions well.i already knew about OVS,and I want to know what libvirt did to support OVS,are there any new APIs?or something else. after knowing this,I think I will know how to integrate OVS into my system using this libvirt new feature. Thanks, Heuye 发自我的 iPhone 在 2012年4月13日,0:32,Alex Jia <ajia@redhat.com> 写道:
http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=WHY-O...
For more information, please see http://openvswitch.org/ then join Open vSwitch Community by subscribing related mail listing such as http://mail.openvswitch.org/mailman/listinfo/discuss
Alex
----- Original Message ----- From: "yue wang" <heuye.wang@gmail.com> To: libvirt-users@redhat.com Sent: Thursday, April 12, 2012 3:35:00 PM Subject: [libvirt-users] help:any docs for open vswitch supporting?
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.
Thanks, Heuye _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

At present, I can only find this in libvirt upstream: http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/util/virnetdevopenvswitch... It should be a development stage. Regards, Alex ----- Original Message ----- From: "Wang Yue" <heuye.wang@gmail.com> To: "Alex Jia" <ajia@redhat.com> Cc: libvirt-users@redhat.com Sent: Friday, April 13, 2012 9:04:47 AM Subject: Re: [libvirt-users] help:any docs for open vswitch supporting? thank you, but i think i did not describe my quenstions well.i already knew about OVS,and I want to know what libvirt did to support OVS,are there any new APIs?or something else. after knowing this,I think I will know how to integrate OVS into my system using this libvirt new feature. Thanks, Heuye 发自我的 iPhone 在 2012年4月13日,0:32,Alex Jia <ajia@redhat.com> 写道:
http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=WHY-O...
For more information, please see http://openvswitch.org/ then join Open vSwitch Community by subscribing related mail listing such as http://mail.openvswitch.org/mailman/listinfo/discuss
Alex
----- Original Message ----- From: "yue wang" <heuye.wang@gmail.com> To: libvirt-users@redhat.com Sent: Thursday, April 12, 2012 3:35:00 PM Subject: [libvirt-users] help:any docs for open vswitch supporting?
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.
Thanks, Heuye _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

2012/4/12 Wang Yue <heuye.wang@gmail.com>
thank you, but i think i did not describe my quenstions well.i already knew about OVS,and I want to know what libvirt did to support OVS,are there any new APIs?or something else. after knowing this,I think I will know how to integrate OVS into my system using this libvirt new feature.
Probably, the only option for you is to build libvirt from source, unless you are ok with using Fedora 17 Alpha (I believe this is the only mainstream distro that has the bleeding libvirt version, but I could be wrong on this). It should not matter what kind of OVS version you are using. The only restriction is that ovs-vsctl utility (from Open vSwitch) must be in the $PATH, because libvirt needs to call it. Currently only bridged networks are supported, so you must create the OVS bridge beforehand:
ovs-vsctl add-br ovsbr
The other thing you need to do is edit the Domain XML file:
<interface type='*bridge*'> <mac address='52:54:00:d0:3f:f2'/> <source *bridge*='*ovsbr*'/> *<virtualport type='openvswitch'> </virtualport> *
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
And then (re)start the VM. To verify, if libvirt attached VM interface to the ovsbr as expected, you should run the following command and look for vnetX interface:
ovs-vsctl show
Hope this helps.
Thanks, Heuye
发自我的 iPhone
在 2012年4月13日,0:32,Alex Jia <ajia@redhat.com> 写道:
http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=WHY-O...
For more information, please see http://openvswitch.org/ then join Open
vSwitch Community by
subscribing related mail listing such as http://mail.openvswitch.org/mailman/listinfo/discuss
Alex
----- Original Message ----- From: "yue wang" <heuye.wang@gmail.com> To: libvirt-users@redhat.com Sent: Thursday, April 12, 2012 3:35:00 PM Subject: [libvirt-users] help:any docs for open vswitch supporting?
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.
Thanks, Heuye _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

thank you very much for all your answers! [?] it's almost clear to me. 2012/4/16 Ansis Atteka <aatteka@nicira.com>
2012/4/12 Wang Yue <heuye.wang@gmail.com>
thank you, but i think i did not describe my quenstions well.i already knew about OVS,and I want to know what libvirt did to support OVS,are there any new APIs?or something else. after knowing this,I think I will know how to integrate OVS into my system using this libvirt new feature.
Probably, the only option for you is to build libvirt from source, unless you are ok with using Fedora 17 Alpha (I believe this is the only mainstream distro that has the bleeding libvirt version, but I could be wrong on this). It should not matter what kind of OVS version you are using. The only restriction is that ovs-vsctl utility (from Open vSwitch) must be in the $PATH, because libvirt needs to call it.
Currently only bridged networks are supported, so you must create the OVS bridge beforehand:
ovs-vsctl add-br ovsbr
The other thing you need to do is edit the Domain XML file:
<interface type='*bridge*'> <mac address='52:54:00:d0:3f:f2'/>
<source *bridge*='*ovsbr*'/> *<virtualport type='openvswitch'> </virtualport> *
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
And then (re)start the VM.
To verify, if libvirt attached VM interface to the ovsbr as expected, you should run the following command and look for vnetX interface:
ovs-vsctl show
Hope this helps.
Thanks, Heuye
发自我的 iPhone
在 2012年4月13日,0:32,Alex Jia <ajia@redhat.com> 写道:
http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=WHY-O...
For more information, please see http://openvswitch.org/ then join
Open vSwitch Community by
subscribing related mail listing such as http://mail.openvswitch.org/mailman/listinfo/discuss
Alex
----- Original Message ----- From: "yue wang" <heuye.wang@gmail.com> To: libvirt-users@redhat.com Sent: Thursday, April 12, 2012 3:35:00 PM Subject: [libvirt-users] help:any docs for open vswitch supporting?
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.
Thanks, Heuye _______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

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@nicira.com> 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
participants (5)
-
Alex Jia
-
Ansis Atteka
-
Laine Stump
-
Wang Yue
-
yue wang