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

jayakeerthi k <[email protected]> wrote:

> Hi,
> i tried with virsh but again issue.
> 
> perf@shakthi:/etc/libvirt/qemu$ virsh start 1511_secondary
> error: Failed to start domain 1511_secondary
> error: Unable to add bridge 1511 port vnet0: Operation not supported
> 
> domain xml file contents
>  <interface type='bridge'>
>       <virtualport type='openvswitch'/>
>       <mac address='52:54:00:f1:51:47'/>
>       <source bridge='1511'/>
>       <model type='virtio'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x00' 
> function='0x0'/>
>     </interface>
> 
> output of ovs-vsctl show
> 54ee0814-7243-42df-8a04-17b028f07f99
>     Bridge "1511"
>         Port "1511pr"
>             Interface "1511pr"
>                 type: internal
>         Port "1511"
>             Interface "1511"
>                 type: internal
>         Port "em2"
>             Interface "em2"
>     l
>     ovs_version: "2.0.2"

[SL] The domain XML configuration looks correct, so I'm not sure what's
happening on your system. I saw a response from someone else indicating that
the error message implies libvirt is still not using OVS, so perhaps there
is an issue with your libvirt installation? At this point, I think I would
remove all Linux bridges, remove all OVS bridges, and start from a clean
slate to see if the error continues to persist. Be aware that girt-manager
may not have native/built-in support for OVS bridges, so you may have to
manually edit the domain XML to include "<virtualport type='openvswitch'>"
yourself after creating a new VM.

> thax,
> jayakeerthi
> 
> On Thu, Feb 26, 2015 at 12:15 PM, Scott Lowe <[email protected]> wrote:
> Please see my responses inline, prefixed by [SL].
> 
> jayakeerthi k <[email protected]> wrote:
> 
> > Hi,
> > i couldn't able to resolve the issue with above steps.i got the following 
> > error in virt-manager.
> >
> > Error starting domain: Unable to add bridge 1511 port vnet0: Operation not 
> > supported
> >
> > Traceback (most recent call last):
> >   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in 
> > cb_wrapper
> >     callback(asyncjob, *args, **kwargs)
> >   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 117, in tmpcb
> >     callback(*args, **kwargs)
> >   File "/usr/share/virt-manager/virtManager/domain.py", line 1162, in 
> > startup
> >     self._backend.create()
> >   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 866, in create
> >     if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
> > libvirtError: Unable to add bridge 1511 port vnet0: Operation not supported
> 
> 
> [SL] Jayakeerthi, does an OVS bridge named "1511" exist? If not, then you'll
> see an error.
> 
> Did you edit the libvirt domain XML to be sure to tell libvirt that you're
> using OVS? If not, then you'll see an error.
> 
> It's entirely possible (I don't use virt-manager, so I don't know for
> certain) that this is a virt-manager issue. Have you tried using virsh
> instead of virt-manager?
> 
> 
> > Thanking you,
> > jayakeerthi k
> >
> >
> > On Mon, Feb 23, 2015 at 10:53 PM, Scott Lowe <[email protected]> 
> > wrote:
> > Please see my responses inline, prefixed by [SL].
> >
> > jayakeerthi k <[email protected]> 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 <[email protected]> 
> > > wrote:
> > > Please see my responses inline, prefixed by [SL].
> > >
> > > jayakeerthi k <[email protected]> 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 <[email protected]> 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

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to