mbox series

[0/1] linux-cip: add kernel config snippet for container compatibility

Message ID 20250108100755.55673-1-michael.adler@siemens.com (mailing list archive)
Headers show
Series linux-cip: add kernel config snippet for container compatibility | expand

Message

Michael Adler Jan. 8, 2025, 10:07 a.m. UTC
While the cip-core x86-64 kernel configuration includes the necessary options
for container engines like Docker, the arm64 configuration does not.
I have identified the required kernel configuration options to ensure
compatibility with Docker and Podman.
Instead of integrating these options directly into the arm64 configuration, I
am providing them as a drop-in snippet to support custom kernel
configurations.

Note: I am open to feedback on whether this should remain a drop-in snippet or
be merged into the default configuration.


Michael Adler (1):
  linux-cip: add kernel config snippet for container compatibility

 conf/machine/qemu-amd64.conf              |   1 +
 conf/machine/qemu-arm64.conf              |   1 +
 recipes-kernel/linux/files/container.cfg  | 114 ++++++++++++++++++++++
 recipes-kernel/linux/linux-cip-common.inc |   5 +
 4 files changed, 121 insertions(+)
 create mode 100644 recipes-kernel/linux/files/container.cfg

Comments

MOESSBAUER, Felix Jan. 8, 2025, 10:17 a.m. UTC | #1
On Wed, 2025-01-08 at 11:07 +0100, Michael Adler wrote:
> While the cip-core x86-64 kernel configuration includes the necessary
> options
> for container engines like Docker, the arm64 configuration does not.
> I have identified the required kernel configuration options to ensure
> compatibility with Docker and Podman.
> Instead of integrating these options directly into the arm64
> configuration, I
> am providing them as a drop-in snippet to support custom kernel
> configurations.
> 
> Note: I am open to feedback on whether this should remain a drop-in
> snippet or
> be merged into the default configuration.

Hi, IMHO this should be merged into the cip defconf. At least the non-
arch specific features should be consistent across architectures.

Putting Nobuhiro in CC, as he maintains the cip kernel config.

We further should validate the both platforms with the runc checker
script:
https://github.com/opencontainers/runc/blob/main/script/check-config.sh

Best regards,
Felix

> 
> 
> Michael Adler (1):
>   linux-cip: add kernel config snippet for container compatibility
> 
>  conf/machine/qemu-amd64.conf              |   1 +
>  conf/machine/qemu-arm64.conf              |   1 +
>  recipes-kernel/linux/files/container.cfg  | 114
> ++++++++++++++++++++++
>  recipes-kernel/linux/linux-cip-common.inc |   5 +
>  4 files changed, 121 insertions(+)
>  create mode 100644 recipes-kernel/linux/files/container.cfg
>
Jan Kiszka Jan. 9, 2025, 7:58 a.m. UTC | #2
On 08.01.25 11:17, MOESSBAUER, Felix wrote:
> On Wed, 2025-01-08 at 11:07 +0100, Michael Adler wrote:
>> While the cip-core x86-64 kernel configuration includes the necessary
>> options
>> for container engines like Docker, the arm64 configuration does not.
>> I have identified the required kernel configuration options to ensure
>> compatibility with Docker and Podman.
>> Instead of integrating these options directly into the arm64
>> configuration, I
>> am providing them as a drop-in snippet to support custom kernel
>> configurations.
>>
>> Note: I am open to feedback on whether this should remain a drop-in
>> snippet or
>> be merged into the default configuration.
> 
> Hi, IMHO this should be merged into the cip defconf. At least the non-
> arch specific features should be consistent across architectures.

It must be merged there to have practical effect: support scope
extension, test coverage for the kernel.

Once merged, please propose a patch for isar-cip-core to bump the
cip-kernel-config revision here (and tag it with [isar-cip-core], please).

Thanks,
Jan

> 
> Putting Nobuhiro in CC, as he maintains the cip kernel config.
> 
> We further should validate the both platforms with the runc checker
> script:
> https://github.com/opencontainers/runc/blob/main/script/check-config.sh
> 
> Best regards,
> Felix
> 
>>
>>
>> Michael Adler (1):
>>   linux-cip: add kernel config snippet for container compatibility
>>
>>  conf/machine/qemu-amd64.conf              |   1 +
>>  conf/machine/qemu-arm64.conf              |   1 +
>>  recipes-kernel/linux/files/container.cfg  | 114
>> ++++++++++++++++++++++
>>  recipes-kernel/linux/linux-cip-common.inc |   5 +
>>  4 files changed, 121 insertions(+)
>>  create mode 100644 recipes-kernel/linux/files/container.cfg
>>
>