[Pkg-libvirt-maintainers] Bug#563502: Bug#563502: Workaround for auto USB with libvirt and qemu

Vincent Danjean Vincent.Danjean at ens-lyon.org
Sun Jan 31 15:55:45 UTC 2010


   Hi,

On 16/01/2010 23:11, Guido Günther wrote:
> Hi,
> I'm reopening this bug since it doesn't fix the device permissions for
> the auto connect scenario but only for the "connect before domain start"
> scenario.

   It is even worst: my VM does not start at all since 0.7.5-4 if my USB
product is not available when I start it (and generally, my USB printer
is poweroff when I start my VM (dhcp server, cups server, ...)).

   In /var/log/libvirt/qemu, I got :
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/ /usr/local/bin/qemu-kvm -S -M pc -enable-kvm -m 256 -smp 1 -name kooot -uuid cbdef2ca-7957-4dff-3273-0f18bf5ed6d9 -nographic -monitor unix:/var/lib/libvirt/qemu/kooot.monitor,server,nowait -boot c -drive file=/srv/kvm/kooot/disk-kooot-amd64.raw,if=virtio,index=0,boot=on -net nic,macaddr=06:a4:a9:60:00:00,vlan=0,model=virtio,name=virtio.0 -net tap,fd=39,vlan=0,name=tap.0 -net nic,macaddr=06:a4:a9:60:00:01,vlan=1,model=virtio,name=virtio.1 -net tap,fd=40,vlan=1,name=tap.1 -net nic,macaddr=06:a4:a9:60:00:02,vlan=2,model=virtio,name=virtio.2 -net tap,fd=41,vlan=2,name=tap.2 -serial pty -parallel none -usb -usbdevice host:03f0:5b11
libvir: error : internal error Did not find USB device 3f0:5b11
   I recall you that /usr/local/bin/qemu-kvm is only a wrapper that change
-usbdevice host:03f0:5b11 into -usbdevice host:auto:*.*:03f0:5b11 before
invoking /usr/bin/kvm

   It seems that, with the patch you added, the VM cannot be started at
all if USB products describe in the config file are not here.


   To workaround this problem, I removed any reference to my USB printer
in the XML config file (so libvirt does not know anything about it and
so it do not try to find it when starting the VM) and I modified my
wrapper to add the whole argument "-usbdevice host:auto:*.*:03f0:5b11"
when I start the good WM.

   In my use case, 0.7.5-4 is a regression from 0.7.5-3.

   Regards,
     Vincent

PS: 0.7.5-4 and 0.7.5-5 behave the same way wrt this bug.

-- 
Vincent Danjean                 Adresse: Laboratoire d'Informatique de Grenoble
Téléphone:  +33 4 76 61 20 11            ENSIMAG - antenne de Montbonnot
Fax:        +33 4 76 61 20 99            ZIRST 51, avenue Jean Kuntzmann
Email: Vincent.Danjean at imag.fr           38330 Montbonnot Saint Martin





More information about the Pkg-libvirt-maintainers mailing list