Connect more than 5 flash drives to a virtual machine

k.smirnov

New Member
May 30, 2025
2
0
1
Hello. How can I connect more than 5 flash drives to one virtual machine? At the moment, the version is the latest (Virtual Environment 8.4.1)
 
Hi. How exactly are you trying to connect them and how is it failing? Are you seeing any error messages?
 
I connect them via USB connection. I have 6 flash drives, 5 are attached, and then adding USB does not become active and I can not add 6
 
If I understand you correctly, you cannot use Add -> USB Device in the VM hardware tab since the field is disabled?

I'm not aware of any hard limit regarding the number of USB devices one can attach. You could alternatively try to attach it using qm set. You can use lsusb to find the device ID of the flash drive. The output should look something like this:

Code:
Bus 002 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU Tablet
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

You could not attach the device as follows:
Code:
qm set <VM ID> -usb5 host=<device ID>