From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2B8C41382C5 for ; Sat, 16 May 2020 18:50:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E660BE0AA0; Sat, 16 May 2020 18:50:20 +0000 (UTC) Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9FAB5E0A80 for ; Sat, 16 May 2020 18:50:20 +0000 (UTC) Received: by mail-il1-x144.google.com with SMTP id l20so5895123ilj.10 for ; Sat, 16 May 2020 11:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=3WZL79FQQcBrf2Et47JK8uSporhydS+nZpD3zQDlziI=; b=dNhhMxejq8ZtJx3XH4SCQwV5f4lPOOW92CpbYKjTskqjORIm4+qIJEzrGj69HYLztb oIOJU45nyFVmBO2lqJ1ytspaCgV+rFBsyXVTF/5n5UnkkRDlCj26lUwVZlQBbnTLyxMq jWwqLaD7S6QFqxZFPSrv/8lgMjYyx4PeqncN1j2Qb1uSruIApedK3VWICq6x5l1NoLp9 M3G2sDHK9iAwxSEFV9zhaj99tmymybwjJkfunB8/sAOkh02cDXzO44Yik6oAKHAcC84J m7XbddPYJFNi0gcaYC5PCUiOlbOD+RZMn1DnC833XN6HDz1B+tEuEUGDFF86V86vE0gB Mzxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=3WZL79FQQcBrf2Et47JK8uSporhydS+nZpD3zQDlziI=; b=dMPrqaR0CRqxbQSeuqqYIx8SgcCFCUMH8IzVyTmueKARg/XWcSTiZ6eBJHZTAA5mVy IezpjGQFv5qDhNU4NkSFxb/pd5fUQnb0gL0l+2SmMZsqd36LpG70DYWBZO44DqKUXA8I OGeR/TgTItmTyati5ofvTYAzIoc90hRRxfT6wp6cB/AWBh9MMlZHGoXk4OnE8VewkWhS uUMY4evi00m3rN1qm/wcS0ZW4zKFumvVH2/e8i9cpioe8dFr3uGQphptlN0xuai8N5NE ilVKYSAjdcmYgDt4l45joLwUCf/ht1H27UysiKzQ8az2dfqm00m6AE6wWx4ca9TjqKdp MnUw== X-Gm-Message-State: AOAM530SXpCN42tYcmK3XTRbp1ds23dzV/J+nkgAH6/AfxY7YdqpsDTY 7aWZ1PHlRDm/rBKrAjpyndINUn7/AEA7+DhDCMMCGbhushA= X-Google-Smtp-Source: ABdhPJwmDupMT2gG+Zu2VQay2PEFldyMufeJjVxlk6qpSeXzdiLFBE+f9V3/u+wXOcvlw+qWJ0I7MwRIb/zJWd/nTq4= X-Received: by 2002:a92:bad9:: with SMTP id t86mr9535940ill.146.1589655019548; Sat, 16 May 2020 11:50:19 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <5357792.DvuYhMxLoT@peak> <2952b1f1-8e76-4e6f-4124-4f495ffb5d54@gmail.com> In-Reply-To: <2952b1f1-8e76-4e6f-4124-4f495ffb5d54@gmail.com> From: Viktar Patotski Date: Sat, 16 May 2020 20:50:07 +0200 Message-ID: Subject: Re: [gentoo-user] Kernel config for Docker To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="000000000000c177f705a5c8662e" X-Archives-Salt: 92bd3eb7-48a8-426e-9388-958525470e7c X-Archives-Hash: d2f66e028e9cae939e44b1de712f1867 --000000000000c177f705a5c8662e Content-Type: text/plain; charset="UTF-8" hey, to solve this part: - /dev/zfs: missing - zfs command: missing - zpool command: missing Do `emerge sys-fs/zfs` and reboot. Viktar On Sat, May 16, 2020 at 8:05 PM Victor Ivanov wrote: > Some of these are obsolete and have been removed in newer kernels. > > NF_NAT ones have been superseded by / renamed to: > > CONFIG_NF_NAT > CONFIG_IP_NF_NAT > CONFIG_IP6_NF_NAT > > I'm not sure about CONFIG_INET_XFRM_MODE_TRANSPORT but I believe it's > now incorporated into other XFRM config variables in newer kernels. I > will need to look at the kernel changelogs. But you should be fine > without it. > > AUFS is not part of the main kernel tree, so the following option does > not apply: > > CONFIG_AUFS_FS > > That said, Docker does _not_ require AUFS, but it does still support it > as an option. Docker docs, recommend using OverlayFS instead which is > also part of the main kernel tree. > > As far as I recall there are patches and overlays that will allow you to > enable AUFS if needed. Debian, for example, does not include AUFS and > instead uses DKMS for AUFS support. > > The CFQ I/O scheduler is obsolete and has been removed, so the following > do not exist and have no alternatives except for running an older kernel: > > CONFIG_IOSCHED_CFQ > CONFIG_CFQ_GROUP_IOSCHED > > Docker will run just fine with the BFQ scheduler. > > Generally speaking the docker kernel validation script is fundamentally > flawed by design - it doesn't check the kernel options based on the > kernel version. Instead it uses as single global list of CONFIG options > and matches against that. > > - Victor > > On 16/05/2020 18:12, Peter Humphrey wrote: > > Afternoon all, > > > > I'm trying to follow the wiki[1] to set up gentoo-sources-5.4.38, but > the wiki > > seems to have been written for a different kernel version. Nothing > daunted, I > > set as many parameters as I could, rebooted and ran > /usr/share/docker/contrib/ > > check-config.sh. I got 9 things missing, thus: > > > > $ /usr/share/docker/contrib/check-config.sh > /tmp/config-check > > $ grep missing /tmp/config-check > > - CONFIG_NF_NAT_IPV4: missing > > - CONFIG_NF_NAT_NEEDED: missing > > - CONFIG_IOSCHED_CFQ: missing > > - CONFIG_CFQ_GROUP_IOSCHED: missing > > - CONFIG_INET_XFRM_MODE_TRANSPORT: missing > > - CONFIG_AUFS_FS: missing > > - /dev/zfs: missing > > - zfs command: missing > > - zpool command: missing > > > > I can't find any of those. Any clues for the uninitiated? > > > > 1. https://wiki.gentoo.org/wiki/Docker > > > > --000000000000c177f705a5c8662e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hey,

