Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to make changes kernel configuration required by docker
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
guyuming
Apprentice
Apprentice


Joined: 19 Nov 2020
Posts: 253

PostPosted: Wed Dec 02, 2020 4:13 am    Post subject: how to make changes kernel configuration required by docker Reply with quote

I installed docker and run the kernel configuration check mentioned in https://wiki.gentoo.org/wiki/Docker#Kernel

Check result says:

info: reading kernel config from /proc/config.gz ,,,
...
- CONFIG_NF_NAT_IPV4: missing
...


When i open make menuconfig, i see cascade of choice items, but how can i figure out which choice item in menuconfig corresponds to the missing key CONFIG_NF_NAT_IPV4 ?

And i tried edit the .config file directly, appending missing keys at the end, and run make, i saw a warning the CONFIG_MEMCG_SWAP_ENABLED=m i added was inappropriate shortly after the make begin. So, i Ctrl+C to stop the make.

The i check the .config file again to find that all the keys i added manually are no there anymore.

And i open the .config.old file to find out that the keys i added manually are there.

So, how can i reconfigure the kernel as required by docker install?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Wed Dec 02, 2020 6:38 am    Post subject: Reply with quote

In menuconfig you can type '/' and put NF_NAT_IPV4 for search where is a config, also tells you if it has some dependency on some other config.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
guyuming
Apprentice
Apprentice


Joined: 19 Nov 2020
Posts: 253

PostPosted: Wed Dec 02, 2020 1:30 pm    Post subject: Reply with quote

Thanks!

fedeliallalinea wrote:
In menuconfig you can type '/' and put NF_NAT_IPV4 for search where is a config, also tells you if it has some dependency on some other config.


I tried with NF_NAT_IPV4, but it says "no match found", how can this be?

And i did find two suggested missing items and added them into the kernel. I am make the kernel now. After make install and reboot, i will try run the checker again, and post here all the missing items that return "no match found" in menuconfig search.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Wed Dec 02, 2020 1:51 pm    Post subject: Reply with quote

See bug #685340
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Dec 02, 2020 2:17 pm    Post subject: Reply with quote

guyuming,

what version of docker are you installing?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
guyuming
Apprentice
Apprentice


Joined: 19 Nov 2020
Posts: 253

PostPosted: Thu Dec 03, 2020 9:11 am    Post subject: Reply with quote

Jaglover wrote:
guyuming,

what version of docker are you installing?



$ docker --version
Docker version 19.03.13, build 4484c46d9d

$ uname -r
5.4.72-gentoo-x86_64
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Thu Dec 03, 2020 9:35 am    Post subject: Reply with quote

The problem seems that nf_nat_ipv4.c is merged with nf_nat_core.c so you can ignore this message and check if NF_NAT is enabled
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
guyuming
Apprentice
Apprentice


Joined: 19 Nov 2020
Posts: 253

PostPosted: Fri Dec 04, 2020 9:37 am    Post subject: Reply with quote

what follows are other suggested missings which return "no matches found" in menuconfig:

NF_NAT_NEEDED
IO_SCHED_CFQ
CFQ_CGROUP_IOSCHED
INET_XFRM_MODE_TRANSPORT
AUFS_FS


I guess that could be caused by the checker script not catching up with the fast paced kernel change and i can just neglect it.

but how did you find the document links sent me above?

I tried something like https://bugs.gentoo.org/buglist.cgi?quicksearch=INET_XFRM_MODE_TRANSPORT but it returns nothing.

and something like https://cn.bing.com/search?q=site%3Agithub.com%2Ftorvalds%2F+Kconfig+IO_SCHED_CFQ also does not lead to meaningful results for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum