[SOLVED] container doesn't start :

kloy

Renowned Member
Jan 9, 2012
8
0
66
hello,

i'd like to migrate a container form one PVE5.0-23 box to another using the same version (fresh new install).

So, i made a backup on the first node, and restore on the other one and the container doesn't start on the new node :

Job for lxc@100.service failed because the control process exited with error code.
See "systemctl status lxc@100.service" and "journalctl -xe" for details.
TASK ERROR: command 'systemctl start lxc@100' failed: exit code 1
if i try
lxc-start -n 100 -d --logfile nico.log -l debug
lxc-start: tools/lxc_start.c: main: 366 The container failed to start.
lxc-start: tools/lxc_start.c: main: 368 To get more details, run the container in foreground mode.
lxc-start: tools/lxc_start.c: main: 370 Additional information can be obtained by setting the --logfile and --logpriority options.​

here is the log
lxc-start 20170810120644.768 INFO lxc_start_ui - tools/lxc_start.c:main:275 - using rcfile /var/lib/lxc/100/config
lxc-start 20170810120644.769 WARN lxc_confile - confile.c:config_pivotdir:2022 - lxc.pivotdir is ignored. It will soon become an error.
lxc-start 20170810120644.771 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:330 - Going to wait for pid 4795.
lxc-start 20170810120644.772 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:349 - Trying to sync with child process.
lxc-start 20170810120644.773 INFO lxc_start - start.c:lxc_check_inherited:235 - Closed inherited fd: 4.
lxc-start 20170810120644.773 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:387 - Using pipe file descriptor 5 for monitord.
lxc-start 20170810120644.788 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:364 - Successfully synced with child process.
lxc-start 20170810120644.790 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:333 - Finished waiting on pid 4795.
lxc-start 20170810120644.791 INFO lxc_container - lxccontainer.c:do_lxcapi_start:802 - Attempting to set proc title to [lxc monitor] /var/lib/lxc 100
lxc-start 20170810120644.794 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
lxc-start 20170810120644.795 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:330 - Going to wait for pid 4799.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:418 - processing: .reject_force_umount # comment this to allow umount -f; not recommended.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:590 - Adding native rule for reject_force_umount action 0.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:259 - Setting Seccomp rule to reject force umounts.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:593 - Adding compat rule for reject_force_umount action 0.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:259 - Setting Seccomp rule to reject force umounts.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:259 - Setting Seccomp rule to reject force umounts.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:418 - processing: .[all].
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:418 - processing: .kexec_load errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:590 - Adding native rule for kexec_load action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:593 - Adding compat rule for kexec_load action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:418 - processing: .open_by_handle_at errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:590 - Adding native rule for open_by_handle_at action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:593 - Adding compat rule for open_by_handle_at action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:418 - processing: .init_module errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:590 - Adding native rule for init_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:593 - Adding compat rule for init_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:418 - processing: .finit_module errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:590 - Adding native rule for finit_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:593 - Adding compat rule for finit_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:418 - processing: .delete_module errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:590 - Adding native rule for delete_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.c:parse_config_v2:593 - Adding compat rule for delete_module action 327681.
lxc-start 20170810120644.796 INFO lxc_seccomp - seccomp.c:parse_config_v2:603 - Merging in the compat Seccomp ctx into the main one.
lxc-start 20170810120644.796 INFO lxc_conf - conf.c:run_script_argv:483 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "100", config section "lxc".
lxc-start 20170810120644.796 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:349 - Trying to sync with child process.
lxc-start 20170810120644.797 INFO lxc_start - start.c:lxc_check_inherited:235 - Closed inherited fd: 4.
lxc-start 20170810120644.797 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:387 - Using pipe file descriptor 5 for monitord.
lxc-start 20170810120644.813 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:364 - Successfully synced with child process.
lxc-start 20170810120644.815 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:333 - Finished waiting on pid 4799.
lxc-start 20170810120644.815 INFO lxc_monitor - monitor.c:lxc_monitor_sock_name:201 - using monitor socket name "lxc/ad055575fe28ddd5//var/lib/lxc" (length of socket name 33 must be <= 105)
lxc-start 20170810120644.815 DEBUG lxc_monitor - monitor.c:lxc_monitor_open:225 - opening monitor socket lxc/ad055575fe28ddd5//var/lib/lxc with len 33
lxc-start 20170810120644.471 ERROR lxc_conf - conf.c:run_buffer:464 - Script exited with status 25.
lxc-start 20170810120644.471 ERROR lxc_start - start.c:lxc_init:450 - Failed to run lxc.hook.pre-start for container "100".
lxc-start 20170810120644.471 ERROR lxc_start - start.c:__lxc_start:1337 - Failed to initialize container "100".
lxc-start 20170810120644.471 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:177 - Command get_cgroup failed to receive response: Connection reset by peer.
lxc-start 20170810120649.476 ERROR lxc_start_ui - tools/lxc_start.c:main:366 - The container failed to start.
lxc-start 20170810120649.476 ERROR lxc_start_ui - tools/lxc_start.c:main:368 - To get more details, run the container in foreground mode.
lxc-start 20170810120649.476 ERROR lxc_start_ui - tools/lxc_start.c:main:370 - Additional information can be obtained by setting the --logfile and --logpriority options.​



My config :pveversion -v

