[SOLVED] LXC Start fehlgeschlagen

BigBen

Well-Known Member
Jun 18, 2015
135
4
58
Germany
Hallo,

nach einem dist-Upgrade kann ein Container Template nicht mehr gestartet werden.

Beim Start wird folgende Fehlermeldung angezeigt:

$ lxc-start -n 111 -F --logfile ~/111.log
input too long - aborting
error in setup task PVE::LXC::Setup::pre_start_hook
lxc-start: conf.c: run_buffer: 342 Script exited with status 1
lxc-start: start.c: lxc_init: 436 failed to run pre-start hooks for container '111'.
lxc-start: start.c: __lxc_start: 1170 failed to initialize the container
lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.

Kann mir jemand mitteilen, woran es liegen kann?
 
Im Debug-Modus werden folgende Angaben ausgegeben:

lxc-start 1457967243.139 ERROR lxc_conf - conf.c:run_buffer:342 - Script exited with status 1
lxc-start 1457967243.139 ERROR lxc_start - start.c:lxc_init:436 - failed to run pre-start hooks for container '111'.
lxc-start 1457967243.139 ERROR lxc_start - start.c:__lxc_start:1170 - failed to initialize the container
lxc-start 1457967243.139 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
lxc-start 1457967243.139 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
lxc-start 1457967290.026 ERROR lxc_conf - conf.c:run_buffer:342 - Script exited with status 1
lxc-start 1457967290.026 ERROR lxc_start - start.c:lxc_init:436 - failed to run pre-start hooks for container '111'.
lxc-start 1457967290.026 ERROR lxc_start - start.c:__lxc_start:1170 - failed to initialize the container
lxc-start 1457967290.026 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
lxc-start 1457967290.026 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
lxc-start 1457967883.705 INFO lxc_start_ui - lxc_start.c:main:264 - using rcfile /var/lib/lxc/111/config
lxc-start 1457967883.705 WARN lxc_confile - confile.c:config_pivotdir:1817 - lxc.pivotdir is ignored. It will soon become an error.
lxc-start 1457967883.706 WARN lxc_cgmanager - cgmanager.c:cgm_get:994 - do_cgm_get exited with error
lxc-start 1457967883.706 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .reject_force_umount # comment this to allow umount -f; not recommended.
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for reject_force_umount action 0
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force umounts

lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for reject_force_umount action 0
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force umounts

lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .[all].
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .kexec_load errno 1.
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for kexec_load action 327681
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for kexec_load action 327681
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .open_by_handle_at errno 1.
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for open_by_handle_at action 327681
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for open_by_handle_at action 327681
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .init_module errno 1.
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for init_module action 327681
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for init_module action 327681
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .finit_module errno 1.
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for finit_module action 327681
lxc-start 1457967883.706 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:233 - Seccomp: got negative # for syscall: finit_module
lxc-start 1457967883.706 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:234 - This syscall will NOT be blacklisted
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for finit_module action 327681
lxc-start 1457967883.706 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:233 - Seccomp: got negative # for syscall: finit_module
lxc-start 1457967883.706 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:234 - This syscall will NOT be blacklisted
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .delete_module errno 1.
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for delete_module action 327681
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for delete_module action 327681
lxc-start 1457967883.706 INFO lxc_seccomp - seccomp.c:parse_config_v2:436 - Merging in the compat seccomp ctx into the main one
lxc-start 1457967883.706 INFO lxc_conf - conf.c:run_script_argv:362 - Executing script '/usr/share/lxc/hooks/lxc-pve-prestart-hook' for container '111', config section 'lxc'
lxc-start 1457967884.104 ERROR lxc_conf - conf.c:run_buffer:342 - Script exited with status 1
lxc-start 1457967884.104 ERROR lxc_start - start.c:lxc_init:436 - failed to run pre-start hooks for container '111'.
lxc-start 1457967884.104 ERROR lxc_start - start.c:__lxc_start:1170 - failed to initialize the container
lxc-start 1457967884.104 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
lxc-start 1457967884.104 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.


In der Configuration stehen folgende Angaben:

arch: amd64
cpulimit: 1
cpuunits: 1024
hostname: fsystem
memory: 512
mp1: /mnt/fsystem,mp=/mnt/fsystem
mp2: /mnt/clh-net/scripts,mp=/usr/local/sh
net0: bridge=vmbr0,hwaddr=3A:34:62:33:61:35,ip=dhcp,ip6=dhcp,name=eth0,type=veth
onboot: 1
ostype: debian
rootfs: local:111/vm-111-disk-1.raw,size=8G
startup: order=90
swap: 512
 
Habe die konkrete Ursache nicht finden können.

Um dennoch das System wieder zum Laufen bringen zu können, wurde ein neues Container Template mit den identischen Angaben erstellt.

Anschließend wurden alle Pakete via apt-get erneut instaliert.

Abschließend wurde das "defekte" im Host-System gemountet und aus dieser alle angepassten Konfigurationsdateien in das neue Festplatten-Image kopiert.

Nach einem System-Neustart waren ale Services wieder da, wie vor dem Fehlverhalten.
 

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!