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 :
lxc-start -n 100 -d --logfile nico.log -l debug
here is the log
My config veversion -v
cat /etc/pve/storage.cfg
and /usr/share/lxc/config/debian.common.conf exist...
do you have any idear ?
thanks in advance.
Nico
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 trySee "systemctl status lxc@100.service" and "journalctl -xe" for details.
TASK ERROR: command 'systemctl start lxc@100' failed: exit code 1
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.
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.carse_config_v2:418 - processing: .reject_force_umount # comment this to allow umount -f; not recommended.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_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.carse_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.carse_config_v2:418 - processing: .[all].
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:418 - processing: .kexec_load errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:590 - Adding native rule for kexec_load action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:593 - Adding compat rule for kexec_load action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:418 - processing: .open_by_handle_at errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:590 - Adding native rule for open_by_handle_at action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:593 - Adding compat rule for open_by_handle_at action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:418 - processing: .init_module errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:590 - Adding native rule for init_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:593 - Adding compat rule for init_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:418 - processing: .finit_module errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:590 - Adding native rule for finit_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:593 - Adding compat rule for finit_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:418 - processing: .delete_module errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:590 - Adding native rule for delete_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:593 - Adding compat rule for delete_module action 327681.
lxc-start 20170810120644.796 INFO lxc_seccomp - seccomp.carse_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.
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.carse_config_v2:418 - processing: .reject_force_umount # comment this to allow umount -f; not recommended.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_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.carse_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.carse_config_v2:418 - processing: .[all].
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:418 - processing: .kexec_load errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:590 - Adding native rule for kexec_load action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:593 - Adding compat rule for kexec_load action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:418 - processing: .open_by_handle_at errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:590 - Adding native rule for open_by_handle_at action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:593 - Adding compat rule for open_by_handle_at action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:418 - processing: .init_module errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:590 - Adding native rule for init_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:593 - Adding compat rule for init_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:418 - processing: .finit_module errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:590 - Adding native rule for finit_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:593 - Adding compat rule for finit_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:418 - processing: .delete_module errno 1.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:590 - Adding native rule for delete_module action 327681.
lxc-start 20170810120644.795 INFO lxc_seccomp - seccomp.carse_config_v2:593 - Adding compat rule for delete_module action 327681.
lxc-start 20170810120644.796 INFO lxc_seccomp - seccomp.carse_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 veversion -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.1pve-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/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/configpath /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
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:289:11:6B:3D
lxc.network.name = eth0
lxc.cgroup.cpuset.cpus = 0-4,6-7
cat /etc/pve/lxc/100.conflxc.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:289:11:6B:3D
lxc.network.name = eth0
lxc.cgroup.cpuset.cpus = 0-4,6-7
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:289: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
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:289: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: