From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A6BFC4743D for ; Sat, 5 Jun 2021 00:22:09 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 15A4F613C9 for ; Sat, 5 Jun 2021 00:22:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 15A4F613C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 70E3A82EBF; Sat, 5 Jun 2021 02:22:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="JBq7PeLp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0822182EF0; Sat, 5 Jun 2021 02:22:03 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E904582EBF for ; Sat, 5 Jun 2021 02:21:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622852516; bh=O1PvSO/ItiGO1m8F0tuiZU/ZZwci/iMlsQJL942SdvI=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=JBq7PeLpR7/Dnl34eTuvf2SEYAqtxaXsAZ5g9n9hd101+tp/mQ/aJGhnqgSS4EvYp +0T26tRtENbZWMYqHYnajK6zgljN5R5a+b2MND2XPTSCMERI4TmIgZLwSQWh0yj+Dd kdDsbJKDuR17xpIohnjuDsmBhNEeevunuJT3mk5g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.35] ([62.143.247.63]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MNbox-1m008l2Qnb-00P5HV; Sat, 05 Jun 2021 02:21:56 +0200 Subject: Re: [PATCH 1/4] tools: docker: Install a readable kernel for libguestfs-tools To: Alper Nebi Yasak , u-boot@lists.denx.de Cc: Bin Meng , Tom Rini , Daniel Schwierzeck , Simon Glass , Marek Vasut References: <20210604190207.44805-1-alpernebiyasak@gmail.com> <20210604190207.44805-2-alpernebiyasak@gmail.com> From: Heinrich Schuchardt Message-ID: Date: Sat, 5 Jun 2021 02:21:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210604190207.44805-2-alpernebiyasak@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:PUkrfaXTXDMMabGxJzqktpuQSJJeN6gNhqV4UwORRTfZDT9zQbJ 2Xe/hnes+dyFXl4aExoe+Gu0vJXU4UEJ1XcSBNqYkOLSL8IUCDZgGMPNdF56Mnh/yqF6sG6 7vE26qfZhhFjsfOzrMqFMwI0U1EbgDqu+0JLBNpgiMj00/Y8LuK0tpnydIr+69WpOATPBcW j/hXNG0sjFXMjg6f9bCug== X-UI-Out-Filterresults: notjunk:1;V03:K0:A25srYvqKro=:GP48nXLgPdrwCB/EdPYwjT qJ/u8KOstMoeYM3dkaQeujEXHmXytty0zZjt2A8+uf4T/naheElAxLROqeHtJpKWuTiv1U2kr IpzCAAk+eYRTvorRM/4bcNw+G0ZDJ/bDS3v1JaRGRuCwgP8C66gs3HFD7soQdpj1cP6PJMXFP 3litPsMt454kwkLSFqqcOIwgAQKyY+aZOCFRB0QPHtuv2Rib4echy50NBxFy57tdPBfnHwkR4 2KaeYfXzbNvfb/LoqeN5DD2nsDuz03EZWBKJDR3FxTQoKdw+ZuSxX51aUY2td/ZP9mCKbXr3r LLvf/IUOcFIejcGaY7zEarCALC0lCutYEV1FNbzKXRqrG1IwD2wsYBXWyo3mQ+22QETRFJL48 rMQipCKojNHe81A+n3AlbZ4Hf882MB0TbXdfz0V8lI2nv5PGyQdqlLbdHAu5lgIyEZY7kQhux MpjU2CIOLVIEnMbKZIGPW5xyAkRDEycSREQqq82P38zyXDJ1PjJQw0Wzq2xSk+jBZUw1Sgok5 moSic9e5cfYU4LaYgCE8HGRjNuW24cdJ32OqS3wCkW/fqoCwcra3yJoUK/pWguAININjRTG3v kx/iNIFsLnRCo0w33nNn3ognx3wXnFiHk/3/G+y58jOjLoCxjlcZmEARSlX6XB5pnbiOIa1IV oA25Xr5YlnSvemgikro54TJ5x9ipTPov6jdTN2wixKtaGbNXETXlqvBe0cOJzChdgtxtyzdKa fF3Wwvk43AN2YRixrBpAthxbPjlLSl6Zwi+WmHD5dk1dYIUZ0iEkdlvAJgMBzo3EYmi43t9AI a+USdqAw1HrLh3qjtfgATmkAmSVbwmpIgVP0IfxDEpZeaA/W0gTdGnvwDRrHl40Z0E0FrsGHA yDolXf/UIEP0//KmXqD3CaaKniar7c0fb93u5ZyvKGCt0kIig4jratDzI+ekrHUtf0p4w0Hsr 57OTQIy3Jj3vOcvZJzI/fzVstO5h48GEPu1Jru15qoIpLCYESXEZ6VTEV1BJY5fOJuDBwbdBa qLOMFlnB63u6OeaRUQiAQn0iis2thmtP4DUdBbgnK1ar1NvjNPxujKK69gtBjrmYTeQLFRbir LgP9jL63YvP4yLJ5fo1aAKv1ucVD7V7ozK7 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean On 6/4/21 9:02 PM, Alper Nebi Yasak wrote: > The filesystem and EFI (capsule and secure boot) test setups try to use > guestmount and virt-make-fs respectively to prepare disk images to run > tests on. However, these libguestfs tools need a kernel image and fail > with the following message (revealed in debug/trace mode) if it can't > find one: > > supermin: failed to find a suitable kernel (host_cpu=3Dx86_64). > > I looked for kernels in /boot and modules in /lib/modules. > > If this is a Xen guest, and you only have Xen domU kernels > installed, try installing a fullvirt kernel (only for > supermin use, you shouldn't boot the Xen guest with it). > > This failure then causes these tests to be skipped in CIs. Install a > kernel package in the Docker containers so the CIs can run these > tests with libguestfs tools again (assuming the container is run with > necessary host devices and privileges). As this kernel would be only > used for virtualization, we can use the kernel package specialized for > that. On Ubuntu systems kernel images are not readable by non-root > users, so explicitly add read permissions with chmod as well. > > Signed-off-by: Alper Nebi Yasak Acked-by: Heinrich Schuchardt > --- > > tools/docker/Dockerfile | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile > index d2f0074ee8a6..563b16639e54 100644 > --- a/tools/docker/Dockerfile > +++ b/tools/docker/Dockerfile > @@ -71,6 +71,7 @@ RUN apt-get update && apt-get install -y \ > libssl-dev \ > libudev-dev \ > libusb-1.0-0-dev \ > + linux-image-kvm \ > lzma-alone \ > lzop \ > mount \ > @@ -99,6 +100,9 @@ RUN apt-get update && apt-get install -y \ > zip \ > && rm -rf /var/lib/apt/lists/* > > +# Make kernels readable for libguestfs tools to work correctly > +RUN chmod +r /boot/vmlinu* /lib/modules/*/vmlinu* || true > + > # Manually install libmpfr4 for the toolchains > RUN wget http://mirrors.kernel.org/ubuntu/pool/main/m/mpfr4/libmpfr4_3= .1.4-1_amd64.deb && dpkg -i libmpfr4_3.1.4-1_amd64.deb && rm libmpfr4_3.1.= 4-1_amd64.deb > >