Bug#522310: [Pkg-libvirt-maintainers] Bug#522310: virt-manager: recognizing USB devices requires restart of libvirt

2009-04-07 Thread Andreas Unterkircher

I tried again.

lsusb shows up the newly plugged in device
(Aladdin Knowledge Systems HASP v0.06):

u...@srv-mfm-vm02:~$ sudo lsusb
Bus 006 Device 003: ID 03f0:1327 Hewlett-Packard
Bus 006 Device 002: ID 03f0:1027 Hewlett-Packard
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0529:0001 Aladdin Knowledge Systems HASP v0.06
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


virsh nodedev-list at the same time :

virsh # nodedev-list
error: Failed to count node devices
error: this function is not supported by the hypervisor: virNodeNumOfDevices


after a restart of libvirtd it is working:

u...@srv-mfm-vm02:~$ sudo virsh nodedev-list
computer
net_00_1f_29_5d_dd_14
net_00_1f_29_5d_dd_15
net_00_1f_29_5d_dd_16
net_00_1f_29_5d_dd_17
net_00_21_5a_cf_e7_aa
net_00_21_5a_cf_e7_ac
pci_1002_515e
pci_103c_3230
pci_103c_3230_0
pci_103c_3300
pci_103c_3302
pci_111d_8018
pci_111d_8018_0
pci_111d_8018_1
pci_1166_103
pci_1166_103_0
pci_14e4_164c
pci_14e4_164c_0
pci_8086_10bc
pci_8086_10bc_0
pci_8086_10bc_1
pci_8086_10bc_2
pci_8086_244e
pci_8086_25d8
pci_8086_25e2
pci_8086_25e3
pci_8086_25e5
pci_8086_25e7
pci_8086_25f0
pci_8086_25f0_0
pci_8086_25f0_1
pci_8086_25f1
pci_8086_25f3
pci_8086_25f5
pci_8086_25f6
pci_8086_25f8
pci_8086_25f9
pci_8086_2670
pci_8086_2688
pci_8086_2689
pci_8086_268a
pci_8086_268b
pci_8086_268c
pci_8086_2690
pci_8086_2692
pci_8086_269e
pci_8086_3500
pci_8086_350c
pci_8086_3510
pci_8086_3514
pci_8086_3518
pci_e11_b203
pci_e11_b204
storage_serial_3600508b100104c39565743344e530005
storage_serial_3600508b100104d3953574b304a4b0008
storage_serial_3600508b100104d3953574b304a4b0009
storage_serial_KZ188921642
usb_device_1d6b_1__00_1d_0
usb_device_1d6b_1__00_1d_0_if0
usb_device_1d6b_1__00_1d_0_usbraw
usb_device_1d6b_1__00_1d_1
usb_device_1d6b_1__00_1d_1_if0
usb_device_1d6b_1__00_1d_1_usbraw
usb_device_1d6b_1__00_1d_2
usb_device_1d6b_1__00_1d_2_if0
usb_device_1d6b_1__00_1d_2_usbraw
usb_device_1d6b_1__00_1d_3
usb_device_1d6b_1__00_1d_3_if0
usb_device_1d6b_1__00_1d_3_usbraw
usb_device_1d6b_1__01_04_4
usb_device_1d6b_1__01_04_4_if0
usb_device_1d6b_1__01_04_4_usbraw
usb_device_1d6b_2__00_1d_7
usb_device_1d6b_2__00_1d_7_if0
usb_device_1d6b_2__00_1d_7_usbraw
usb_device_3f0_1027_noserial
usb_device_3f0_1027_noserial_if0
usb_device_3f0_1027_noserial_if1
usb_device_3f0_1027_noserial_usbraw
usb_device_3f0_1327_noserial
usb_device_3f0_1327_noserial_if0
usb_device_3f0_1327_noserial_usbraw
usb_device_529_1_noserial
usb_device_529_1_noserial_if0
usb_device_529_1_noserial_usbraw


Yes, hald is up too:

u...@srv-mfm-vm02:~$ ps ax | grep [h]ald
 6462 ?Ss 0:00 /usr/sbin/hald


Regards,
Andreas




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#522310: [Pkg-libvirt-maintainers] Bug#522310: virt-manager: recognizing USB devices requires restart of libvirt

2009-04-07 Thread Guido Günther
Hi Andreas,
On Tue, Apr 07, 2009 at 10:03:34AM +0200, Andreas Unterkircher wrote:
 virsh # nodedev-list
 error: Failed to count node devices
 error: this function is not supported by the hypervisor: virNodeNumOfDevices
I'm seeing the same when I start /etc/init.d/libvirt-bin first, then
/etc/init.d/hal. We'll have to move the libvirt-bin start after hal.
I'll adjust the init.d links and LSB header accordingly.
Thanks for reporting back,
Cheers,
 -- Guido



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#522310: [Pkg-libvirt-maintainers] Bug#522310: virt-manager: recognizing USB devices requires restart of libvirt

2009-04-03 Thread Guido Günther
On Thu, Apr 02, 2009 at 07:28:14PM +0200, Andreas Unterkircher wrote:
 Not really sure if that problems more belong to virt-manager or libvirt0.
 If I attach a USB device (crypto dongle, data stick, ...) it does not
 shine up in
Could you try to reproduce with virsh nodedev-list to check? If it
doesn't show up there (without restart) it won't in virt-manager either.
You do have hal running?

Unplug and replug of USB devices works fine on squeeze here (looking at
the dependencies below you're running on Lenny, but that shouldn't make
a difference). 
Cheers,
 -- Guido



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org