Closed andrewssobral closed 4 years ago
2020/04/03 13:34:52 ERROR: /usr/bin/nvidia-container-runtime: find runc path: exec: "runc": executable file not found in $PATH
This error definitely is not out of Podman, so I don't know how much we'll be able to help you. You may want to ask about it at https://github.com/NVIDIA/nvidia-container-runtime (I believe you may have already).
Thank you @mheon for your quick feedback. Yes, I also posted my issue here: https://github.com/NVIDIA/nvidia-container-runtime/issues/85 So, I will close this issue.
If it does turn out to be a Podman issue from what you learn over there, feel free to reopen
@jamescassell Awesome! It definitely fixes rootless.
Unfortunately now rooted spits out an error :( There must be an even better way out there somewhere.
Hi @mheon I'm not sure whtether this is the right place to post, but I encountered exactly the same problem with podman 3.0.1 and nvidia-container-runtime 3.4.0-1
/usr/bin/nvidia-container-runtime: find runc path: exec: "runc": executable file not found in $PATH
After some attempts, I find out that --cap-add AUDIT_WRITE
solves this problem.
I have totally no idea why this would even work, though.
Here's my podman info
, I'm happy to offer any further detailed info if asked.
host:
arch: amd64
buildahVersion: 1.19.4
cgroupManager: cgroupfs
cgroupVersion: v1
conmon:
package: /usr/bin/conmon 由 conmon 1:2.0.27-1 所拥有
path: /usr/bin/conmon
version: 'conmon version 2.0.27, commit: 65fad4bfcb250df0435ea668017e643e7f462155'
cpus: 16
distribution:
distribution: manjaro
version: unknown
eventLogger: journald
hostname: manjaro
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
kernel: 5.9.16-1-MANJARO
linkmode: dynamic
memFree: 26319368192
memTotal: 33602633728
ociRuntime:
name: /usr/bin/nvidia-container-runtime
package: /usr/bin/nvidia-container-runtime 由 nvidia-container-runtime-bin 3.4.0-1 所拥有
path: /usr/bin/nvidia-container-runtime
version: |-
runc version 1.0.0-rc93
commit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
spec: 1.0.2-dev
go: go1.16.2
libseccomp: 2.5.1
os: linux
remoteSocket:
path: /run/user/1000/podman/podman.sock
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: true
seccompEnabled: true
selinuxEnabled: false
slirp4netns:
executable: /usr/bin/slirp4netns
package: /usr/bin/slirp4netns 由 slirp4netns 1.1.9-1 所拥有
version: |-
slirp4netns version 1.1.9
commit: 4e37ea557562e0d7a64dc636eff156f64927335e
libslirp: 4.4.0
SLIRP_CONFIG_VERSION_MAX: 3
libseccomp: 2.5.1
swapFree: 0
swapTotal: 0
uptime: 1h 50m 44.99s (Approximately 0.04 days)
registries:
docker.io:
Blocked: false
Insecure: false
Location: hub-mirror.c.163.com
MirrorByDigestOnly: false
Mirrors: null
Prefix: docker.io
search:
- docker.io
store:
configFile: /home/wangyize/.config/containers/storage.conf
containerStore:
number: 30
paused: 0
running: 1
stopped: 29
graphDriverName: overlay
graphOptions:
overlay.mount_program:
Executable: /usr/bin/fuse-overlayfs
Package: /usr/bin/fuse-overlayfs 由 fuse-overlayfs 1.5.0-1 所拥有
Version: |-
fusermount3 version: 3.10.2
fuse-overlayfs: version 1.5
FUSE library version 3.10.2
using FUSE kernel interface version 7.31
graphRoot: /home/wangyize/.local/share/containers/storage
graphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "false"
imageStore:
number: 2
runRoot: /run/user/1000/containers
volumePath: /home/wangyize/.local/share/containers/storage/volumes
version:
APIVersion: 3.0.0
Built: 1613921386
BuiltTime: Sun Feb 21 23:29:46 2021
GitCommit: c640670e85c4aaaff92741691d6a854a90229d8d
GoVersion: go1.16
OsArch: linux/amd64
Version: 3.0.1
The audit_write capability is attempted to be taken care of using syscalls. @giuseppe FYI. Not sure why something is trying to write to the auditing subsystem.
I can't run podman rootless with GPU, someone can help me?
docker run --runtime=nvidia --privileged nvidia/cuda nvidia-smi
works fine butpodman run --runtime=nvidia --privileged nvidia/cuda nvidia-smi
crashes, same forsudo podman run --runtime=nvidia --privileged nvidia/cuda nvidia-smi
Output:
But, runc exists: