I also have this same issue, but I got a slightly different stacktrace...
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/createnet.py", line 301, in finish
    self.conn.create_network(xml)
  File "/usr/share/virt-manager/virtManager/connection.py", line 743, in 
create_network
    self.nets[uuid] = vmmNetwork(self.config, self, net, uuid, False)
  File "/usr/share/virt-manager/virtManager/network.py", line 36, in __init__
    self._xml = self.net.XMLDesc(0)
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 594, in XMLDesc
    if ret is None: raise libvirtError ('virNetworkGetXMLDesc() failed', 
net=self)
libvirtError: invalid network pointer in no network with matching uuid


Line 594 in my libvirt.py is:
if ret is None: raise libvirtError ('virNetworkGetXMLDesc() failed', net=self)


And to give some context, here's the whole function:
    def XMLDesc(self, flags):
        """Provide an XML description of the network. The description
          may be reused later to relaunch the network with
           virNetworkCreateXML(). """
        ret = libvirtmod.virNetworkGetXMLDesc(self._o, flags)
        if ret is None: raise libvirtError ('virNetworkGetXMLDesc() failed', 
net=self)
        return ret


I tried it again with a different description for my network and got a new 
stacktrace:
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/createnet.py", line 301, in finish
    self.conn.create_network(xml)
  File "/usr/share/virt-manager/virtManager/connection.py", line 744, in 
create_network
    self.nets[uuid].start()
  File "/usr/share/virt-manager/virtManager/network.py", line 71, in start
    self.net.create()
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 620, in create
    if ret == -1: raise libvirtError ('virNetworkCreate() failed', net=self)
libvirtError: cannot create bridge 'virbr0': Operation not permitted


My user is in the group "libvirtd" and I'm allowing myself to create bridges 
w/o a password via sudo.  From /etc/sudoers:
%libvirtd ALL=(ALL) NOPASSWD: /sbin/ifconfig, /usr/sbin/brctl, /usr/sbin/tunctl

I'm still looking for a fix or workaround to get my VM working in
bridged mode.

-- 
Error creating virtual network: invalid network pointer in no network with 
matching uuid
https://bugs.launchpad.net/bugs/368653
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to