I'm having issues understanding what is causing my container to fail on start. I am running PVE7.1 and have the container config below (nano /etc/pve/lxc/201.conf)
Running a log on container start produces this:
I appreciate anyone's assistance on this in advance - Steve
Code:
arch: amd64
cores: 4
features: mount=nfs;cifs,nesting=1
hostname: jarvis.plex
memory: 4096
mp0: /mnt/pve/qnap.media.smb,mp=/mnt/plex
net0: name=eth0,bridge=vmbr0,firewall=1,gw=10.10.100.1,hwaddr=EE:11:23:26:BF:31,ip=10.10.100.201/24,type=veth
ostype: ubuntu
rootfs: qnap.proxmox.smb:201/vm-201-disk-0.raw,size=12G
swap: 512
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.autodev: 1
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file
Running a log on container start produces this:
Code:
root@pve:/usr/share/lxc/hooks# lxc-start -n 201 -F -lDEBUG -o lxc-201.log
lxc-start: 201: conf.c: run_buffer: 321 Script exited with status 255
lxc-start: 201: start.c: lxc_init: 846 Failed to run lxc.hook.pre-start for container "201"
lxc-start: 201: start.c: __lxc_start: 2002 Failed to initialize container "201"
lxc-start: 201: conf.c: run_buffer: 321 Script exited with status 1
lxc-start: 201: start.c: lxc_end: 987 Failed to run lxc.hook.post-stop for container "201"
lxc-start: 201: tools/lxc_start.c: main: 306 The container failed to start
lxc-start: 201: tools/lxc_start.c: main: 311 Additional information can be obtained by setting the --logfile and --logpriority options
root@pve:/usr/share/lxc/hooks# cat lxc-201.log
lxc-start 201 20220107190904.472 INFO lsm - lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
lxc-start 201 20220107190904.472 INFO conf - conf.c:run_script_argv:337 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "201", config section "lxc"
lxc-start 201 20220107190950.331 DEBUG conf - conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 201 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/rootfs: can't read superblock on /dev/loop2.
lxc-start 201 20220107190950.355 DEBUG conf - conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 201 lxc pre-start produced output: command 'mount /dev/loop2 /var/lib/lxc/.pve-staged-mounts/rootfs' failed: exit code 32
lxc-start 201 20220107190950.364 ERROR conf - conf.c:run_buffer:321 - Script exited with status 255
lxc-start 201 20220107190950.364 ERROR start - start.c:lxc_init:846 - Failed to run lxc.hook.pre-start for container "201"
lxc-start 201 20220107190950.364 ERROR start - start.c:__lxc_start:2002 - Failed to initialize container "201"
lxc-start 201 20220107190950.364 INFO conf - conf.c:run_script_argv:337 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "201", config section "lxc"
lxc-start 201 20220107190950.804 DEBUG conf - conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 201 lxc post-stop produced output: umount: /var/lib/lxc/201/rootfs: not mounted
lxc-start 201 20220107190950.804 DEBUG conf - conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 201 lxc post-stop produced output: command 'umount --recursive -- /var/lib/lxc/201/rootfs' failed: exit code 1
lxc-start 201 20220107190950.813 ERROR conf - conf.c:run_buffer:321 - Script exited with status 1
lxc-start 201 20220107190950.813 ERROR start - start.c:lxc_end:987 - Failed to run lxc.hook.post-stop for container "201"
lxc-start 201 20220107190950.813 ERROR lxc_start - tools/lxc_start.c:main:306 - The container failed to start
lxc-start 201 20220107190950.813 ERROR lxc_start - tools/lxc_start.c:main:311 - Additional information can be obtained by setting the --logfile and --logpriority options
I appreciate anyone's assistance on this in advance - Steve