proxmox-ve: 5.0-15 (running kernel: 4.10.15-1-pve)
pve-manager: 5.0-23 (running version: 5.0-23/af4267bf)
pve-kernel-4.10.15-1-pve: 4.10.15-15
libpve-http-server-perl: 2.0-5
lvm2: 2.02.168-pve2
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-10
qemu-server: 5.0-12
pve-firmware: 2.0-2
libpve-common-perl: 5.0-16
libpve-guest-common-perl: 2.0-11
libpve-access-control: 5.0-5
libpve-storage-perl: 5.0-12
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-2
pve-docs: 5.0-6
pve-qemu-kvm: 2.9.0-2
pve-container: 2.0-14
pve-firewall: 3.0-1
pve-ha-manager: 2.0-2
ksm-control-daemon: 1.2-2
glusterfs-client: 3.8.8-1
lxc-pve: 2.0.8-3
lxcfs: 2.0.7-pve2
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1
zfsutils-linux: 0.6.5.9-pve16~bpo90
cat /etc/debian-version -> 9.1

cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content vztmpl,iso,backup

lvmthin: local-lvm
thinpool data
vgname pve
content images,rootdir

lvmthin: SDB1
thinpool vol1
vgname pveSDB
content images,rootdir
cat /var/lib/lxc/100/config

lxc.arch = amd64
lxc.include = /usr/share/lxc/config/debian.common.conf
existlxc.monitor.unshare = 1
lxc.tty = 2
lxc.environment = TERM=linux
lxc.utsname = dev2017.ideoideal.com
lxc.cgroup.memory.limit_in_bytes = 31457280000
lxc.cgroup.memory.memsw.limit_in_bytes = 32531021824
lxc.cgroup.cpu.shares = 1024
lxc.rootfs = /var/lib/lxc/100/rootfs
lxc.network.type = veth
lxc.network.veth.pair = veth100i0
lxc.network.hwaddr = 06:28:D9:11:6B:3D
lxc.network.name = eth0
lxc.cgroup.cpuset.cpus = 0-4,6-7

cat /etc/pve/lxc/100.conf

arch: amd64
cores: 7
hostname: dev2017.ideoideal.com
memory: 30000
nameserver: 85.14.188.238
net0: name=eth0,bridge=vmbr0,gw=85.14.138.1,hwaddr=06:28:D9:11:6B:3D,ip=85.14.138.25/25,type=veth
ostype: debian
rootfs: SDB1:vm-100-disk-2,size=100G
searchdomain: ideoideal.com
swap: 1024​

and /usr/share/lxc/config/debian.common.conf exist...

do you have any idear ?

thanks in advance.
Nico


 
Last edited:
there is an updated package for pve-container which contains a fix for debian version detection, so please upgrade to the latest version
 
upgraded to 5.0-30 : it solved the problem.

you really do a great job...

Thanks.

Nico
 
I have exactly the same problem on Proxmox / debian 9.1. Upgraded to 5.0-30 but still doesn't work. Any ideas?

lxc-start -n 101 -d --logfile log.log -l debug
(log.log attached to this post)

Package versions:
proxmox-ve: 5.0-20 (running kernel: 4.10.17-2-pve)
pve-manager: 5.0-30 (running version: 5.0-30/5ab26bc)
pve-kernel-4.10.17-2-pve: 4.10.17-20
libpve-http-server-perl: 2.0-6
lvm2: 2.02.168-pve3
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-12
qemu-server: 5.0-15
pve-firmware: 2.0-2
libpve-common-perl: 5.0-16
libpve-guest-common-perl: 2.0-11
libpve-access-control: 5.0-6
libpve-storage-perl: 5.0-14
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-2
pve-docs: 5.0-9
pve-qemu-kvm: 2.9.0-4
pve-container: 2.0-15
pve-firewall: 3.0-2
pve-ha-manager: 2.0-2
ksm-control-daemon: not correctly installed
glusterfs-client: 3.8.8-1
lxc-pve: 2.0.8-3
lxcfs: 2.0.7-pve4
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1

/etc/pve/storage.cfg
dir: local
path /var/lib/vz
content images,rootdir
maxfiles 0
shared 0

dir: backupdisk
path /mnt/backup_01/fmonera
content backup
maxfiles 3
shared 0

dir: templates
path /mnt/backup_01/proxmox
content iso,vztmpl
maxfiles 1
shared 0


/var/lib/lxc/101/config
lxc.arch = amd64
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.include = /usr/share/lxc/config/debian.userns.conf
lxc.monitor.unshare = 1
lxc.id_map = u 0 100000 65536
lxc.id_map = g 0 100000 65536
lxc.tty = 2
lxc.environment = TERM=linux
lxc.utsname = test
lxc.cgroup.memory.limit_in_bytes = 536870912
lxc.cgroup.memory.memsw.limit_in_bytes = 1073741824
lxc.cgroup.cpu.shares = 1024
lxc.rootfs = /var/lib/lxc/101/rootfs
lxc.network.type = veth
lxc.network.veth.pair = veth101i0
lxc.network.hwaddr = 7A:FF:5E:63:DB:5B
lxc.network.name = eth0
lxc.cgroup.cpuset.cpus = 2


/etc/pve/lxc/101.conf
arch: amd64
cores: 1
hostname: test
memory: 512
net0: name=eth0,bridge=vmbr1,hwaddr=7A:FF:5E:63:DB:5B,ip=dhcp,type=veth
ostype: debian
rootfs: local:101/vm-101-disk-1.raw,size=8G
swap: 512
unprivileged: 1
 

Attachments

  • log.log
    8 KB · Views: 3
Turns out that in Proxmox 5 / Debian 9.1 I had to add dummy "address" and "netmask" lines to the bridge configuration or else the bridge will not be activated.

auto vmbr1
iface vmbr1 inet static
address 172.16.44.1
netmask 255.255.255.0

bridge_ports none
bridge_stp off
bridge_fd 0
 

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!