If they were physical machines, you would get a USB switch that allows you to connect all machines to the same USB device and select which machines gets the device via a knob or buttons.I would like to pass an USB device (here specifically a smart card reader) that is connected to a PVE to several Windows VMs in parallel.
Use USB passthrough like normal but only to one VM at a time? Make sure to enable USB in the VM Options > Hotplug. Here is more information about USB passthrough: https://pve.proxmox.com/wiki/USB_Devices_in_Virtual_MachinesI have 7 VMs here that want to use a smart card reader. However, only one at a time. Only the smart card should be changed on the reader of the PVE server. I don't want to connect 7 readers via hub.
So only pass the USB ID to the desired VMs? It would be great if it worked. That would be my ideal solution too. I'll try it.Use USB passthrough like normal but only to one VM at a time? Make sure to enable USB in the VM Options > Hotplug. Here is more information about USB passthrough: https://pve.proxmox.com/wiki/USB_Devices_in_Virtual_Machines
Or write a script that moves the USB passthrough of the device from one VM to another (using command-line or Proxmox REST API).