Skip to contentSkip to conversation

docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

PATCH In review brian avery 2 participants 8 messages Jul 7, 2017 – Jul 10, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start up successfully. This patch adds it to the supported kernels.

---
 recipes-kernel/linux/linux-yocto/docker.cfg    | 1 +
 recipes-kernel/linux/linux-yocto/docker.scc    | 4 ++++
 recipes-kernel/linux/linux-yocto_4.1.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.10.bbappend | 1 +
 recipes-kernel/linux/linux-yocto_4.4.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.9.bbappend  | 1 +
 6 files changed, 9 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.scc
recipes-kernel/linux/linux-yocto/docker.cfg new file +1 -0
new file mode 100644
index 0000000..d0ebb66
@@ -0,0 +1 @@
+CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
recipes-kernel/linux/linux-yocto/docker.scc new file +4 -0
new file mode 100644
index 0000000..e317456
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Features needed by docker in addition to LXC features"
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware docker.cfg
recipes-kernel/linux/linux-yocto_4.1.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
 	    file://vswitch.scc \
 	    file://lxc.scc \
+            file://docker.scc \
 	    "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.10.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
 	    file://vswitch.scc \
 	    file://lxc.scc \
+            file://docker.scc \
 	    "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.4.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
 	    file://vswitch.scc \
 	    file://lxc.scc \
+            file://docker.scc \
 	    "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.9.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
 	    file://vswitch.scc \
 	    file://lxc.scc \
+            file://docker.scc \
 	    "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 23 lines · brian avery

Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start up successfully. This patch adds it to the supported kernels.

---
 recipes-kernel/linux/linux-yocto/docker.cfg    | 1 +
 recipes-kernel/linux/linux-yocto/docker.scc    | 4 ++++
 recipes-kernel/linux/linux-yocto_4.1.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.10.bbappend | 1 +
 recipes-kernel/linux/linux-yocto_4.4.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.9.bbappend  | 1 +
 6 files changed, 9 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.scc
recipes-kernel/linux/linux-yocto/docker.cfg new file +0 -0
new file mode 100644
index 0000000..d0ebb66

recipes-kernel/linux/linux-yocto/docker.cfg line 1

Quoted 1 line
recipes-kernel/linux/linux-yocto/docker.cfg new file +1 -0
@@ -0,0 +1 @@
+CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m

I could have sworn that I already ported and merged my docker fragment to meta-virt,
but it looks like I only staged it and never actually did the patch.

To make the fragment as standalone as possible, I'm running with this:

------------
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
CONFIG_IP_NF_FILTER=m
CONFIG_NF_NAT=m
CONFIG_NF_CONNTRACK_IPV4=y
CONFIG_DM_THIN_PROVISIONING=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_OVERLAY_FS=y
-------------

I propose to update your fragment with those options and merge the changes that
way.

Any objections ?

Bruce

Quoted 73 lines
recipes-kernel/linux/linux-yocto/docker.scc new file +1 -0
new file mode 100644
index 0000000..e317456
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Features needed by docker in addition

to LXC features"

recipes-kernel/linux/linux-yocto/docker.scc new file +3 -0
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware docker.cfg
recipes-kernel/linux/linux-yocto_4.1.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.10.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.4.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.9.bbappend +1 -1
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
--

1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
#2 lore raw

Works for me.
ty :)
-b

p.s. working on this did hit bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=8191 when I tried to use linux-intel instead of linux-yocto.

From: Bruce Ashfield <[email protected]>
Date: Monday, July 10, 2017 at 8:24 AM
To: "Avery, Brian" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

On Fri, Jul 7, 2017 at 7:38 PM, brian avery <[email protected]<mailto:[email protected]>> wrote:
Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start
up successfully. This patch adds it to the supported kernels.

---
 recipes-kernel/linux/linux-yocto/docker.cfg    | 1 +
 recipes-kernel/linux/linux-yocto/docker.scc    | 4 ++++
 recipes-kernel/linux/linux-yocto_4.1.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.10.bbappend | 1 +
 recipes-kernel/linux/linux-yocto_4.4.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.9.bbappend  | 1 +
 6 files changed, 9 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.scc
