From b30cb3fc5a097410a078664eef4c53815136566e Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Tue, 7 May 2024 23:26:50 +0300 Subject: [PATCH] ISO: Add 50-fs-inotify.conf to increase limits This avoids random failures starting kubevirt VMs like: {"component":"virt-handler","level":"error","msg":"Error starting vhost-net device plugin","pos":"device_controller.go:70","reason":"failed to creating a fsnotify watcher: too many open files","timestamp":"2024-05-06T12:59:30.009620Z"} Fixes #18831 --- .../aarch64/rootfs-overlay/etc/sysctl.d/50-fs-inotify.conf | 4 ++++ .../x86_64/rootfs-overlay/etc/sysctl.d/50-fs-inotify.conf | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 deploy/iso/minikube-iso/board/minikube/aarch64/rootfs-overlay/etc/sysctl.d/50-fs-inotify.conf create mode 100644 deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/etc/sysctl.d/50-fs-inotify.conf diff --git a/deploy/iso/minikube-iso/board/minikube/aarch64/rootfs-overlay/etc/sysctl.d/50-fs-inotify.conf b/deploy/iso/minikube-iso/board/minikube/aarch64/rootfs-overlay/etc/sysctl.d/50-fs-inotify.conf new file mode 100644 index 000000000000..e4697d577029 --- /dev/null +++ b/deploy/iso/minikube-iso/board/minikube/aarch64/rootfs-overlay/etc/sysctl.d/50-fs-inotify.conf @@ -0,0 +1,4 @@ +# Avoid failures with kubevirt vms +# /~https://github.com/kubernetes/minikube/issues/18831 +fs.inotify.max_user_instances = 8192 +fs.inotify.max_user_watches = 65536 diff --git a/deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/etc/sysctl.d/50-fs-inotify.conf b/deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/etc/sysctl.d/50-fs-inotify.conf new file mode 100644 index 000000000000..e4697d577029 --- /dev/null +++ b/deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/etc/sysctl.d/50-fs-inotify.conf @@ -0,0 +1,4 @@ +# Avoid failures with kubevirt vms +# /~https://github.com/kubernetes/minikube/issues/18831 +fs.inotify.max_user_instances = 8192 +fs.inotify.max_user_watches = 65536