For an experiment I'm trying to start as many VM's as possible through libvirt, however with a little over 1000 VM's running I get an error saying: "Failed to create pipe: Too many open files". Any idea of how to fix this?
I've set ulimit soft and high limits for all users to 4096, but when checking: /proc/'process pid of the libvirt daemon'/limits it still says the soft limit is 1024 (hard limit has been set to 4096). When checking the ulimit for any user through 'ulimit -Sn' or 'ulimit -Hn' the limits seems to be set as intended.
Adjust the value to taste (sysctl fs.file-max tells you the current value). The file /etc/sysctl.conf is used to set the configuration at boot.
Not the answer you're looking for? Browse other questions tagged ubuntu libvirt ulimit or ask your own question.