recipes-kernel/linux/linux-yocto/docker.cfg new file +1 -0
new file mode 100644
index 0000000..d0ebb66
@@ -0,0 +1 @@
+CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m

I could have sworn that I already ported and merged my docker fragment to meta-virt, but it looks like I only staged it and never actually did the patch.

To make the fragment as standalone as possible, I'm running with this:

------------
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
CONFIG_IP_NF_FILTER=m
CONFIG_NF_NAT=m
CONFIG_NF_CONNTRACK_IPV4=y
CONFIG_DM_THIN_PROVISIONING=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_OVERLAY_FS=y
-------------

I propose to update your fragment with those options and merge the changes that way.

Any objections ?

Bruce

recipes-kernel/linux/linux-yocto/docker.scc new file +4 -0
new file mode 100644
index 0000000..e317456
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Features needed by docker in addition to LXC features"
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware docker.cfg
recipes-kernel/linux/linux-yocto_4.1.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.10.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.4.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.9.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 

--
1.9.1

--
_______________________________________________
meta-virtualization mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/meta-virtualization

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#3 lore raw

One other thought/question: should we include the docker check-config tool? would make it easier for people to track these things down if it changes in the future. -b

From: <[email protected]> on behalf of "Avery, Brian" <[email protected]>
Date: Monday, July 10, 2017 at 8:37 AM
To: Bruce Ashfield <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

Works for me.
ty :)
-b

p.s. working on this did hit bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=8191 when I tried to use linux-intel instead of linux-yocto.

From: Bruce Ashfield <[email protected]>
Date: Monday, July 10, 2017 at 8:24 AM
To: "Avery, Brian" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

On Fri, Jul 7, 2017 at 7:38 PM, brian avery <[email protected]<mailto:[email protected]>> wrote:
Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start
up successfully. This patch adds it to the supported kernels.

---
 recipes-kernel/linux/linux-yocto/docker.cfg    | 1 +
 recipes-kernel/linux/linux-yocto/docker.scc    | 4 ++++
 recipes-kernel/linux/linux-yocto_4.1.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.10.bbappend | 1 +
 recipes-kernel/linux/linux-yocto_4.4.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.9.bbappend  | 1 +
 6 files changed, 9 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.scc
recipes-kernel/linux/linux-yocto/docker.cfg new file +1 -0
new file mode 100644
index 0000000..d0ebb66
@@ -0,0 +1 @@
+CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m

I could have sworn that I already ported and merged my docker fragment to meta-virt, but it looks like I only staged it and never actually did the patch.

To make the fragment as standalone as possible, I'm running with this:

------------
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
CONFIG_IP_NF_FILTER=m
CONFIG_NF_NAT=m
CONFIG_NF_CONNTRACK_IPV4=y
CONFIG_DM_THIN_PROVISIONING=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_OVERLAY_FS=y
-------------

I propose to update your fragment with those options and merge the changes that way.

Any objections ?

Bruce

recipes-kernel/linux/linux-yocto/docker.scc new file +4 -0
new file mode 100644
index 0000000..e317456
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Features needed by docker in addition to LXC features"
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware docker.cfg
recipes-kernel/linux/linux-yocto_4.1.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.10.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.4.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.9.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 

--
1.9.1

--
_______________________________________________
meta-virtualization mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/meta-virtualization

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#7 lore raw
In reply to Avery, Brian
Quoted 4 lines · Brian

Works for me.

ty :)

Quoted 8 lines

-b

p.s. working on this did hit bug https://bugzilla.yoctoproject.
org/show_bug.cgi?id=8191 when I tried to use linux-intel instead of linux-yocto.

Indeed. The requirement is still that linux-yocto's class is inherited. The new implementation
removes that requirement but still has some issues.

Bruce

Quoted 178 lines

*From: *Bruce Ashfield <[email protected]> *Date: *Monday, July 10, 2017 at 8:24 AM
*To: *"Avery, Brian" <[email protected]>
*Cc: *"[email protected]" <meta-virtualization@ yoctoproject.org>
*Subject: *Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

