[RESOLVED] LXC not starting

fakker

New Member
Apr 2, 2022
6
0
1
We had a powercut and since then, one of my vms won't start. It's Plex (installed via TTeck github). Other vms have started up fine, but this one just won't boot and I'm way out of my depth trying to figure out why!!

The output from the start task is

Code:
run_buffer: 321 Script exited with status 255
lxc_init: 846 Failed to run lxc.hook.pre-start for container "105"
__lxc_start: 2002 Failed to initialize container "105"
TASK ERROR: startup for container '105' failed

Below is the set up ("Homer" is a mounted 1TB drive).

1699291946453.png

Code:
sdc                            8:32   0 931.5G  0 disk
└─sdc1                         8:33   0 931.5G  0 part /mnt/pve/Homer

Any ideas?? I'm stumped. My linux experience is very very limited.
 
Could you please run pct start 105 --debug in the shell of your Proxmox VE host and post the output here.
 
Thank you - here's the output

Code:
root@pve:~# pct start 105 --debug
run_buffer: 321 Script exited with status 255
lxc_init: 846 Failed to run lxc.hook.pre-start for container "105"
__lxc_start: 2002 Failed to initialize container "105"
ve-prestart-hook" for container "105", config section "lxc"
DEBUG    conf - conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 105 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/mp0: wrong fs type, bad option, bad superblock on /dev/loop3, missing codepage or helper program, or other error.

DEBUG    conf - conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 105 lxc pre-start produced output: command 'mount /dev/loop3 /var/lib/lxc/.pve-staged-mounts/mp0' failed: exit code 32

ERROR    conf - conf.c:run_buffer:321 - Script exited with status 255
ERROR    start - start.c:lxc_init:846 - Failed to run lxc.hook.pre-start for container "105"
ERROR    start - start.c:__lxc_start:2002 - Failed to initialize container "105"
INFO     conf - conf.c:run_script_argv:337 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "105", config section "lxc"
startup for container '105' failed
 
It seems like the file system of vm-105-disk-1.raw got corrupted. You can try repairing it by running a file system check.
Code:
pct fsck 105 -device mp0
 
It seems like the file system of vm-105-disk-1.raw got corrupted. You can try repairing it by running a file system check.
Code:
pct fsck 105 -device mp0
Perfect, thank you! I got some message saying the super block didn't matching something-or-other... then "fixed!"

Brilliant. Thank you!! :)
 

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!