USB Passthrough Seen as Root Hub in VM
-
@krakers Thanks for your answer. The behavior is very strange, the device is attached on start of the vm but status changed to 'not attached' after boot of the vm, few seconds later.
-
I use VirtualHere on a Raspberry Pi as a workaround.
-
@uwood Smart workaround. Unfortunately you have to pay for VirtualHere and use another system to connect the device. It will be nice to have the USB devices working on the hypervisor.
-
@uwood I also switched to use this. I had nothing but trouble with USB passthrough. While initially working all hell broke loose when I detached a host from the pool, with the USB device appearing multiple times in GUI and CLI..... had to reinstall both hosts and pool from scratch.
Xen is just not made for this!
-
@manilx did you try to install the server part on the hypervisor? Is there a free plan for the software?
-
@infodavid I had a dedicated VM with passtrough on xcpng serving other VM's.
BUT: you can't snapshot a VM with passthrough, so you cannot backup if it is running. I also found that you can't migrate it.
It's just NOT worth the trouble. Install the server somewehere else. You can use it free for up to 3 USB connections (I think. Just check the website). -
@manilx so, solutions are:
- use a client / server solution perhaps on another system,
- Install some software directly on the hypervisor.
-
@infodavid Install VirtualHere server on another PC/Pie. I have it on a proxmox VM (proxmox has no issues with passthrough).
Install VirtualHere clients on the VM's in xcpng that need the USB devices.
Sleep well and backup/snapshot/migrate at will
-
@manilx 0k. The device is an ups so I'll try first to install a server software on the hypervisor. I'm not very enthusiastic about adding another system just to plug that ups.
-
Finally, I follow an existing topic and configure nut-server on the hypervisor to access the ups via usb.
I know that Olivier is not fully aligned with the fact that the host is modified but IMO it is an acceptable change on my XCP-NG host.