On Fri, Jul 7, 2017 at 7:38 PM, brian avery <[email protected]> wrote:

Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start up successfully. This patch adds it to the supported kernels.

---
 recipes-kernel/linux/linux-yocto/docker.cfg    | 1 +
 recipes-kernel/linux/linux-yocto/docker.scc    | 4 ++++
 recipes-kernel/linux/linux-yocto_4.1.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.10.bbappend | 1 +
 recipes-kernel/linux/linux-yocto_4.4.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.9.bbappend  | 1 +
 6 files changed, 9 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.scc
recipes-kernel/linux/linux-yocto/docker.cfg new file +1 -0
new file mode 100644
index 0000000..d0ebb66
@@ -0,0 +1 @@
+CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m

I could have sworn that I already ported and merged my docker fragment to meta-virt,

but it looks like I only staged it and never actually did the patch.

To make the fragment as standalone as possible, I'm running with this:

------------

CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m

CONFIG_IP_NF_FILTER=m

CONFIG_NF_NAT=m

CONFIG_NF_CONNTRACK_IPV4=y

CONFIG_DM_THIN_PROVISIONING=m

CONFIG_IP_NF_NAT=m

CONFIG_IP_NF_TARGET_MASQUERADE=m

CONFIG_OVERLAY_FS=y

-------------

I propose to update your fragment with those options and merge the changes that

way.

Any objections ?

Bruce

recipes-kernel/linux/linux-yocto/docker.scc new file +1 -0
new file mode 100644
index 0000000..e317456
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Features needed by docker in addition

to LXC features"

recipes-kernel/linux/linux-yocto/docker.scc new file +3 -0
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware docker.cfg
recipes-kernel/linux/linux-yocto_4.1.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.10.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.4.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.9.bbappend +1 -1
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
--

1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

--

"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
#4 lore raw
In reply to Avery, Brian
Quoted 4 lines · Brian

One other thought/question: should we include the docker check-config tool? would make it easier for people to track these things down if it changes in the future.

It is currently in the docker-contrib package, since we didn't want it to be always on target. Have you tried including that and it is otherwise broken ?

Bruce

Quoted 206 lines

-b

*From: *<[email protected]> on behalf of "Avery, Brian" <[email protected]>
*Date: *Monday, July 10, 2017 at 8:37 AM
*To: *Bruce Ashfield <[email protected]>

*Cc: *"[email protected]" <meta-virtualization@ yoctoproject.org>
*Subject: *Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

Works for me.

ty :)

-b

p.s. working on this did hit bug https://bugzilla.yoctoproject.
org/show_bug.cgi?id=8191 when I tried to use linux-intel instead of linux-yocto.

*From: *Bruce Ashfield <[email protected]> *Date: *Monday, July 10, 2017 at 8:24 AM
*To: *"Avery, Brian" <[email protected]>
*Cc: *"[email protected]" <meta-virtualization@ yoctoproject.org>
*Subject: *Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

On Fri, Jul 7, 2017 at 7:38 PM, brian avery <[email protected]> wrote:

Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start up successfully. This patch adds it to the supported kernels.

---
 recipes-kernel/linux/linux-yocto/docker.cfg    | 1 +
 recipes-kernel/linux/linux-yocto/docker.scc    | 4 ++++
 recipes-kernel/linux/linux-yocto_4.1.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.10.bbappend | 1 +
 recipes-kernel/linux/linux-yocto_4.4.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.9.bbappend  | 1 +
 6 files changed, 9 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.scc
recipes-kernel/linux/linux-yocto/docker.cfg new file +1 -0
new file mode 100644
index 0000000..d0ebb66
@@ -0,0 +1 @@
+CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m

I could have sworn that I already ported and merged my docker fragment to meta-virt,

but it looks like I only staged it and never actually did the patch.

To make the fragment as standalone as possible, I'm running with this:

------------

CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m

CONFIG_IP_NF_FILTER=m

