[SOLVED] LXC Container is not starting anymore

Marty566

New Member
Sep 19, 2022
14
1
3
I am lost. After having my promox server running for weeks without a reboot, I had to reboot it.
Now one LXC Container is not starting anymore.

Code:
run_buffer: 321 Script exited with status 9
lxc_init: 847 Failed to run lxc.hook.pre-start for container "100"
__lxc_start: 2008 Failed to initialize container "100"
TASK ERROR: startup for container '100' failed

My lxc contain config is

Code:
arch: amd64
cores: 2
features: nesting=1
hostname: iobroker
memory: 8000
mp0: local-lvm:vm-100-disk-1,mp=/mnt/recordings,size=180G
mp1: timemachine:100/vm-100-disk-0.raw,mp=/mnt/timemachine,size=920G
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=42:F1:60:D9:D1:60,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-100-disk-0,size=30G
swap: 512
unprivileged: 1
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_16062b40fd19ec1191ed74e5f01c6278-if00-port0 dev/seri>
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.mount.entry: /var/lib/lxc/100/devices/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
lxc.cgroup2.memory.high: 7549747200

I am lost.

extended log file
Code:
pct start 100 --debug
run_buffer: 321 Script exited with status 9
lxc_init: 847 Failed to run lxc.hook.pre-start for container "100"
__lxc_start: 2008 Failed to initialize container "100"
id 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: storage 'timemachine' does not support containers

ERROR    conf - ../src/lxc/conf.c:run_buffer:321 - Script exited with status 9
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/lxc/hooks/lxc-pve-poststop-hook" for container "100", config section "lxc"
startup for container '100' failed

Update: I found the bug. It was the configuration of the Time Machine LVM which I incidentally changed.
 
Last edited:

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!