qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 1857811] Re: qemu user static binary seems to lack support for netw


From: crocket
Subject: [Bug 1857811] Re: qemu user static binary seems to lack support for network namespace.
Date: Wed, 12 Feb 2020 12:45:17 -0000

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]