[libvirt PATCH] util: tell users that memory locking ulimit is too low for BPF
Pavel Hrdina
phrdina at redhat.com
Tue Mar 16 19:40:31 UTC 2021
On Tue, Mar 16, 2021 at 05:06:33PM +0000, Daniel P. Berrangé wrote:
> If running libvirtd via systemd, it gets a 64 MB memlock limit, but if
> running from the shell it will only get 64 KB on a Fedora 33 system.
> The latter low limit causes any attempt to use BPF to fail and it is
> not obvious why.
>
> This improves the error message thus:
>
> # virsh -c lxc:/// start sh
> error: Failed to start domain 'sh'
> error: internal error: guest failed to start: Failure in libvirt_lxc startup: failed to initialize device BPF map; locked memory limit for libvirtd probably needs to be raised: Operation not permitted
>
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
> src/util/vircgroupv2devices.c | 14 +++++++++++---
> 1 file changed, 11 insertions(+), 3 deletions(-)
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210316/6a9bcbbb/attachment-0001.sig>
More information about the libvir-list
mailing list