qemu seems to lack support for pid namespace.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
# Version
qemu-4.0.0
glibc-2.28
# commands used to launch qemu-aarch64 in user mode.
: ${QEMU_
printf '%s\n' ':qemu-
> sudo cp /usr/bin/
> sudo chroot $RPI /bin/ksh -l
# host
Gentoo Linux amd64
# Guest
Gentoo Linux aarch64
# The problem that I have
"emerge" program fails due to the error, "qemu: qemu_thread_create: Invalid argument".
"emerge" is Gentoo's package manager that compiles and installs packages.
# Workaround
Disable pid-sandbox in emerge.
# How to reproduce the issue
Execute
unshare --pid -- echo hello world
or
python -c "import portage.process; portage.
description: | updated |
description: | updated |
description: | updated |
summary: |
- qemu: qemu_thread_create: Invalid argument + qemu seems to lack support for pid namespace. |
PID namespace prevents to execute some syscalls, even if you use --map-root-user. This is managed at kernel level by the capabilities.
Could you try to do the exact same thing with the native architecture binaries in the chroot to see if the problem really comes from qemu-user?
Could you try to use the latest unshare version (util-linux package) that adds a "--keep-caps" parameter (v2.35-rc1) to preserve the capabilities?