root@proxmox:/var/log# for pid in $(pidof kvm); do prlimit -p $pid | grep NOFILE; ls -1 /proc/$pid/fd/ | wc -l; doneNOFILE max number of open files 4096 524288 files297NOFILE max number of open files 4096 524288 files46NOFILE max number of open files 4096 524288 files46NOFILE max number of open files 4096 524288 files46NOFILE max number of open files 4096 524288 files41root@proxmox:/var/log#
#<domain> <type> <item> <value>##* soft core 0#root hard core 100000#* hard rss 10000#@student hard nproc 20#@faculty soft nproc 20#@faculty hard nproc 50#ftp hard nproc 0#ftp - chroot /ftp#@student - maxlogins 4root soft nofile 4096# End of fileroot@proxmox:/etc/security/limits.d#
root@proxmox:/etc/security/limits.d# diff /etc/systemd/system.conf /root/system.conf.20240126 67,70d66< #< #added to see if prevents OPNsense VM from hanging/crashing< DefaultLimitNOFILE=4096:524288< #root@proxmox:/etc/security/limits.d#
Aug 7, 2023#32showiproute said:Doubling everything seems to solve the problem also.My configuration now includes queue=8 again and the VM didn't crash.Question is why was it running with PVE7.x while PVE8 needs some manual config changes.Fiona (Proxmox Staff Member)QEMU might've changed internal things and uses more file descriptors now. And the OPNSense update might've changed interaction with QEMU and the host too. Likely, you were already near the limit before, but didn't quite hit it.