qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1643342] Re: not able to passthrough mouse / keyboard


From: marius
Subject: [Qemu-devel] [Bug 1643342] Re: not able to passthrough mouse / keyboard
Date: Mon, 21 Nov 2016 18:05:04 -0000

** Description changed:

  After upgrading from qemu version 2.6.2 to 2.7.9 I can't boot my vm
  anymore. I get this error:
  
  qemu-system-x86_64: -usbdevice host:046d:c227: could not add USB device
  'host:046d:c227'
  
  This happens with every usb-device I tried. Works in 2.6.2 without any 
errors. (also tried in 2.7.0, same error)
  I use the following script:
  
  qemu-system-x86_64 \
  -enable-kvm \
  -m 16392 \
  -cpu host,kvm=off \
  -smp 4,sockets=1,cores=2,threads=2,maxcpus=4 \
  -usb -usbdevice host:046d:c227 -usbdevice host:046d:c226 \
  -vga none \
  -device vfio-pci,host=01:00.0,multifunction=on \
  -device vfio-pci,host=01:00.1 \
  -drive 
if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd
 \
  -drive if=pflash,format=raw,file=/tmp/my_vars.fd \
  -device virtio-scsi-pci,id=scsi \
  -drive file=/var/iso/win10.iso,id=isocd,format=raw,if=none -device 
scsi-cd,drive=isocd \
  -drive 
file=/home/marius/images/windows10.img,id=disk,format=raw,if=none,cache=writeback
 -device scsi-hd,drive=disk \
  -drive file=/var/iso/virtio-win-0.1.126.iso,id=virtiocd,if=none,format=raw 
-device ide-cd,bus=ide.1,drive=virtiocd
  
  lsusb output:
  Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 001 Device 009: ID 046d:c227 Logitech, Inc. G15 Refresh Keyboard
  Bus 001 Device 008: ID 046d:c226 Logitech, Inc. G15 Refresh Keyboard
  Bus 001 Device 007: ID 046d:c223 Logitech, Inc. G11/G15 Keyboard / USB Hub
  Bus 001 Device 005: ID 8087:0a2b Intel Corp.
  Bus 001 Device 003: ID 1038:1384 SteelSeries ApS
  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
+ 
+ EDIT: Finally found a solution: If you build qemu manually, you have to
+ compile it with --enable-libusb and --enable-usb-redir, otherwise usb
+ support is disabled.

** Changed in: qemu
       Status: New => Invalid

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1643342

Title:
  not able to passthrough mouse / keyboard

Status in QEMU:
  Invalid

Bug description:
  After upgrading from qemu version 2.6.2 to 2.7.9 I can't boot my vm
  anymore. I get this error:

  qemu-system-x86_64: -usbdevice host:046d:c227: could not add USB
  device 'host:046d:c227'

  This happens with every usb-device I tried. Works in 2.6.2 without any 
errors. (also tried in 2.7.0, same error)
  I use the following script:

  qemu-system-x86_64 \
  -enable-kvm \
  -m 16392 \
  -cpu host,kvm=off \
  -smp 4,sockets=1,cores=2,threads=2,maxcpus=4 \
  -usb -usbdevice host:046d:c227 -usbdevice host:046d:c226 \
  -vga none \
  -device vfio-pci,host=01:00.0,multifunction=on \
  -device vfio-pci,host=01:00.1 \
  -drive 
if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd
 \
  -drive if=pflash,format=raw,file=/tmp/my_vars.fd \
  -device virtio-scsi-pci,id=scsi \
  -drive file=/var/iso/win10.iso,id=isocd,format=raw,if=none -device 
scsi-cd,drive=isocd \
  -drive 
file=/home/marius/images/windows10.img,id=disk,format=raw,if=none,cache=writeback
 -device scsi-hd,drive=disk \
  -drive file=/var/iso/virtio-win-0.1.126.iso,id=virtiocd,if=none,format=raw 
-device ide-cd,bus=ide.1,drive=virtiocd

  lsusb output:
  Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 001 Device 009: ID 046d:c227 Logitech, Inc. G15 Refresh Keyboard
  Bus 001 Device 008: ID 046d:c226 Logitech, Inc. G15 Refresh Keyboard
  Bus 001 Device 007: ID 046d:c223 Logitech, Inc. G11/G15 Keyboard / USB Hub
  Bus 001 Device 005: ID 8087:0a2b Intel Corp.
  Bus 001 Device 003: ID 1038:1384 SteelSeries ApS
  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

  EDIT: Finally found a solution: If you build qemu manually, you have
  to compile it with --enable-libusb and --enable-usb-redir, otherwise
  usb support is disabled.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1643342/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]