Hi there,
I'm trying to use virtiofs in Proxmox 9.1.0 with several Ubuntu guests in various versions. Periodically, I see the following error in journalctl:
On checking the docs for rlimit-nofile we get:
This all makes sense, and matches the error.
My question is how can I add additional parameters to virtiofsd when it is launched by proxmox?
I have no problem checking and updating fs.file-max and soft and hard ulimits in both host and guests.
This specifically happens when I am attempting to run rsnapshot with a mounted virtiofs directory as the destination backup folder.
As a workaround, I have currently passed through the backup drive directly to the guest vm, and it works well that way, However, I have a couple of cases where it would be useful to give read-only direct access to the backups to other vms.
Thanks in advance, P.
I'm trying to use virtiofs in Proxmox 9.1.0 with several Ubuntu guests in various versions. Periodically, I see the following error in journalctl:
Code:
virtiofsd[1305]: No more file descriptors available to the guest (0 available out of 999390 initially), consider increasing the --rlimit-nofile value
On checking the docs for rlimit-nofile we get:
Code:
--rlimit-nofile <RLIMIT_NOFILE>
Set maximum number of file descriptors (0 leaves rlimit unchanged) [default: min(1000000, '/proc/sys/fs/nr_open')]
This all makes sense, and matches the error.
My question is how can I add additional parameters to virtiofsd when it is launched by proxmox?
I have no problem checking and updating fs.file-max and soft and hard ulimits in both host and guests.
This specifically happens when I am attempting to run rsnapshot with a mounted virtiofs directory as the destination backup folder.
As a workaround, I have currently passed through the backup drive directly to the guest vm, and it works well that way, However, I have a couple of cases where it would be useful to give read-only direct access to the backups to other vms.
Thanks in advance, P.