podman fails to find netavark
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- podman 4+
Issue
- When changing network backend from cni to netavark, podman throws the following error,
# podman ps
Error: could not find "netavark" in one of [/usr/local/libexec/podman /usr/local/lib/podman /usr/libexec/podman /usr/lib/podman]. To resolve this error, set the helper_binaries_dir key in the `[engine]` section of containers.conf to the directory containing your helper binaries.
Resolution
-
netavark is the network back end introduced from podman 4. Default is CNI and network backend can be changed to "netavark" as per requirement
-
Installing netavark manually should fix the issue
# dnf install podman-plugins netavark -y
- Retry now and there shouldn't be any errors,
# podman info | grep networkBackend
networkBackend: netavark
Root Cause
- network_backend was changed to "netavark" and host is unable to recognize this option since the package is not installed
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments