LXC container fails to start

leonardodias

New Member
Jul 21, 2022
2
0
1
Please ask for help. After sudden server shutdown, I can't start an LXC container.
The debug output is as follows.
Who can guide, thank you SO MUCH

run_buffer: 316 Script exited with status 32
lxc_init: 816 Failed to run lxc.hook.pre-start for container "45705220"
__lxc_start: 2007 Failed to initialize container "45705220"
hostid 100000 range 65536
INFO lsm - lsm/lsm.c:lsm_init_static:40 - Initialized LSM security driver AppArmor
INFO conf - conf.c:run_script_argv:332 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "45705220", config section "lxc"
DEBUG conf - conf.c:run_buffer:305 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 45705220 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/rootfs: special device /dev/pve/vm-45705220-disk-0 does not exist.

DEBUG conf - conf.c:run_buffer:305 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 45705220 lxc pre-start produced output: command 'mount /dev/pve/vm-45705220-disk-0 /var/lib/lxc/.pve-staged-mounts/rootfs' failed: exit code 32

ERROR conf - conf.c:run_buffer:316 - Script exited with status 32
ERROR start - start.c:lxc_init:816 - Failed to run lxc.hook.pre-start for container "45705220"
ERROR start - start.c:__lxc_start:2007 - Failed to initialize container "45705220"
INFO conf - conf.c:run_script_argv:332 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "45705220", config section "lxc"
 
Container description...

root@sf11:~# pct start 45705220
run_buffer: 316 Script exited with status 32
lxc_init: 816 Failed to run lxc.hook.pre-start for container "45705220"
__lxc_start: 2007 Failed to initialize container "45705220"
startup for container '45705220' failed
root@sf11:~# pct config 45705220
arch: amd64
cores: 1
description: owncloud
features: nesting=1
hostname: nuvem20
memory: 2048
nameserver: 8.8.8.8
net0: name=eth0,bridge=vmbr0,firewall=1,gw=138.97.118.65,hwaddr=D6:CB:15:0F:AE:22,ip=138.97.118.71/28,type=veth
onboot: 1
ostype: debian
parent: vzdump
rootfs: local-lvm:vm-45705220-disk-0,size=1000G
swap: 1024
unprivileged: 1
root@sf11:~#