Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
virt-manager: Error Creating virtual network - virNetworkDef
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
vrghost
n00b
n00b


Joined: 03 Oct 2003
Posts: 46
Location: London

PostPosted: Sat Jan 18, 2014 12:52 pm    Post subject: virt-manager: Error Creating virtual network - virNetworkDef Reply with quote

Getting the following issue when trying to create a virtual network in virt-manager. Not certain where to start looking even:



Code:

Error creating virtual network: this function is not supported by the connection driver: virNetworkDefineXML

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/createnet.py", line 1011, in finish
    self.conn.create_network(xml)
  File "/usr/share/virt-manager/virtManager/connection.py", line 775, in create_network
    net = self.vmm.networkDefineXML(xml)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3289, in networkDefineXML
    if ret is None:raise libvirtError('virNetworkDefineXML() failed', conn=self)
libvirtError: this function is not supported by the connection driver: virNetworkDefineXML


Should have all the network drivers in the kernel
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31351
Location: 56N 3W

PostPosted: Sat Jan 18, 2014 1:07 pm    Post subject: Reply with quote

vrghost,

Kernes support is required but not sufficient.
Code:
[ebuild   R    ] app-emulation/libvirt-1.2.0:0/1.2.0  USE="caps libvirtd lvm macvtap nfs nls numa parted policykit qemu udev vepa virt-network -audit -avahi -firewalld -fuse -iscsi -lxc -openvz -pcap -phyp -rbd -sasl (-selinux) -systemd -uml -virtualbox -xen" 0 kB


You need libvirt built with USE=virt-network too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
vrghost
n00b
n00b


Joined: 03 Oct 2003
Posts: 46
Location: London

PostPosted: Sat Jan 18, 2014 4:02 pm    Post subject: Reply with quote

Thank you very much, did the trick.
Is there a us one as well?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31351
Location: 56N 3W

PostPosted: Sat Jan 18, 2014 6:34 pm    Post subject: Reply with quote

vrghost,

I don't understand the question.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
vrghost
n00b
n00b


Joined: 03 Oct 2003
Posts: 46
Location: London

PostPosted: Sun Jan 19, 2014 11:38 am    Post subject: Reply with quote

Quote:
vrghost,

I don't understand the question.


That is thanks to the mighty predictive text. Is there one for usb as well,

Getting the following issue
Code:
unable to set user and group to '77:105' on '/dev/bus/usb/000/000': No such file or directory

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/addhardware.py", line 1168, in add_device
    self.vm.attach_device(self._dev)
  File "/usr/share/virt-manager/virtManager/domain.py", line 841, in attach_device
    self._backend.attachDevice(devxml)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 429, in attachDevice
    if ret == -1: raise libvirtError ('virDomainAttachDevice() failed', dom=self)
libvirtError: unable to set user and group to '77:105' on '/dev/bus/usb/000/000': No such file or directory

The address it should be is 003 017
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31351
Location: 56N 3W

PostPosted: Sun Jan 19, 2014 1:09 pm    Post subject: Reply with quote

vrghost,

I guess that /dev/bus/usb/000/000 does not exist for you or user 77 or group 105 do not exist.

Hmm ... I no longer have a /dev/bus/usb/000. The numbering starts at 001, that would be a problem.

When do you get the error ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
vrghost
n00b
n00b


Joined: 03 Oct 2003
Posts: 46
Location: London

PostPosted: Sun Jan 19, 2014 1:21 pm    Post subject: Reply with quote

OK, it seems like it may be a bug in virt-manager.

So, if the machine is running and I try to connect to the device (listed in lsusb as 003:011) I get that error message, but virt-manager knows in the listing that the device is 003:011

So, maybe easier if I explain step by step.
I connect the device (a Thorium Pacemaker MP3 player)
Check on the gentoo server that it is there, and it comes up as Bus 003 Device 017 (have disconnected it once or twice since yesterday, so new address)
Code:

v-ghost media # lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 017: ID 1d5e:a4a5 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 046d:c512 Logitech, Inc. LX-700 Cordless Desktop Receiver
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

(Device 1d5e:a4a5)

I go to the virtual machine, click Details -> Add Hardware -> USB Host device and there I can see it listed as
003:017 Linux 2.6.19.2 ....... File Backed Storage Gadget
I then click finish and I get the error message.

However, when I restarted the virtual machine for another reason, I then got a complaint about the device, and it had actually added it six times over, so removed all, added one and restarted and it worked. Even if I still got the error message about device 000/000
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum