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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 668AEC47082 for ; Sat, 5 Jun 2021 05:17:24 +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 2DAD161028 for ; Sat, 5 Jun 2021 05:17:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2DAD161028 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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 5D81E82B7D; Sat, 5 Jun 2021 07:17:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="vatGtfEJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E2F1C82CC1; Sat, 5 Jun 2021 07:17:16 +0200 (CEST) Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4035382B1C for ; Sat, 5 Jun 2021 07:17:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pj1-x1034.google.com with SMTP id z3-20020a17090a3983b029016bc232e40bso3614802pjb.4 for ; Fri, 04 Jun 2021 22:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=crWVufUXMPnJ3gwHCxLl2o/yqtyUSiP9pafYrMo936k=; b=vatGtfEJIUSV+LB4k3AIMu/+x4Rb7suNn9FXFMtbmDbZqzkSwj8etj6GI+6G1I8kfh kVwvWGNctrVx8P3+afVU2NHDIQDzs/7VDKoj95lr/bRsQznd4hGW/uGHZhUhrCjn2WjK Ui25BHSs86fe+tILhiSbeBFcDtb4zdA1sX7d/KbPZtgMmkaNx/op5JCZUEP1YaOD1uif 0UGYHapfF29u7zs5iwjo5xuKHrAv/blYLe4+waZ9s5tmhrKPbAKGNBtZmX3GBu5Z2sQH YULht+xzBghy0ILX/hdxP0lqNbXxYWa4rc7nFvPNTzrniPl9KVIfu3g79pj46V2IOHYw qo/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=crWVufUXMPnJ3gwHCxLl2o/yqtyUSiP9pafYrMo936k=; b=tEGsNC4YXZo3q0udiwHbr6u3nVsG86j5YzRD5mXeWwUW/mpuFea1/WwRMIvhhQDWEW gLpcp5aRiC16sLfLy/tNdcNjLQ79rXdTuthCfoh0pshUEwdQdwjIPECN73YLw6Vwopk7 3I+vVLkLNj+6R16tB6VJM6YerXPX5O67vmNiglKyB142jHq1T8EtHP0/bzkt1Aqdglhe iLg54PEdWOgyu/btmLoEUwyQu1hFKgrOVX7UZUaxagyCX7F1S2I7F2/ojBgZ3yphZDL0 USZbJpcDRFjwhhmvSUQCE82LgZbY+v+46G0wrd8MnYU8fzKI8ODt34+1CqSK8REEcoFq r7FA== X-Gm-Message-State: AOAM530MJ73XBzrdEbuCCFzHRDqZR0FxT2lcEacJF/h2tSE3JRS9dzsJ BHbyLEuMx2ivKrO/nxsaYefP+Q== X-Google-Smtp-Source: ABdhPJz3LeksQQHPmLseWpeIx04215fhZ9xkeA25dZ1+od9ebfP/8PAYa1ez8ZOQ4v6z0VEbe6T4Og== X-Received: by 2002:a17:902:9b8a:b029:10e:a83d:7dcf with SMTP id y10-20020a1709029b8ab029010ea83d7dcfmr7715035plp.7.1622870229473; Fri, 04 Jun 2021 22:17:09 -0700 (PDT) Received: from laputa (p3dd30534.tkyea130.ap.so-net.ne.jp. [61.211.5.52]) by smtp.gmail.com with ESMTPSA id y6sm5882305pjf.40.2021.06.04.22.17.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 22:17:08 -0700 (PDT) Date: Sat, 5 Jun 2021 14:17:04 +0900 From: AKASHI Takahiro To: Alper Nebi Yasak Cc: u-boot@lists.denx.de, Bin Meng , Heinrich Schuchardt , Tom Rini , Daniel Schwierzeck , Simon Glass , Marek Vasut Subject: Re: [PATCH 1/4] tools: docker: Install a readable kernel for libguestfs-tools Message-ID: <20210605051704.GA18123@laputa> Mail-Followup-To: AKASHI Takahiro , Alper Nebi Yasak , u-boot@lists.denx.de, Bin Meng , Heinrich Schuchardt , Tom Rini , Daniel Schwierzeck , Simon Glass , Marek Vasut References: <20210604190207.44805-1-alpernebiyasak@gmail.com> <20210604190207.44805-2-alpernebiyasak@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210604190207.44805-2-alpernebiyasak@gmail.com> 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 Fri, Jun 04, 2021 at 10:02:03PM +0300, 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=x86_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. I thought that I had added linux-image-kvm to Travis CI (and hence other CI loops as well) as part of this patch[1] to fix some test problem. It seems that it has never been merged, though. Thank you for the reminder. -Takahiro Akashi [1] https://lists.denx.de/pipermail/u-boot/2020-July/421810.html > Signed-off-by: Alper Nebi Yasak > --- > > 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 > > -- > 2.32.0.rc2 >