Debian 12 CT under a debian 11 host with kernel 6.1 (LXC/LXD)?

Hi,
I have a Debian 11 host, using kernel 6.1.0, and I wonder if I can upgrade one of its CT from Debian 11 to Debian 12. For specific reason, I cannot upgrade the host to Debian 12.

Is that a non-sense? Or is it just an usual Debian migration for that CT ?

Is the situation different for LXC and LXD? (I know LXD have gone out of linuxcontainer.org, but we are running both LXC and LXD here).

That should be fine, Debian 12 should work just fine with the 6.1 kernel you’re using.

1 Like

Yes, that works. I just confirmed it.

root@vm-debian-11-cli:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

root@vm-debian-11-cli:~# uname -a
Linux vm-debian-11-cli 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64 GNU/Linux

root@vm-debian-11-cli:~# lxc list
+--------+---------+------+------+-----------+-----------+
|  NAME  |  STATE  | IPV4 | IPV6 |   TYPE    | SNAPSHOTS |
+--------+---------+------+------+-----------+-----------+
| debian | RUNNING |      |      | CONTAINER | 0         |
+--------+---------+------+------+-----------+-----------+

root@vm-debian-11-cli:~# lxc config show debian
architecture: x86_64
config:
  image.architecture: amd64
  image.description: Debian bookworm amd64 (20230906_05:24)
  image.os: Debian
  image.release: bookworm
  image.serial: "20230906_05:24"
  image.type: squashfs
  image.variant: default
  security.idmap.isolated: "true"
  volatile.base_image: bd2f0e44e1b587ee25abe75065f488ee7f4d44ee5dcd1b2368ea061ccaf1654a
  volatile.cloud-init.instance-id: c737f6de-345b-46d7-a5c1-a8fedc02160f
  volatile.eth0.host_name: veth9423a596
  volatile.eth0.hwaddr: 00:16:3e:ab:ae:4c
  volatile.idmap.base: "1065536"
  volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1065536,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1065536,"Nsid":0,"Maprange":65536}]'
  volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1065536,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1065536,"Nsid":0,"Maprange":65536}]'
  volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":1065536,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1065536,"Nsid":0,"Maprange":65536}]'
  volatile.last_state.power: RUNNING
  volatile.last_state.ready: "false"
  volatile.uuid: 76a8ffba-9b2a-4f23-8eaf-e616b406da12
  volatile.uuid.generation: 76a8ffba-9b2a-4f23-8eaf-e616b406da12
devices: {}
ephemeral: false
profiles:
- default
stateful: false
description: ""