LXC containers not start after reboot

vadavo

Member
Dec 20, 2015
16
0
21
34
Hello,

We have conferred two LXC containers in a node (Without cluster configured) and Debian 8 as Guest OS.

After reboot, containers are not starting. (In the past the has been rebooted ok).

lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.

Trying with extended log, the information is the same:

lxc-start 1451004401.792 ERROR lxc_conf - conf.c:run_buffer:342 - Script exited with status 1
lxc-start 1451004401.792 ERROR lxc_start - start.c:lxc_init:436 - failed to run pre-start hooks for container '201'.
lxc-start 1451004401.792 ERROR lxc_start - start.c:__lxc_start:1170 - failed to initialize the container
lxc-start 1451004406.798 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
lxc-start 1451004406.798 ERROR lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.
lxc-start 1451004406.798 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.


We have tried to set, in config of lcx container, the line:

lxc.aa_allow_incomplete = 1

But not function.

Has anyone had the same problem? Have you been able to solve?
 
Hi,

We try the command. And this is the result:

Code:
      lxc-start 1451045845.319 INFO     lxc_start_ui - lxc_start.c:main:264 - using rcfile /var/lib/lxc/201/config
      lxc-start 1451045845.319 WARN     lxc_confile - confile.c:config_pivotdir:1817 - lxc.pivotdir is ignored.  It will soon become an error.
      lxc-start 1451045845.321 WARN     lxc_cgmanager - cgmanager.c:cgm_get:994 - do_cgm_get exited with error
      lxc-start 1451045845.321 INFO     lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
      lxc-start 1451045845.321 INFO     lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .reject_force_umount  # comment this to allow umount -f;  not recommended.
      lxc-start 1451045845.321 INFO     lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for reject_force_umount action 0
      lxc-start 1451045845.321 INFO     lxc_seccomp - seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force umounts

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

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

can you also post the conf file?
Code:
cat /etc/pve/lxc/201.conf

with the debug info and .conf file maybe others will be able to help.
 
@vadavo,

Can you try to do a
Code:
apt-get update
apt-get upgrade

It seems this cgm error is connected to having components of the LXC system in different incompatible versions.
 
Code:
 pveversion -v
proxmox-ve: 4.1-28 (running kernel: 4.2.6-1-pve)
pve-manager: 4.1-2 (running version: 4.1-2/78c5f4a2)
pve-kernel-4.2.6-1-pve: 4.2.6-28
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 0.17.2-1
pve-cluster: 4.0-29
qemu-server: 4.0-42
pve-firmware: 1.1-7
libpve-common-perl: 4.0-42
libpve-access-control: 4.0-10
libpve-storage-perl: 4.0-38
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.4-18
pve-container: 1.0-35
pve-firewall: 2.0-14
pve-ha-manager: 1.0-16
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-5
lxcfs: 0.13-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve6~jessie
openvswitch-switch: 2.3.2-2
root@nd:~#

Code:
cat /etc/pve/lxc/201.conf
arch: amd64
cpulimit: 4
cpuunits: 1024
hostname: relay01
memory: 4096
nameserver: 8.8.8.8
net0: bridge=vmbr0,gw=x.x.x.x,hwaddr=66:30:36:35:36:64,ip=x.x.x.x/24,name=eth0,type=veth
ostype: debian
rootfs: local:201/vm-201-disk-1.raw,size=80G
searchdomain: x.x.x.x
swap: 4096
root@nd:~#

Thanks!
 
Hello,

This is the result:

Code:
md5sum /usr/share/lxc/hooks/lxc-pve-prestart-hook
a22dddd26b04bfd260d0aa1afd2ca7e0  /usr/share/lxc/hooks/lxc-pve-prestart-hook

Thanks!
 
I am not sure, but maybe the latest fix for pve-cluster can fix this issue also. Please can you test:

# wget ftp://download1.proxmox.com/debian/dists/jessie/pvetest/binary-amd64/pve-cluster-dbg_4.0-30_amd64.deb
# dpkg -i pve-cluster-dbg_4.0-30_amd64.deb

Does this fix the problem? If not, please can you post the output of 'lxc-start -n 201 -F' again?
 
Hello,

Maybe, it is informative to see the modification time and contents of the file:
/var/lib/lxc/201/config

The error itself seems to imply cgmanager, but could also mean incomplete configuration or binary components. This last explanation has already been ruled out. It would do no harm on the host system to check:
Code:
cgm listcontrollers
cgm listchildren memory
 
I am getting the same error :-

Tried all the above steps as mentioned, however, nothing resolved the issue.
Anyone has any further resolutions. Please note I am new to proxmox.
 

Attachments

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!