LXD-3.7 with downgraded kernel

(Tomasz Stankiewicz) #1


I have small server running Debian-9.6
with various kernels available, amongst them:

4.1.0-2-amd64 #1 SMP Debian 4.1.6-1 (2015-08-23)
4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27)

Successfully deployed LXD-3.7 and created containers
that work O.K. with kernel 4.9.0-8

However, for particular and specific reasons
I need to run server with kernel 4.1.0-2

There the issue begins… No way to use LXD!!!
Attempt to start container makes system unusable.
Hard reset is the only way to recover from weird state.

Searching for solution, in the meantime successfully installed
disto lxc-2.0.7-2, created some privileged containers,
then without much hassle converted them into unprivileged ones.
This works pretty O.K., so far…

My question is, whether and how I can use
LXD-3.7 with downgraded kernel?

Will appreciate all suggestions and directives.

Best regards.


Both kernel versions are recent and should be ok.
The issue is with the configured options in each kernel. That it, one kernel may support more things than the other.

(Tomasz Stankiewicz) #3


Your post inspired me to gave it a whirl…

Well, surely there are differences in configure options in both kernels.
Kernel 4.1.6 is dated back to 17 Aug 2015 whereas kernel 4.9.130
dated 29 Sep 2018 is actually recent - that’s simply another era in this area.

Did some research inspecting visually “make menuconfig” screens for both kernels.
Looking only at “Control Group Support” chapters I see quite a few differences.
Made diff of .config files for both kernels. Here A LOT of changes, removals
and additions - not surprising…

Asked myself if there’s real chance to get working LXD-3.7 with kernel 4.1.6 ?
Frankly speaking, I don’t know. It’s something beyond my skills, I suppose.
Any other suggestions, please?

Best regards.


If you can post the “config” file of the old kernel, the it should be easy to figure out what is missing. You can put it on pastebin and post the URL here.

(Tomasz Stankiewicz) #5


Will do ASAP.
Thank you very much.

Best regards.

(Tomasz Stankiewicz) #6


O.K. here we go:


Best regards.

(Tomasz Stankiewicz) #7


There is 4.9.130 .config:


Best regards.

(Tomasz Stankiewicz) #8


BTW, Stéphane’s pastebinit CLI tool works GREAT!

Best regards.