From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: Re: Qemu binfmt on foreign distro Date: Mon, 25 Nov 2019 08:58:27 +0100 Message-ID: <871rtwo09o.fsf@gmail.com> References: <87wobt1rb8.fsf@gmail.com> <875zja1n1f.fsf@gnu.org> <87tv6uzbsn.fsf@gmail.com> <87sgmezao8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48001) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZ9GS-0002Dr-MT for guix-devel@gnu.org; Mon, 25 Nov 2019 02:58:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZ9GR-0006B6-J1 for guix-devel@gnu.org; Mon, 25 Nov 2019 02:58:32 -0500 In-reply-to: <87sgmezao8.fsf@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel I ran further tests. On Ubuntu 18.04, using qemu-user-static or qemu-user-binfmt makes no difference, they both fail. qemu-user-static works on Ubuntu 19.04 because of the addition of the 'F' flag, see: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1815100. Adding the 'F' flag[1] manually on Ubuntu 18.04 also fixes the issue. I could maybe add an entry to the documentation explaining that, in order for '--system' command to work on foreign distros, it is needed that: * A static version of qemu-user is used by binfmt * The 'F' flag is enabled for all binfmt installed entries Mathieu [1]: https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html