Adding network device - kvm process having "too many open files"?

omarkb93

Member
Nov 21, 2022
18
2
8
When trying to add a new bridge to my VM in the web interface, I get a popup with the following error:

Code:
Parameter verification failed. (400)

net2: hotplug problem - VM 101 qmp command 'netdev_add' failed - could not open /dev/net/tun: Too many open files


I will probably just try to add the interface while the VM is off but it's an important VM so I will have to schedule this and it will result in some downtime for us. The error is VM specific - I can add the interface to other VMs no problem. I'm not sure what process qemu uses in the VM to add the network interface, but nothing in the VM that's not a postgres process (the VM is mainly a postgres server) is near the single process file limit of 1024, and the VM is not near it's root user limit of 235276. On the proxmox host, I do see a single process who's command is `kvm` with 1023 FDs open which seems very conspicuous. I assume this is the process launching the virtual machine, although I don't immediately see a way to verify this process is responsible for the vm in question. Is there anything I can do to restore the hotplug functionality without restarting the VM.

There's probably many things I don't understand how qemu does a hotplug like this, so please correct me if I misunderstand anything.