lxc can't start

liquidsnake9

New Member
Jun 5, 2023
2
0
1
lxc stop automatic,then can't start
Debug log:
Bash:
>pct start 102 --debug
explicitly configured lxc.apparmor.profile overrides the following settings: features:fuse, features:nesting, features:mount
run_buffer: 322 Script exited with status 255
lxc_init: 844 Failed to run lxc.hook.pre-start for container "102"
__lxc_start: 2027 Failed to initialize container "102"
-hook" for container "102", config section "lxc"
DEBUG    conf - ../src/lxc/conf.c:run_buffer:311 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 102 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/rootfs: can't read superblock on /dev/loop1.

DEBUG    conf - ../src/lxc/conf.c:run_buffer:311 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 102 lxc pre-start produced output: command 'mount /dev/loop1 /var/lib/lxc/.pve-staged-mounts/rootfs' failed: exit code 32

ERROR    conf - ../src/lxc/conf.c:run_buffer:322 - Script exited with status 255
ERROR    start - ../src/lxc/start.c:lxc_init:844 - Failed to run lxc.hook.pre-start for container "102"
ERROR    start - ../src/lxc/start.c:__lxc_start:2027 - Failed to initialize container "102"
INFO     conf - ../src/lxc/conf.c:run_script_argv:338 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "102", config section "lxc"
startup for container '102' failed
 
Hi,
seems like the filesystem of you rootfs got corrupted. Please post the output of pct config 102 as well as cat /etc/pve/storage.cfg.