USB emulation - no option to disable

emunt6

Active Member
Oct 3, 2022
156
28
28
Hi!
Is there any future plan to add USB emulation to disable/remove per VM?

usecase:
QEMU USB device causes high context-switching (interrupts) inside a VM ( ex. freebsd ) thus high cpu load on the HOST.
VM doesn't need to have emulated USB controller inside the VM, thus saving resources on the HOST's CPU.

workaround: ( pve 6.x )
Patch a PVE default USB controller ( this is cannot be removed otherwise - hardcoded )
Code:
--> /usr/share/perl5/PVE/QemuServer.pm
---------------------------------------------
    ## my @usbcontrollers = PVE::QemuServer::USB::get_usb_controllers($conf, $bridges, $arch, $machine_type, $usbdesc->{format}, $MAX_USB_DEVICES);
    my @usbcontrollers;
---------------------------------------------


- where you don't need USB - ( this needed to add )
--> /etc/pve/qemu-server/XXX.conf
---------------------------------------------------
tablet: no
---------------------------------------------------


- where you need USB - ( this needed to add )
--> /etc/pve/qemu-server/XXX.conf
---------------------------------------------------
args: -device piix3-usb-uhci -device usb-kbd -device usb-mouse
tablet: no
---------------------------------------------------
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!