LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   KVM USB Passthrough to Win10 not fully working (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/kvm-usb-passthrough-to-win10-not-fully-working-4175678962/)

jke61 07-18-2020 08:38 AM

KVM USB Passthrough to Win10 not fully working
 
Hello,
using OpenSUSE Tumbleweed.
I have Win10 in a virtual machine. In Win10 I need a USB smartcard reader.
Before I was using Virtualbox. Most of the time the USB passthrough worked, but after every other update the virutal machine couldn't find my USB device (or any USB device) anymore. This happened the last time this week.

Therefore I tried to install KVM. Actually installation was quite easy. Configuring USB passthrough seemed also easy after searching a bit on the WWW.

Now, however, I have the following situation:
Win10 in the virtual machine sees the smartcard reader and it tells me its name (ReinerSCT comfort Reader).
I install the newest driver, also Win tells me it is the best driver.
No the Win10 device manager list the reader under Smartcard Reader, WITH and '!'. :-(

Looking for the reasocn it says:

Code:

Device cannot be started. (Code 10)
The Events tab says:
Code:

While starting the device USB\VID_0c4B&PID_0501\339666621 an error occured.
Code:

Drivername: oem2.inf
Class-GUID: {50dd5230-ba8a-11d1-bf5d-0000f805f530}
Service: cjusb
Lower Filter:
Top Filter:
Problem 0xA
Problemstatus: 0xC0000001

Searching for the error 0xA and KVM USB led me to one page (actually the only page):
HTML Code:

https://forums.unraid.net/topic/5022...in-windows-10/

where someone sais:

Code:

Stop your vm and edit it from the webGui. Near the bottom you will find a  USB mode option. Set that to USB 3. Save and start your vm and report  back your success!
However I have no clue where this "USB mode option" is. I tried to search with virsh, but couldn't find anything.

Anybody any idea?
(Or do I have to install Win10 in parallel to my Tumbleweed? :-( )

Kind regards,
Johannes

mostlyharmless 08-13-2020 04:36 PM

USB mode option is probably an UnRaid specific thing AFAIK. However, it might be that the USB controller model in your xml file isn't accurate. You don't say whether you are using qemu with a command line, but I assume since you mentioned virsh, that you are using libvirt and probably virt-manager. I would check your xml file. Look at this link: https://virtuozzosupport.force.com/s/article/000017379 in particular, since it matters if you are using the correct USB 1.1/2.0/3.0 model. If you can't get it working, post your xml file so more eyes can look at it. Hope that helps.


All times are GMT -5. The time now is 12:02 PM.