Error creating virtual network: invalid network pointer in no network with matching uuid

Bug #368653 reported by Craig
66
This bug affects 14 people
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: virt-manager

When I attempt to create a virtual network in virt-manager, I get an error that reads:
"Error creating virtual network: invalid network pointer in no network with matching uuid

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 589, 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 586, in XMLDesc
    if ret is None: raise libvirtError ('virNetworkGetXMLDesc() failed', net=self)
libvirtError: invalid network pointer in no network with matching uuid"

I'm attaching a screenshot of the exact forms and the values I entered.

Revision history for this message
Craig (candrews-integralblue) wrote :
Revision history for this message
Adam (ilredil) wrote :

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.

Revision history for this message
Scott MacDonald (illynova) wrote :

Also having this problem, Ubuntu 9.10.

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

Revision history for this message
Terence Loo (terence-tlc) wrote :

Ubuntu Desktop 9.10 64bit
2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux

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

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

This is now working with virt-manager 0.8.6 in Natty. I am closing this bug as Fix Released. Thanks!

Changed in virt-manager (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.