Remove default pci devices

Pavo

New Member
Apr 24, 2020
3
0
1
46
How can I remove default PCI devices that get added to the guest VM like USB controllers?

I have a ton of USB controllers I do not want added to the guest VM.
Code:
Bus  0, device  29, function 0:
    USB controller: PCI device 8086:2934
      PCI subsystem 1af4:1100
      IRQ 10.
      BAR4: I/O at 0xf0a0 [0xf0bf].
      id "uhci-1"
Bus  0, device  29, function 1:
    USB controller: PCI device 8086:2935
      PCI subsystem 1af4:1100
      IRQ 10.
      BAR4: I/O at 0xf080 [0xf09f].
      id "uhci-2"
Bus  0, device  29, function 2:
    USB controller: PCI device 8086:2936
      PCI subsystem 1af4:1100
      IRQ 18.
      BAR4: I/O at 0xf060 [0xf07f].
      id "uhci-3"
Bus  0, device  29, function 7:
    USB controller: PCI device 8086:293a
      PCI subsystem 1af4:1100
      IRQ 19.
      BAR0: 32 bit memory at 0xc1625000 [0xc1625fff].
      id "ehci"
 
Only by starting the VM manually, eg. qm showcmd <vmid> --pretty.
 
Actually figured out how to do it by removing them from the /usr/share/qemu-server/pve-q35-4.0.cfg file.
just note that your changes will be overwritten with every update of the qemu-server package