Ok, I agree!
I've created a step by step workaround process.

Step 0. You encounter "husb: ctrl buffer too small" error message during
kvm start.

Step 1. Fix kvm bug in usb-linux.c source with this patch
diff --git a/usb-linux.c b/usb-linux.c
index ba8facf..122cdbf 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -113,7 +113,7 @@ struct ctrl_struct {
     uint16_t offset;
     uint8_t state;
     struct usb_ctrlrequest req;
- uint8_t buffer[2048];
+ uint8_t buffer[8192];
 };

 struct USBAutoFilter {

Step 2. Build kvm from source.

Step 3. If kvm GuestOS doesn't see your USB device: *uncheck* "Enable
advanced network functionality" on  (Start menu -> Settings ->
Connections -> USBtoPC) your USB device. (If this menu exists on your
device)

Step 4. Try to attach USB device to your GuestOS with similar command:
kvm -m 1024 -k hu -usb --usbdevice host:045e:00ce GuestOS.img
(lsusb command helps to figure out device ID)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/790145

Title:
  kvm husb: ctrl buffer too small

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to