i'm using libvirt 1.2.2

On Fri, Feb 27, 2015 at 12:02 AM, Ansis Atteka <[email protected]> wrote:

> On Wed, Feb 25, 2015 at 11:25 PM, jayakeerthi k
> <[email protected]> wrote:
> > Also edited #virsh net-edit default
> >
> >
> >
> > On Thu, Feb 26, 2015 at 12:40 PM, 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
>
> Can you tell us which libvirt version you are using?
>
> After looking into libvirt source code it seems that "Unable to add
> bridge ..." error message indicates that libvirt is treating bridge
> 1511 as Linux Bridge and not as OVS bridge:
>
> in src/util/virnetdevbridge.c:
>
>     if (ioctl(fd, SIOCBRADDIF, &ifr) < 0) {
>         virReportSystemError(errno,
>                              _("Unable to add bridge %s port %s"),
> brname, ifname);
>         goto cleanup;
>     }
>
> The code that adds interface to OVS bridge is in
>
> src/util/virnetdevopenvswitch.c
>
> and in case of failure the error message would look like:
>
>     if (virCommandRun(cmd, NULL) < 0) {
>         virReportError(VIR_ERR_INTERNAL_ERROR,
>                        _("Unable to add port %s to OVS bridge %s"),
>                        ifname, brname);
>         goto cleanup;
>     }
>
>
> As you can see you are missing OVS keyword in your error message! So
> this is not an OVS bug but rather:
> 1. misconfiguration (i.e. you really haven't edited VM's XML file
> correctly)
> 2. you are using old libvirt (OVS support was introduced in libvirt 0.9.11)
> 3. this is a libvirt bug (if 1. and 2. is not the case).
>
>
>
> >>
> >> 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"
> >>
> >>
> >> 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
> >
>
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to