Hi, I encountered the following error message on the QEMU 5.0.0 release, compiled and run inside a docker image:
"cannot bind memory to host NUMA nodes: Operation not permitted" The QEMU command line to reproduce this behavior (it happens also on -x86_64, -arm, -aarch64 with similar command line): qemu-system-i386 -m 64 -M pc -smp 1 -display none -monitor stdio -drive file=mp-acpi/NOS.iso,media=cdrom,id=d -boot order=d -d cpu_reset The docker image which shows the error is available here: https://hub.docker.com/repository/docker/xenos1984/test-qemu Built on Ubuntu 20.04, and including NUMA support with libnuma-dev package installed, from the following sources: https://github.com/xenos1984/cross-toolchain/tree/master/tools-qemu https://github.com/xenos1984/cross-toolchain/tree/master/test-qemu The iso image used can be obtained here, but should not be relevant: https://github.com/xenos1984/NOS/releases/download/latest/nos-i686.iso.bz2 The command fails when the image is used in a CI environment: https://circleci.com/gh/xenos1984/NOS/953 On recommendation by @imammedo I post the issue to qemu-devel, and also tried the following patch: --- a/backends/hostmem.c +++ b/backends/hostmem.c @@ -384,3 +384,3 @@ if (mbind(ptr, sz, backend->policy, - maxnode ? backend->host_nodes : NULL, maxnode + 1, flags)) { + maxnode ? backend->host_nodes : NULL, 0, flags)) { if (backend->policy != MPOL_DEFAULT || errno != ENOSYS) { But no success, the same error occurs. It happens only within docker - the same command runs fine on my desktop (also Ubuntu 20.04) system. Best regards, xenos1984 / Manuel Hohmann PS: I apologize if this mail is sent / received more than once; there was a problem with my outgoing mails.
signature.asc
Description: OpenPGP digital signature