Ubuntu LXC cannot start after updating Ubuntu

hika

New Member
Jan 21, 2024
1
0
1
Hi everyone:

I rebooted Ubuntu by running "sudo do-release-upgrade -d" and it stopped booting.
Any help greatly appreciated.

pct start 100 --debug
run_buffer: 321 Script exited with status 255
lxc_init: 847 Failed to run lxc.hook.pre-start for container "100"
__lxc_start: 2008 Failed to initialize container "100"
0 hostid 100000 range 65536
INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
INFO conf - ../src/lxc/conf.c:run_script_argv:337 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "100", config section "lxc"
DEBUG conf - ../src/lxc/conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 100 lxc pre-start produced output: unsupported Ubuntu version '24.04'

ERROR conf - ../src/lxc/conf.c:run_buffer:321 - Script exited with status 255
ERROR start - ../src/lxc/start.c:lxc_init:847 - Failed to run lxc.hook.pre-start for container "100"
ERROR start - ../src/lxc/start.c:__lxc_start:2008 - Failed to initialize container "100"
INFO conf - ../src/lxc/conf.c:run_script_argv:337 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "100", config section "lxc"
startup for container '100' failed

lxc-start -n 100 -F -lDEBUG -o lxc-100.log
lxc-start: 100: ../src/lxc/conf.c: run_buffer: 321 Script exited with status 255
lxc-start: 100: ../src/lxc/start.c: lxc_init: 847 Failed to run lxc.hook.pre-start for container "100"
lxc-start: 100: ../src/lxc/start.c: __lxc_start: 2008 Failed to initialize container "100"
lxc-start: 100: ../src/lxc/tools/lxc_start.c: main: 306 The container failed to start
lxc-start: 100: ../src/lxc/tools/lxc_start.c: main: 311 Additional information can be obtained by setting the --logfile and --logpriority options

pct mount 100
mounted CT 100 in '/var/lib/lxc/100/rootfs'

pct config 100

arch: amd64
cores: 6
features: nesting=1
hostname: mainserver
lock: mounted
memory: 12288
mp0: data:vm-100-disk-0,mp=/home/mainserver/HDD,backup=1,size=64G
net0: name=eth0,bridge=vmbr1,firewall=1,hwaddr=AA:BC:C6:A9:B5:D2,ip=192.168.3.10/24,type=veth
net2: name=eth3,bridge=vmbr5,firewall=1,gw=192.168.5.1,hwaddr=A2:03:E6:1A:75:F0,ip=192.168.5.101/24,type=veth
onboot: 0
ostype: ubuntu
rootfs: local-lvm:vm-100-disk-0,size=50G
startup: order=3
swap: 4096
unprivileged: 1
 
unsupported Ubuntu version '24.04'

It is simply not supported yet:

There exists also the ostype: unmanaged [1], which I assume circumvents the OS version check, but I have no knowledge which impact changing to this (now) would have...

[1] https://pve.proxmox.com/pve-docs/chapter-pct.html#_guest_operating_system_configuration
 
Last edited:
  • Like
Reactions: MON@H

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!