Skip to contentSkip to conversation

dunfell/5.8.x kernel/Docker version 19.03.8-ce

DISCUSSION Robert Berger 3 participants 6 messages Oct 8, 2020 – Oct 9, 2020 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
Quoted 8 lines · Robert Berger

Hi,

It looks like with a 5.8.x kernel docker is not happy anymore with iptables and kills the socket.

https://pastebin.com/U702eC9G

Are there any suggested fixes for this?

The kernel-module-xt-masquerade is missing.
Docker could RRECOMMENDS on it.

Quoted 7 lines

Regards,

Robert

Signature · 4 lines
Maciej Pijanowski
Embedded Systems Engineer
GPG: 9963C36AAC3B2B46
https://3mdeb.com | @3mdeb_com
#2 lore raw
Quoted 6 lines · Maciej Pijanowski

On 08.10.2020 16:35, Robert Berger wrote:

Hi,

Quoted 8 lines

It looks like with a 5.8.x kernel docker is not happy anymore with iptables and kills the socket.

https://pastebin.com/U702eC9G

Are there any suggested fixes for this?

The kernel-module-xt-masquerade is missing.
Docker could RRECOMMENDS on it.

Indeed.

And I have some other 5.8 related changes that I'm finishing up now, so I'll take care of adjusting to the 5.8+ kernel

Bruce

Quoted 16 lines

Regards,

Robert

--
Maciej Pijanowski
Embedded Systems Engineer
GPG: 9963C36AAC3B2B46
https://3mdeb.com | @3mdeb_com

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 15 lines · Bruce Ashfield via lists.yoctoproject.org
Quoted 12 lines · Maciej Pijanowski

On 08.10.2020 16:35, Robert Berger wrote:

Hi,

It looks like with a 5.8.x kernel docker is not happy anymore with iptables and kills the socket.

https://pastebin.com/U702eC9G

Are there any suggested fixes for this?

Quoted 8 lines
Quoted 2 lines

The kernel-module-xt-masquerade is missing.
Docker could RRECOMMENDS on it.

Indeed.

And I have some other 5.8 related changes that I'm finishing up now, so I'll take care of adjusting to the 5.8+ kernel

FYI. If you were using the meta-virt fragments (as I hope you were! ;), then it was something I did to fix the rpi layer that broke things .. and hence why the required modules weren't around.

I'm doing some final testing now, but will push the fix shortly:

root@qemux86-64:~# docker pull alpine
Using default tag: latest
latest: Pulling from library/alpine
df20fa9351a1: Pull complete
Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321
Status: Downloaded newer image for alpine:latest
docker.io/library/alpine:latest
root@qemux86-64:~# docker run -it alpine /bin/sh
[  232.159559] docker0: port 1(veth7ec1de8) entered blocking state
[  232.160750] docker0: port 1(veth7ec1de8) entered disabled state
[  232.163205] device veth7ec1de8 entered promiscuous mode
[  233.006297] cgroup: cgroup: disabling cgroup2 socket matching due
to net_prio or net_cls activation
[  233.171969] eth0: renamed from veth7019cad
[  233.173600] IPv6: ADDRCONF(NETDEV_CHANGE): veth7ec1de8: link becomes ready
[  233.174232] docker0: port 1(veth7ec1de8) entered blocking state
[  233.174788] docker0: port 1(veth7ec1de8) entered forwarding state
[  233.175386] IPv6: ADDRCONF(NETDEV_CHANGE): docker0: link becomes ready
/ # [  235.534743] docker0: port 1(veth7ec1de8) entered disabled state
[  235.536828] veth7019cad: renamed from eth0
[  235.621760] docker0: port 1(veth7ec1de8) entered disabled state
[  235.625189] device veth7ec1de8 left promiscuous mode
[  235.625667] docker0: port 1(veth7ec1de8) entered disabled state
root@qemux86-64:~# uname -a
Linux qemux86-64 5.8.13-yocto-standard #1 SMP PREEMPT Tue Oct 6
12:23:29 UTC 2020 x86_64 GNU/Linux

Bruce

Quoted 27 lines

Bruce

Quoted 4 lines

Regards,

Quoted 12 lines

Robert

--
Maciej Pijanowski
Embedded Systems Engineer
GPG: 9963C36AAC3B2B46
https://3mdeb.com | @3mdeb_com

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#5 lore raw

Hi,

Thanks for the quick reply - I'll give it a try!

Quoted 5 lines · Bruce Ashfield

FYI. If you were using the meta-virt fragments (as I hope you were! ;), then it was something I did to fix the rpi layer that broke things .. and hence why the required modules weren't around.

You mean those in the meta-virt layer?

I am using those, but I guess with my meta-virt is too old - dunfell something.

Also I have my own custom kernel recipe and don't use the one from meta-virt.

So basically what is do is apply kernel fragments from meta-virt (and some others) on top of some kind of upstream 5.8.x kernel.[1]

[1] https://gitlab.com/meta-layers/meta-raspberrypi-ml-bsp/-/blob/dunfell/recipes-kernel/linux/config/arm64-ml-base/ktypes/virt/virt.scc

The same fragments work for a 5.4.x kernel.

Regards,

Robert

#6 lore raw
Quoted 12 lines · On Fri, Oct 9, 2020 at 6:10 AM Robert [email protected]…

Hi,

Thanks for the quick reply - I'll give it a try!

Quoted 5 lines · Bruce Ashfield

FYI. If you were using the meta-virt fragments (as I hope you were! ;), then it was something I did to fix the rpi layer that broke things .. and hence why the required modules weren't around.

Quoted 4 lines

You mean those in the meta-virt layer?

I am using those, but I guess with my meta-virt is too old - dunfell something.

Aha. Right, I missed that. I wouldn't have broken dunfell, but I can confirm that with the right modules loaded, docker works fine with a yocto built 5.8

Bruce

Quoted 15 lines

Also I have my own custom kernel recipe and don't use the one from meta-virt.

So basically what is do is apply kernel fragments from meta-virt (and some others) on top of some kind of upstream 5.8.x kernel.[1]

[1]
https://gitlab.com/meta-layers/meta-raspberrypi-ml-bsp/-/blob/dunfell/recipes-kernel/linux/config/arm64-ml-base/ktypes/virt/virt.scc

The same fragments work for a 5.4.x kernel.

Regards,

Robert

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II