to solve this part:
- /dev/zfs: missing
=C2=A0 =C2=A0 - zfs command: missing
=C2=A0 =C2=A0 - zpool command: missing


<= div>Do `emerge sys-fs/zfs` and reboot.

Viktar<= br>

On Sat, May 16, 2020 at 8:05 PM Victor Ivanov <vic.m.ivanov@gmail.com> wrote:
Some of these are obsolete = and have been removed in newer kernels.

NF_NAT ones have been superseded by / renamed to:

=C2=A0 =C2=A0 CONFIG_NF_NAT
=C2=A0 =C2=A0 CONFIG_IP_NF_NAT
=C2=A0 =C2=A0 CONFIG_IP6_NF_NAT

I'm not sure about CONFIG_INET_XFRM_MODE_TRANSPORT but I believe it'= ;s
now incorporated into other XFRM config variables in newer kernels. I
will need to look at the kernel changelogs. But you should be fine
without it.

AUFS is not part of the main kernel tree, so the following option does
not apply:

=C2=A0 =C2=A0 CONFIG_AUFS_FS

That said, Docker does _not_ require AUFS, but it does still support it
as an option. Docker docs, recommend using OverlayFS instead which is
also part of the main kernel tree.

As far as I recall there are patches and overlays that will allow you to enable AUFS if needed. Debian, for example, does not include AUFS and
instead uses DKMS for AUFS support.

The CFQ I/O scheduler is obsolete and has been removed, so the following do not exist and have no alternatives except for running an older kernel:
=C2=A0 =C2=A0 CONFIG_IOSCHED_CFQ
=C2=A0 =C2=A0 CONFIG_CFQ_GROUP_IOSCHED

Docker will run just fine with the BFQ scheduler.

Generally speaking the docker kernel validation script is fundamentally
flawed by design - it doesn't check the kernel options based on the
kernel version. Instead it uses as single global list of CONFIG options
and matches against that.

- Victor

On 16/05/2020 18:12, Peter Humphrey wrote:
> Afternoon all,
>
> I'm trying to follow the wiki[1] to set up gentoo-sources-5.4.38, = but the wiki
> seems to have been written for a different kernel version. Nothing dau= nted, I
> set as many parameters as I could, rebooted and ran /usr/share/docker/= contrib/
> check-config.sh. I got 9 things missing, thus:
>
> $ /usr/share/docker/contrib/check-config.sh > /tmp/config-check
> $ grep missing /tmp/config-check
> - CONFIG_NF_NAT_IPV4: missing
> - CONFIG_NF_NAT_NEEDED: missing
> - CONFIG_IOSCHED_CFQ: missing
> - CONFIG_CFQ_GROUP_IOSCHED: missing
>=C2=A0 =C2=A0 =C2=A0 =C2=A0- CONFIG_INET_XFRM_MODE_TRANSPORT: missing >=C2=A0 =C2=A0 =C2=A0- CONFIG_AUFS_FS: missing
>=C2=A0 =C2=A0 =C2=A0- /dev/zfs: missing
>=C2=A0 =C2=A0 =C2=A0- zfs command: missing
>=C2=A0 =C2=A0 =C2=A0- zpool command: missing
>
> I can't find any of those. Any clues for the uninitiated?
>
> 1.=C2=A0 https://wiki.gentoo.org/wiki/Docker
>

--000000000000c177f705a5c8662e--