[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.
I just called _configure_loopback_interface in a qemu-aarch64 chroot, and the error is not reproducible with qemu-4.2.0. Has it been fixed? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811 Title: qemu user static binary seems to lack support for network namespace. Status in QEMU: New Bug description: Whenever I execute emerge in gentoo linux in qemu-aarch64 chroot, I see the following error message. Unable to configure loopback interface: Operation not supported If I disable emerge's network-sandbox which utilizes network namespace, the error disappears. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1857811/+subscriptions
[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.
Can you rephrase your question? I don't know what to do with your question. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811 Title: qemu user static binary seems to lack support for network namespace. Status in QEMU: New Bug description: Whenever I execute emerge in gentoo linux in qemu-aarch64 chroot, I see the following error message. Unable to configure loopback interface: Operation not supported If I disable emerge's network-sandbox which utilizes network namespace, the error disappears. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1857811/+subscriptions
[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.
qemu-4.0.0 > uname -a Linux gentoo 4.19.97-gentoo #3 SMP PREEMPT Mon Feb 10 15:09:44 KST 2020 x86_64 AMD FX(tm)-8300 Eight-Core Processor AuthenticAMD GNU/Linux -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811 Title: qemu user static binary seems to lack support for network namespace. Status in QEMU: New Bug description: Whenever I execute emerge in gentoo linux in qemu-aarch64 chroot, I see the following error message. Unable to configure loopback interface: Operation not supported If I disable emerge's network-sandbox which utilizes network namespace, the error disappears. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1857811/+subscriptions
[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.
def _configure_loopback_interface(): """ Configure the loopback interface. """ # We add some additional addresses to work around odd behavior in glibc's # getaddrinfo() implementation when the AI_ADDRCONFIG flag is set. # # For example: # # struct addrinfo *res, hints = { .ai_family = AF_INET, .ai_flags = AI_ADDRCONFIG }; # getaddrinfo("localhost", NULL, &hints, &res); # # This returns no results if there are no non-loopback addresses # configured for a given address family. # # Bug: https://bugs.gentoo.org/690758 # Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=12377#c13 # Avoid importing this module on systems that may not support netlink sockets. from portage.util.netlink import RtNetlink try: with RtNetlink() as rtnl: ifindex = rtnl.get_link_ifindex(b'lo') rtnl.set_link_up(ifindex) rtnl.add_address(ifindex, socket.AF_INET, '10.0.0.1', 8) if _has_ipv6(): rtnl.add_address(ifindex, socket.AF_INET6, 'fd::1', 8) except EnvironmentError as e: writemsg("Unable to configure loopback interface: %s\n" % e.strerror, noiselevel=-1) If I execute _configure_loopback_interface in a qemu-aarch64 chroot, I see the following error. Unable to configure loopback interface: Operation not supported https://bugs.gentoo.org/703276 explains the issue. ** Bug watch added: Sourceware.org Bugzilla #12377 https://sourceware.org/bugzilla/show_bug.cgi?id=12377 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811 Title: qemu user static binary seems to lack support for network namespace. Status in QEMU: New Bug description: Whenever I execute emerge in gentoo linux in qemu-aarch64 chroot, I see the following error message. Unable to configure loopback interface: Operation not supported If I disable emerge's network-sandbox which utilizes network namespace, the error disappears. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1857811/+subscriptions
[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.
You can obtain portage source code from https://gentoo.osuosl.org/distfiles/portage-2.3.84.tar.bz2 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811 Title: qemu user static binary seems to lack support for network namespace. Status in QEMU: New Bug description: Whenever I execute emerge in gentoo linux in qemu-aarch64 chroot, I see the following error message. Unable to configure loopback interface: Operation not supported If I disable emerge's network-sandbox which utilizes network namespace, the error disappears. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1857811/+subscriptions
[Bug 1829459] Re: qemu seems to lack support for pid namespace.
I think you should investigate `qemu: qemu_thread_create: Invalid argument` -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829459 Title: qemu seems to lack support for pid namespace. Status in QEMU: New Bug description: # Version qemu-4.0.0 glibc-2.28 # commands used to launch qemu-aarch64 in user mode. : ${QEMU_BINFMT_FLAGS:=OC} printf '%s\n' ':qemu- aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register > sudo cp /usr/bin/qemu-aarch64 $RPI/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.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)" To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1829459/+subscriptions
[Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.
I executed "emerge" with QEMU_LOG=unimp and QEMU_STRACE="". ** Attachment added: "emerge.log" https://bugs.launchpad.net/qemu/+bug/1857811/+attachment/5317106/+files/emerge.log -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811 Title: qemu user static binary seems to lack support for network namespace. Status in QEMU: New Bug description: Whenever I execute emerge in gentoo linux in qemu-aarch64 chroot, I see the following error message. Unable to configure loopback interface: Operation not supported If I disable emerge's network-sandbox which utilizes network namespace, the error disappears. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1857811/+subscriptions
[Bug 1829459] Re: qemu seems to lack support for pid namespace.
In a native chroot, `sudo unshare --pid -- echo hello world` works without a problem. In a qemu-aarch64 chroot, `sudo unshare --keep-caps --pid -- echo hello world` fails with the same error described in this issue. `qemu: qemu_thread_create: Invalid argument` -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829459 Title: qemu seems to lack support for pid namespace. Status in QEMU: New Bug description: # Version qemu-4.0.0 glibc-2.28 # commands used to launch qemu-aarch64 in user mode. : ${QEMU_BINFMT_FLAGS:=OC} printf '%s\n' ':qemu- aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register > sudo cp /usr/bin/qemu-aarch64 $RPI/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.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)" To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1829459/+subscriptions
[Bug 1829459] Re: qemu seems to lack support for pid namespace.
According to `man unshare`, --keep-caps seems to apply only to user namespace. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829459 Title: qemu seems to lack support for pid namespace. Status in QEMU: New Bug description: # Version qemu-4.0.0 glibc-2.28 # commands used to launch qemu-aarch64 in user mode. : ${QEMU_BINFMT_FLAGS:=OC} printf '%s\n' ':qemu- aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register > sudo cp /usr/bin/qemu-aarch64 $RPI/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.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)" To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1829459/+subscriptions
[Bug 1857811] [NEW] qemu user static binary seems to lack support for network namespace.
Public bug reported: Whenever I execute emerge in gentoo linux in qemu-aarch64 chroot, I see the following error message. Unable to configure loopback interface: Operation not supported If I disable emerge's network-sandbox which utilizes network namespace, the error disappears. ** Affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1857811 Title: qemu user static binary seems to lack support for network namespace. Status in QEMU: New Bug description: Whenever I execute emerge in gentoo linux in qemu-aarch64 chroot, I see the following error message. Unable to configure loopback interface: Operation not supported If I disable emerge's network-sandbox which utilizes network namespace, the error disappears. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1857811/+subscriptions
[Bug 1829459] Re: qemu seems to lack support for pid namespace.
** Summary changed: - qemu: qemu_thread_create: Invalid argument + qemu seems to lack support for pid namespace. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829459 Title: qemu seems to lack support for pid namespace. Status in QEMU: New Bug description: # Version qemu-4.0.0 glibc-2.28 # commands used to launch qemu-aarch64 in user mode. : ${QEMU_BINFMT_FLAGS:=OC} printf '%s\n' ':qemu- aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register > sudo cp /usr/bin/qemu-aarch64 $RPI/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.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)" To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1829459/+subscriptions
[Qemu-devel] [Bug 1829459] [NEW] qemu: qemu_thread_create: Invalid argument
Public bug reported: # Version qemu-4.0.0 glibc-2.28 # commands used to launch qemu-aarch64 in user mode. : ${QEMU_BINFMT_FLAGS:=OC} printf '%s\n' ':qemu- aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register > sudo cp /usr/bin/qemu-aarch64 $RPI/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.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)" ** Affects: qemu Importance: Undecided Status: New ** Description changed: # Version qemu-4.0.0 # commands used to launch qemu-aarch64 in user mode. + + : ${QEMU_BINFMT_FLAGS:=OC} printf '%s\n' ':qemu- aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register > sudo cp /usr/bin/qemu-aarch64 $RPI/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. # How to reproduce the issue Execute unshare --pid -- echo hello world or python -c "import portage.process; portage.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)" ** Description changed: # Version qemu-4.0.0 # commands used to launch qemu-aarch64 in user mode. : ${QEMU_BINFMT_FLAGS:=OC} printf '%s\n' ':qemu- aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register > sudo cp /usr/bin/qemu-aarch64 $RPI/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.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)" ** Description changed: # Version qemu-4.0.0 + glibc-2.28 # commands used to launch qemu-aarch64 in user mode. : ${QEMU_BINFMT_FLAGS:=OC} printf '%s\n' ':qemu- aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register > sudo cp /usr/bin/qemu-aarch64 $RPI/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.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)" -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829459 Title: qemu: qemu_thread_create: Invalid argument Status in QEMU: New Bug description: # Version qemu-4.0.0 glibc-2.28 # commands used to launch qemu-aarch64 in user mode. : ${QEMU_BINFMT_FLAGS:=OC} printf '%s\n' ':qemu- aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin /qemu-aarch64:'"${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register > sudo cp /usr/bin/qemu-aarch64 $RPI/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