CONFIG_NF_NAT=m

CONFIG_NF_CONNTRACK_IPV4=y

CONFIG_DM_THIN_PROVISIONING=m

CONFIG_IP_NF_NAT=m

CONFIG_IP_NF_TARGET_MASQUERADE=m

CONFIG_OVERLAY_FS=y

-------------

I propose to update your fragment with those options and merge the changes that

way.

Any objections ?

Bruce

recipes-kernel/linux/linux-yocto/docker.scc new file +1 -0
new file mode 100644
index 0000000..e317456
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Features needed by docker in addition

to LXC features"

recipes-kernel/linux/linux-yocto/docker.scc new file +3 -0
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware docker.cfg
recipes-kernel/linux/linux-yocto_4.1.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.10.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.4.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.9.bbappend +1 -1
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
--

1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

--

"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
#5 lore raw

/usr/share/docker/check-config.sh
works and is in docker-contrib :).
My miss,
-b

From: Bruce Ashfield <[email protected]>
Date: Monday, July 10, 2017 at 8:44 AM
To: "Avery, Brian" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

On Mon, Jul 10, 2017 at 11:40 AM, Avery, Brian <[email protected]<mailto:[email protected]>> wrote:
One other thought/question: should we include the docker check-config tool? would make it easier for people to track these things down if it changes in the future.

It is currently in the docker-contrib package, since we didn't want it to be always on target. Have you tried including that and it is otherwise broken ?

Bruce

-b

From: <[email protected]<mailto:[email protected]>> on behalf of "Avery, Brian" <[email protected]<mailto:[email protected]>>
Date: Monday, July 10, 2017 at 8:37 AM
To: Bruce Ashfield <[email protected]<mailto:[email protected]>>

Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Subject: Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

Works for me.
ty :)
-b

p.s. working on this did hit bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=8191 when I tried to use linux-intel instead of linux-yocto.

From: Bruce Ashfield <[email protected]<mailto:[email protected]>>
Date: Monday, July 10, 2017 at 8:24 AM
To: "Avery, Brian" <[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Subject: Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

On Fri, Jul 7, 2017 at 7:38 PM, brian avery <[email protected]<mailto:[email protected]>> wrote:
Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start
up successfully. This patch adds it to the supported kernels.

---
 recipes-kernel/linux/linux-yocto/docker.cfg    | 1 +
 recipes-kernel/linux/linux-yocto/docker.scc    | 4 ++++
 recipes-kernel/linux/linux-yocto_4.1.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.10.bbappend | 1 +
 recipes-kernel/linux/linux-yocto_4.4.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.9.bbappend  | 1 +
 6 files changed, 9 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.scc
recipes-kernel/linux/linux-yocto/docker.cfg new file +1 -0
new file mode 100644
index 0000000..d0ebb66
@@ -0,0 +1 @@
+CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m

I could have sworn that I already ported and merged my docker fragment to meta-virt, but it looks like I only staged it and never actually did the patch.

To make the fragment as standalone as possible, I'm running with this:

------------
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
CONFIG_IP_NF_FILTER=m
CONFIG_NF_NAT=m
CONFIG_NF_CONNTRACK_IPV4=y
CONFIG_DM_THIN_PROVISIONING=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_OVERLAY_FS=y
-------------

I propose to update your fragment with those options and merge the changes that way.

Any objections ?

Bruce

recipes-kernel/linux/linux-yocto/docker.scc new file +4 -0
new file mode 100644
index 0000000..e317456
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Features needed by docker in addition to LXC features"
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware docker.cfg
recipes-kernel/linux/linux-yocto_4.1.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.10.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.4.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.9.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 

--
1.9.1

--
_______________________________________________
meta-virtualization mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/meta-virtualization

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#6 lore raw
Quoted 4 lines · Brian

/usr/share/docker/check-config.sh

works and is in docker-contrib :).

Cool. And no worries .. I never doubt that a bug has crept in and I didn't notice it.

Also, there are some pending updates to docker/moby bits and the plumbing, but they are causing
issues at the system level, so its going to be bit longer for updates. But the packaging will stay
the same.

