[ovs-discuss] BUG

Scott Lowe scott.lowe at scottlowe.org
Mon Feb 23 17:23:01 UTC 2015


Please see my responses inline, prefixed by [SL].

jayakeerthi k <jayakeerthik82 at gmail.com> wrote:

> sorry for the delay,
> libvirt version is 1.2.2
> ovs_version: "2.0.2"
> i'm installing it through Virt-manager.
> xml file is
> 
> <snip>
> 
>     <interface type='bridge'>
>       <mac address='52:54:00:f1:51:47'/>
>       <source bridge='1511'/>
>       <model type='virtio'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
>     </interface>


[SL] This section is the issue. The guest domain (VM) is set to use a bridge ("1511"?), but you haven't specified "virtualport type=openvswitch", so Libvirt isn't able to properly communicate with OVS.

If you look at the example XML that I supplied here:

<http://blog.scottlowe.org/2012/11/12/libvirt-ovs-integration-revisited/>

then you can see a snippet of network XML configuration that *will* work with OVS. This should get you started down the right path.

Good luck!

> On Thu, Feb 19, 2015 at 10:47 PM, Scott Lowe <scott.lowe at scottlowe.org> wrote:
> Please see my responses inline, prefixed by [SL].
> 
> jayakeerthi k <jayakeerthik82 at gmail.com> wrote:
> 
> > OK..
> >
> > when i try to create vm i'm gettting error unable to add vnet0 port on the
> > bridge br3.
> 
> [SL] Jayakeerthi, can you share the following information to help us help
> you?
> 
> - The network portion of the domain XML configuration for your VM (obtained
> via 'virsh dumpxml <vm-name>'
> 
> - The versions of OVS and libvirt installed on your system
> 
> - The command(s) you are using to create and/or start the VM
> 
> Feel free to use a service like pastebin.com to share the domain XML
> configuration, if you'd like.
> 
> Thanks!
> 
> >> On Thu, Feb 19, 2015 at 10:01 AM, Ben Pfaff <blp at nicira.com> wrote:
> >>
> >> I don't think you can. KVM creates the port, OVS only handles switching.
> >>
> >>> On Thu, Feb 19, 2015 at 09:08:49AM +0530, jayakeerthi k wrote:
> >>>
> >>> how to create port's in openvswitch that can be assigned to vm created
> >>> with KVM?


--
Scott




More information about the discuss mailing list