Jump to content

[SOLVED] Wanted: Best practice - USB-Devices


Recommended Posts

Posted (edited)

Hi there,

 

I need your help for my Win10 Gaming VM. 

The set up works fine including passthroughing the RTX2060 Super. But now I struggle to get my keyboard/mouse up and running. 

Maybe the solution is quiet simple - but I seem to be thick.

 

First I need to describe my environment, so that you can understand my goal / challenge:)

 

  • unRaid server is located in the basement. 
    • Running a Windows10 gaming VM with passthrough GPU (RTX 2060 Super) and passthrough NVME drive.
  • MacMini with my LG display (UWQHD) is located in the living room
    • LG display got two inputs - so my MacMini and the WindowsVM (or the RTX2060s) are always connected and I just need to change the input channel.
  • 15m HDMI cable connection form unRaid to my LG display
    • Note: Parsec or any other gaming stream solution is prohibited due to a max. resolution of 1080p based on my current hardware.
      Anything above (and I need a 3440x1440) can't be handled without spending amounts of money for new hardware --> nope!
  • 15m USB 3.0 cable connection from unRaid to my little side table (place of my MacMini and all peripherals like keyboard, mouse, headphones)
    • At the end of the 15m USB is an active USB3.0 Hub, to make sure, that all attached peripherals got enough power

 

Goal to achieve:

Only using one keyboard, one mouse and one headset for controlling/sound the MacMini and the Windows10 VM

 

Previous knowledge: 

First try:

If I connect the USB3 Hub to the 15m cable - and then go to the vm-configuration - I'm possible to set the checkboxes to my keyboard, mouse and headphones. 

BUT - as soon as i shut down my vm and reconnect them to my MacMini, I'm not able to start the vm again, with the activated checkboxes/devices.

A PCI-Error PopUp appears immediately - maybe because the pci address changing due to the disconnect and reconnect.

 

Second try:

My next idea was, that i passthrough the ASMedia USB controller from my mainboard.

Luckily I got two internal usb controllers. The one from my Intel Z170 chipset (with the unraid usb dongle) and another from ASMedia - so that seems to be a solution.

But when I connect the USB-Hub to the USB cable (connected to the ASMedia USB-Port) my Win10 VM wont show any new devices. No keyboard, no mouse - nothing. 

 

And thats it -- I dont have a clue how I can solve that problem. 

I dont want to buy a second keyboard, mouse and headset to be able to game with my vm - and I dont want to repair the vm-xml everytime (if this maybe a solution for my first try described above)

Hopefully there is any comfortable solution for this.

 

Thanks for any hints and tricks. Have a nice weekend. 

 

Edited by Maddeen
Posted

I was wondering before buying it, but yes - it works stable. But you must use an active USB3 Hub at the end, to make sure that there is another power.

 

I used it for hours playing via my VM (as described above) no problems.

Just looking for the best/comfortable way for dis/re-connecting my three devices.

For now I delete my VM and build a new one everytime - that's not smart :( 

Posted (edited)
22 minutes ago, Maddeen said:

I was wondering before buying it, but yes - it works stable. But you must use an active USB3 Hub at the end, to make sure that there is another power.

 

I used it for hours playing via my VM (as described above) no problems.

Just looking for the best/comfortable way for dis/re-connecting my three devices.

For now I delete my VM and build a new one everytime - that's not smart :( 

Note that.

 

Does you passthrough USB controller thr vfio-pci method ?

 

 

2 hours ago, Maddeen said:

But when I connect the USB-Hub to the USB cable (connected to the ASMedia USB-Port) my Win10 VM wont show any new devices. No keyboard, no mouse - nothing. 

 

Then what means of "I used it for hours playing via my VM (as described above) no problems." but now not work Win10 VM.

 

Seems problem are when VM restart or device were hotplug. BTW could you try does same problem happen without long-distance cable first.

Edited by Benson
  • Like 1
Posted

Ok - i think i found the problem. The USB3 ports (HS05-06/SS05-06 - see image below) seems not to passthrough correctly. 

  • First I attached a usb thumb drive at the USB3 port directly - nothing
  • Next I attached the same usb drive at the USB2 port - immediately recognized by the VM
  • Next I attached the same usb drive at the end of my 15m cable - immediately recognized by the VM

So my main problem is solved - everything works now exactly as I want. Thanks for this tip.

But now I have another challenge because I don't understand, why the USB2 port is working but the USB3 is not. 

The USB3 port is definitely working - as you can see the connected USB thumb drive (Alcor Micro Corp. Flash Drive (058f:6387))

Do you have any idea? 

 

Please find attached the vfio bindings, the vm-configuration and a screenshot from the manual

205096068_Bildschirmfoto2020-07-12um14_09_06.thumb.png.e0dbf34e5f399631d8fcea999629b27e.png

 

601644343_Bildschirmfoto2020-07-12um15_19_29.png.92e75d5c8af73483bac0132697416426.png

 

 

ASMedia USB Controller ports are:

HSxx (USB Type B) --> This port working fine for passthrough

HSxx (USB Type C) --> cant be checked because I got no Type-C device

HS05 / SS05 --> This port not working - whether directly (USB drive direct connected to port) nor via the long usb cable and active USB-hub

HS06 / SS06 --> This port not working - whether directly (USB drive direct connected to port) nor via the long usb cable and active USB-hub

ASUS_Hero_VIII_001.thumb.jpeg.38673279ba97c3b87798df44aec380e4.jpeg

Posted (edited)

You have two USB controller, only ASMEDIA was passthrough by VFIO-PCI

 

3.PNG.bcbaff15563afed638d4d62e62a3a4e7.PNG

 

That means only typc-c and the upper port ( RED one ) are come from ASMEDIA. Other 14 ports are come from Chipset.

 

As you haven't passthrough Chipset USB controller, in fact you can't because Unraid boot USB also attach.

 

So, below is normal

HS05 / SS05 --> This port not working - whether directly (USB drive direct connected to port) nor via the long usb cable and active USB-hub

HS06 / SS06 --> This port not working - whether directly (USB drive direct connected to port) nor via the long usb cable and active USB-hub

 

And that's why

HSxx (USB Type B) --> This port working fine for passthrough

HSxx (USB Type C) --> cant be checked because I got no Type-C device

Edited by Benson
Posted

Where do you got those information? Sure that you got the ASUS HERO VIII ?

My manual got a complete different information.

 

As you can see below in the screenshot it says

Quote

ASMedia® USB 3.0 controller - supports ASUS USB 3.1 Boost:

- 2 x USB 3.0 ports (at back panel [blue])

ASMedia® USB 3.1 controller - supports ASUS USB 3.1 Boost:

- 2 x USB 3.0 ports (1 Type-A [red] and 1 Type-C at back panel [black])

 

And if you compare it to my back panel screen here - those four usb-ports should be ASMedia

 

1618561289_Bildschirmfoto2020-07-12um20_04_27.thumb.png.1623585f150b785140c06179adf13197.png

 

695260476_Bildschirmfoto2020-07-12um19_58_00.png.676ce5baa95096530255601a159cd080.png

Posted

ohhh man... i checked the german and french manuals as well. All saying, that ASMedia provides 4 ports. 

Only the specs you linked saying different things...

 

Is there any chance to validate it??
Maybe through the connected usb thumb drive?

Any cli-commands where i can see, over which controller the usb thumb drive is running? 

Posted (edited)
3 minutes ago, Maddeen said:

Maybe through the connected usb thumb drive?

Yes, remove USB controller passthrough and verify again.

 

Pls note, as mention ASM1142 are 2 ports only.

Edited by Benson

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...