[Request fulfilled] enable container namespace features in Jolla kernel
Starting containers on the Jolla would be an awesome feature.
Please enable the necessary namespace features CONFIG_UTS_NS, CONFIG_IPC_NS, CONFIG_PID_NS, and CONFIG_NET_NS
in the Jolla kernel. This would enable systemd-nspawn
to start containers.
Currently when I try to use systemd-nspawn
I get:
[root@Jolla containers]# systemd-nspawn --read-only -bD Fedora-Minimal-armhfp-21_Beta-4-sda The kernel auditing subsystem is known to be incompatible with containers. Please make sure to turn off auditing with 'audit=0' on the kernel command line before using systemd-nspawn. Sleeping for 5s... Spawning namespace container on /media/sdcard/a1471002-ecc9-4bed-9beb-a5092113fe1f/data/containers/Fedora-Minimal-armhfp-21_Beta-4-sda (console is /dev/pts/4). clone() failed, do you have namespace support enabled in your kernel? (You need UTS, IPC, PID and NET namespacing built in): Invalid argument
Being able to start containers on the Jolla phone would enable users to run many popular Linux distributions w/o actually installing those. Many distributions provide disk images for ARM which can be started as containers.
Update: @anandrkris recommended I bring this request to the sailfish-devel mailing list. Here's the link to the mailing list thread: https://lists.sailfishos.org/pipermail/devel/2014-December/005371.html
I suppose these questions are better discussed over sailfish mailing lists where there is higher chance of developer interaction?
anandrkris ( 2014-12-10 17:12:55 +0200 )editGood point! The TJC community however seem quite technology adept to me so I figured it would be nice to involve those users into the containers idea, too.
t-lo ( 2014-12-10 17:17:03 +0200 )editHmm...agree there are certainly users who are interested and comment their views but dev. visibility is high in ML / IRC. The problem in TJC is that there is a deluge of questions and this could get lost unless thread is very active / highly voted.
anandrkris ( 2014-12-10 17:24:56 +0200 )editI am currently in the process of subscribing to devel@lists.sailfish.org and posting a corresponding request there. Will update the question w/ a link to the mailing list archive thread as soon as it becomes available.
t-lo ( 2014-12-10 17:49:47 +0200 )edit@t-lo: What about Docker ? I don't think it needs nspawn by default so it might be able to run out of the box ? (provided other things it needs are not disabled)
MartinK ( 2014-12-10 18:10:07 +0200 )edit