Cheers,

Bruce

My miss,

Quoted 257 lines

-b

*From: *Bruce Ashfield <[email protected]>
*Date: *Monday, July 10, 2017 at 8:44 AM

*To: *"Avery, Brian" <[email protected]>
*Cc: *"[email protected]" <meta-virtualization@ yoctoproject.org>
*Subject: *Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

On Mon, Jul 10, 2017 at 11:40 AM, Avery, Brian <[email protected]> wrote:

One other thought/question: should we include the docker check-config tool? would make it easier for people to track these things down if it changes in the future.

It is currently in the docker-contrib package, since we didn't want it to be always on target. Have you tried including that and it is otherwise broken ?

Bruce

-b

*From: *<[email protected]> on behalf of "Avery, Brian" <[email protected]>
*Date: *Monday, July 10, 2017 at 8:37 AM
*To: *Bruce Ashfield <[email protected]>

*Cc: *"[email protected]" <meta-virtualization@ yoctoproject.org>
*Subject: *Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

Works for me.

ty :)

-b

p.s. working on this did hit bug https://bugzilla.yoctoproject.
org/show_bug.cgi?id=8191 when I tried to use linux-intel instead of linux-yocto.

*From: *Bruce Ashfield <[email protected]> *Date: *Monday, July 10, 2017 at 8:24 AM
*To: *"Avery, Brian" <[email protected]>
*Cc: *"[email protected]" <meta-virtualization@ yoctoproject.org>
*Subject: *Re: [meta-virtualization] [PATCH] docker: add NETFILTER_XT_MATCH_ADDRTYPE=m

On Fri, Jul 7, 2017 at 7:38 PM, brian avery <[email protected]> wrote:

Docker needs ths _NETFILTER_XT_MATCH_ADDRTYPE module in order to start up successfully. This patch adds it to the supported kernels.

---
 recipes-kernel/linux/linux-yocto/docker.cfg    | 1 +
 recipes-kernel/linux/linux-yocto/docker.scc    | 4 ++++
 recipes-kernel/linux/linux-yocto_4.1.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.10.bbappend | 1 +
 recipes-kernel/linux/linux-yocto_4.4.bbappend  | 1 +
 recipes-kernel/linux/linux-yocto_4.9.bbappend  | 1 +
 6 files changed, 9 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/docker.scc
recipes-kernel/linux/linux-yocto/docker.cfg new file +1 -0
new file mode 100644
index 0000000..d0ebb66
@@ -0,0 +1 @@
+CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m

I could have sworn that I already ported and merged my docker fragment to meta-virt,

but it looks like I only staged it and never actually did the patch.

To make the fragment as standalone as possible, I'm running with this:

------------

CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m

CONFIG_IP_NF_FILTER=m

CONFIG_NF_NAT=m

CONFIG_NF_CONNTRACK_IPV4=y

CONFIG_DM_THIN_PROVISIONING=m

CONFIG_IP_NF_NAT=m

CONFIG_IP_NF_TARGET_MASQUERADE=m

CONFIG_OVERLAY_FS=y

-------------

I propose to update your fragment with those options and merge the changes that

way.

Any objections ?

Bruce

recipes-kernel/linux/linux-yocto/docker.scc new file +1 -0
new file mode 100644
index 0000000..e317456
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Features needed by docker in addition

to LXC features"

recipes-kernel/linux/linux-yocto/docker.scc new file +3 -0
+define KFEATURE_COMPATIBILITY board
+
+kconf non-hardware docker.cfg
recipes-kernel/linux/linux-yocto_4.1.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.10.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.4.bbappend +1 -0
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
recipes-kernel/linux/linux-yocto_4.9.bbappend +1 -1
index f3be89e..f163fdf 100644
@@ -4,6 +4,7 @@ SRC_URI += "file://xt-checksum.scc \
             file://ebtables.scc \
            file://vswitch.scc \
            file://lxc.scc \
+            file://docker.scc \
            "
 KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"
 
--

1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

--

"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

--

"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"