[pve-devel] [PATCH qemu-server 1/1] fix #4507 : increase qemu max openfiles limit
Alexandre Derumier
aderumier at odiso.com
Sun Dec 10 15:49:40 CET 2023
---
PVE/QemuServer.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 2063e66..eba26f3 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5991,6 +5991,12 @@ sub vm_start_nolock {
eval { PVE::QemuServer::PCI::reserve_pci_usage($pci_reserve_list, $vmid, undef, $pid) };
warn $@ if $@;
+ #increase OpenFile limit
+ eval {
+ run_command(['/usr/bin/prlimit', '--nofile=524288:524288', "--pid", $pid]);
+ };
+ warn $@ if $@;
+
if (defined($res->{migrate})) {
print "migration listens on $res->{migrate}->{uri}\n";
} elsif ($statefile) {
--
2.39.2
More information about the pve-devel
mailing list