Re: help:any docs for open vswitch supporting?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thank you very much for all your answers!
it's almost clear to me.


2012/4/16 Ansis Atteka <aatteka@xxxxxxxxxx>


2012/4/12 Wang Yue <heuye.wang@xxxxxxxxx>
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@xxxxxxxxxx> 写道:

> http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=WHY-OVS;hb=HEAD
>
> 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@xxxxxxxxx>
> To: libvirt-users@xxxxxxxxxx
> Sent: Thursday, April 12, 2012 3:35:00 PM
> Subject: 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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvirt-users

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users


_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux