LXC not start

Andrey Dudin

New Member
Dec 16, 2017
10
0
1
33
Hello.

I have just deployed proxmox from original ISO image proxmox-ve_5.1-3.

Code:
root@prox8:~# pveversion --verbose
proxmox-ve: 5.1-32 (running kernel: 4.13.13-2-pve)
pve-manager: 5.1-41 (running version: 5.1-41/0b958203)
pve-kernel-4.13.13-2-pve: 4.13.13-32
libpve-http-server-perl: 2.0-8
lvm2: 2.02.168-pve6
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-19
qemu-server: 5.0-18
pve-firmware: 2.0-3
libpve-common-perl: 5.0-25
libpve-guest-common-perl: 2.0-14
libpve-access-control: 5.0-7
libpve-storage-perl: 5.0-17
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-3
pve-docs: 5.1-12
pve-qemu-kvm: 2.9.1-5
pve-container: 2.0-18
pve-firewall: 3.0-5
pve-ha-manager: 2.0-4
ksm-control-daemon: 1.2-2
glusterfs-client: 3.8.8-1
lxc-pve: 2.1.1-2
lxcfs: 2.0.8-1
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1
zfsutils-linux: 0.7.3-pve1~bpo9



Create container from webui using template ubuntu-16.04-standard_16.04-1_amd64.tar.gz.
Container config:
Code:
root@prox8:~# cat /etc/pve/lxc/101.conf
arch: amd64
cores: 4
hostname: CT101
memory: 512
net0: name=eth0,bridge=vmbr0,hwaddr=5A:96:6E:59:A3:E5,type=veth
ostype: ubuntu
rootfs: local-lvm:vm-101-disk-1,size=32G
swap: 512
lxc.apparmor.profile: unconfined

And I can't start container. Start task return error:
Code:
Job for pve-container@101.service failed because the control process exited with error code.

See "systemctl status pve-container@101.service" and "journalctl -xe" for details.
TASK ERROR: command 'systemctl start pve-container@101' failed: exit code 1

Whe I try to start container from console:
Code:
root@prox8:~# /usr/bin/lxc-start -n 101
The configuration file contains legacy configuration keys.
Please update your configuration file!
lxc-start: 101: lxccontainer.c: wait_on_daemonized_start: 751 No such file or directory - Failed to receive the container state
lxc-start: 101: tools/lxc_start.c: main: 371 The container failed to start.
lxc-start: 101: tools/lxc_start.c: main: 373 To get more details, run the container in foreground mode.
lxc-start: 101: tools/lxc_start.c: main: 375 Additional information can be obtained by setting the --logfile and --logpriority options.


If I run strace, I see that it can't connect to /var/lib/lxc/101/command:
Code:
root@prox8:~# strace /usr/bin/lxc-start -n 101
execve("/usr/bin/lxc-start", ["/usr/bin/lxc-start", "-n", "101"], [/* 17 vars */]) = 0
brk(NULL)                               = 0x5617fe45f000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0825eee000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=36612, ...}) = 0
mmap(NULL, 36612, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0825ee5000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/liblxc.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0pp\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=744120, ...}) = 0
mmap(NULL, 2839280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0825a18000
mprotect(0x7f0825ac8000, 2097152, PROT_NONE) = 0
mmap(0x7f0825cc8000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb0000) = 0x7f0825cc8000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libseccomp.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\30\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=280872, ...}) = 0
mmap(NULL, 2375936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f08257d3000
mprotect(0x7f0825802000, 2093056, PROT_NONE) = 0
mmap(0x7f0825a01000, 94208, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2e000) = 0x7f0825a01000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=10688, ...}) = 0
mmap(NULL, 2105608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f08255d0000
mprotect(0x7f08255d2000, 2093056, PROT_NONE) = 0
mmap(0x7f08257d1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f08257d1000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0Pa\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=135440, ...}) = 0
mmap(NULL, 2212936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f08253b3000
mprotect(0x7f08253cb000, 2093056, PROT_NONE) = 0
mmap(0x7f08255ca000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f08255ca000
mmap(0x7f08255cc000, 13384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f08255cc000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\30\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=22768, ...}) = 0
mmap(NULL, 2117976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f08251ad000
mprotect(0x7f08251b1000, 2097152, PROT_NONE) = 0
mmap(0x7f08253b1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f08253b1000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\275\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1670752, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0825ee3000
mmap(NULL, 3771208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0824e14000
mprotect(0x7f0824f9e000, 2097152, PROT_NONE) = 0
mmap(0x7f082519e000, 57344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18a000) = 0x7f082519e000
mmap(0x7f08251ac000, 2888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f08251ac000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libapparmor.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@*\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=68240, ...}) = 0
mmap(NULL, 2163488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0824c03000
mprotect(0x7f0824c13000, 2093056, PROT_NONE) = 0
mmap(0x7f0824e12000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7f0824e12000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\4\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1689360, ...}) = 0
mmap(NULL, 3795296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0824864000
mprotect(0x7f08249f9000, 2097152, PROT_NONE) = 0
mmap(0x7f0824bf9000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x195000) = 0x7f0824bf9000
mmap(0x7f0824bff000, 14688, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0824bff000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=105088, ...}) = 0
mmap(NULL, 2200072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f082464a000
mprotect(0x7f0824663000, 2093056, PROT_NONE) = 0
mmap(0x7f0824862000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7f0824862000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libp11-kit.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\26\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=411688, ...}) = 0
mmap(NULL, 2507952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f08243e5000
mprotect(0x7f082443f000, 2093056, PROT_NONE) = 0
mmap(0x7f082463e000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x59000) = 0x7f082463e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libidn.so.11", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 .\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=210968, ...}) = 0
mmap(NULL, 2306096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f08241b1000
mprotect(0x7f08241e3000, 2097152, PROT_NONE) = 0
mmap(0x7f08243e3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x32000) = 0x7f08243e3000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libtasn1.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20+\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=75776, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0825ee1000
mmap(NULL, 2171592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0823f9e000
mprotect(0x7f0823faf000, 2097152, PROT_NONE) = 0
mmap(0x7f08241af000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0x7f08241af000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libnettle.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\225\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=224504, ...}) = 0
mmap(NULL, 2319552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0823d67000
mprotect(0x7f0823d9c000, 2093056, PROT_NONE) = 0
mmap(0x7f0823f9b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x34000) = 0x7f0823f9b000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libhogweed.so.4", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000x\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=216776, ...}) = 0
mmap(NULL, 2311792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0823b32000
mprotect(0x7f0823b65000, 2097152, PROT_NONE) = 0
mmap(0x7f0823d65000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x33000) = 0x7f0823d65000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libgmp.so.10", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\305\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=537448, ...}) = 0
mmap(NULL, 2632576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f08238af000
mprotect(0x7f0823930000, 2097152, PROT_NONE) = 0
mmap(0x7f0823b30000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x81000) = 0x7f0823b30000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libffi.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\31\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=35296, ...}) = 0
mmap(NULL, 2131560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f08236a6000
mprotect(0x7f08236ad000, 2097152, PROT_NONE) = 0
mmap(0x7f08238ad000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f08238ad000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\r\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14640, ...}) = 0
mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f08234a2000
mprotect(0x7f08234a5000, 2093056, PROT_NONE) = 0
mmap(0x7f08236a4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f08236a4000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0825edf000
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0825edc000
arch_prctl(ARCH_SET_FS, 0x7f0825edc780) = 0
mprotect(0x7f0824bf9000, 16384, PROT_READ) = 0
mprotect(0x7f08236a4000, 4096, PROT_READ) = 0
mprotect(0x7f08238ad000, 4096, PROT_READ) = 0
mprotect(0x7f0823b30000, 4096, PROT_READ) = 0
mprotect(0x7f0823f9b000, 8192, PROT_READ) = 0
mprotect(0x7f0823d65000, 4096, PROT_READ) = 0
mprotect(0x7f08241af000, 4096, PROT_READ) = 0
mprotect(0x7f08243e3000, 4096, PROT_READ) = 0
mprotect(0x7f08255ca000, 4096, PROT_READ) = 0
mprotect(0x7f082463e000, 40960, PROT_READ) = 0
mprotect(0x7f0824862000, 4096, PROT_READ) = 0
mprotect(0x7f0824e12000, 4096, PROT_READ) = 0
mprotect(0x7f082519e000, 53248, PROT_READ) = 0
mprotect(0x7f08253b1000, 4096, PROT_READ) = 0
mprotect(0x7f08257d1000, 4096, PROT_READ) = 0
mprotect(0x7f0825a01000, 90112, PROT_READ) = 0
mprotect(0x7f0825cc8000, 8192, PROT_READ) = 0
mprotect(0x5617fd453000, 4096, PROT_READ) = 0
mprotect(0x7f0825ef1000, 4096, PROT_READ) = 0
munmap(0x7f0825ee5000, 36612)           = 0
set_tid_address(0x7f0825edca50)         = 130455
set_robust_list(0x7f0825edca60, 24)     = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7f08253b8bd0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f08253c40c0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7f08253b8c60, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f08253c40c0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
futex(0x7f0824649460, FUTEX_WAKE_PRIVATE, 2147483647) = 0
brk(NULL)                               = 0x5617fe45f000
brk(0x5617fe480000)                     = 0x5617fe480000
getrandom("\371", 1, GRND_NONBLOCK)     = 1
stat("/etc/gnutls/default-priorities", 0x7ffd66a25a00) = -1 ENOENT (No such file or directory)
geteuid()                               = 0
open("/etc/lxc/lxc.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
geteuid()                               = 0
open("/proc/1/cgroup", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(3, "12:blkio:/init.scope\n11:perf_eve"..., 1024) = 218
read(3, "", 1024)                       = 0
close(3)                                = 0
open("/proc/self/mountinfo", O_RDONLY)  = 3
open("/proc/self/cgroup", O_RDONLY)     = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(4, "12:blkio:/user.slice/user-0.slic"..., 1024) = 398
read(4, "", 1024)                       = 0
close(4)                                = 0
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(3, "22 27 0:21 / /sys rw,nosuid,node"..., 1024) = 1024
read(3, "agent,name=systemd\n33 22 0:28 / "..., 1024) = 1024
access("/sys/fs/cgroup/systemd/", W_OK) = 0
access("/sys/fs/cgroup/memory/", W_OK)  = 0
access("/sys/fs/cgroup/cpu/", W_OK)     = 0
access("/sys/fs/cgroup/cpuset/", W_OK)  = 0
access("/sys/fs/cgroup/net_cls/", W_OK) = 0
access("/sys/fs/cgroup/freezer/", W_OK) = 0
access("/sys/fs/cgroup/rdma/", W_OK)    = 0
access("/sys/fs/cgroup/devices/", W_OK) = 0
read(3, "ime shared:21 - cgroup cgroup rw"..., 1024) = 1024
access("/sys/fs/cgroup/pids/", W_OK)    = 0
access("/sys/fs/cgroup/hugetlb/", W_OK) = 0
access("/sys/fs/cgroup/perf_event/", W_OK) = 0
access("/sys/fs/cgroup/blkio/", W_OK)   = 0
read(3, "w,fmask=0022,dmask=0022,codepage"..., 1024) = 441
read(3, "", 1024)                       = 0
close(3)                                = 0
open("/sys/module/apparmor/parameters/enabled", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
read(3, "Y\n", 4096)                    = 2
close(3)                                = 0
stat("/sys/kernel/security/apparmor/features/mount/mask", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
getuid()                                = 0
getgid()                                = 0
geteuid()                               = 0
geteuid()                               = 0
open("/etc/lxc/lxc.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
geteuid()                               = 0
access("/var", F_OK)                    = 0
access("/var/log", F_OK)                = 0
access("/var/log/lxc", F_OK)            = 0
getuid()                                = 0
open("/var/log/lxc/101.log", O_WRONLY|O_CREAT|O_APPEND|O_CLOEXEC, 0666) = 3
getuid()                                = 0
access("/var/lib/lxc", F_OK)            = 0
access("/var/lib/lxc/101/config", F_OK) = 0
geteuid()                               = 0
mkdir("/", 0755)                        = -1 EEXIST (File exists)
mkdir("/run/", 0755)                    = -1 EEXIST (File exists)
mkdir("/run/lxc/", 0755)                = -1 EEXIST (File exists)
mkdir("/run/lxc/lock//", 0755)          = -1 EEXIST (File exists)
mkdir("/run/lxc/lock//var/", 0755)      = -1 EEXIST (File exists)
mkdir("/run/lxc/lock//var/lib/", 0755)  = -1 EEXIST (File exists)
mkdir("/run/lxc/lock//var/lib/lxc", 0755) = -1 EEXIST (File exists)
stat("/var/lib/lxc/101/config", {st_mode=S_IFREG|0644, st_size=507, ...}) = 0
open("/run/lxc/lock//var/lib/lxc/.101", O_RDWR|O_CREAT, 0600) = 4
fcntl(4, F_SETLKW, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
access("/var/lib/lxc/101/config", R_OK) = 0
open("/var/lib/lxc/101/config", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=507, ...}) = 0
brk(0x5617fe4a1000)                     = 0x5617fe4a1000
read(5, "lxc.arch = amd64\nlxc.include = /"..., 4096) = 507
stat("/usr/share/lxc/config/ubuntu.common.conf", {st_mode=S_IFREG|0644, st_size=1479, ...}) = 0
access("/usr/share/lxc/config/ubuntu.common.conf", R_OK) = 0
open("/usr/share/lxc/config/ubuntu.common.conf", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=1479, ...}) = 0
read(6, "# This derives from the global c"..., 4096) = 1479
stat("/usr/share/lxc/config/common.conf", {st_mode=S_IFREG|0644, st_size=1536, ...}) = 0
access("/usr/share/lxc/config/common.conf", R_OK) = 0
open("/usr/share/lxc/config/common.conf", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=1536, ...}) = 0
read(7, "# Default configuration shared b"..., 4096) = 1536
stat("/usr/share/lxc/config/common.conf.d/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/share/lxc/config/common.conf.d/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 8
fstat(8, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents(8, /* 5 entries */, 32768)     = 152
access("/usr/share/lxc/config/common.conf.d//01-pve.conf", R_OK) = 0
open("/usr/share/lxc/config/common.conf.d//01-pve.conf", O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0644, st_size=190, ...}) = 0
read(9, "lxc.hook.pre-start = /usr/share/"..., 4096) = 190
read(9, "", 4096)                       = 0
close(9)                                = 0
access("/usr/share/lxc/config/common.conf.d//00-lxcfs.conf", R_OK) = 0
open("/usr/share/lxc/config/common.conf.d//00-lxcfs.conf", O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0644, st_size=103, ...}) = 0
read(9, "lxc.hook.mount = /usr/share/lxcf"..., 4096) = 103
read(9, "", 4096)                       = 0
close(9)                                = 0
getdents(8, /* 0 entries */, 32768)     = 0
close(8)                                = 0
read(7, "", 4096)                       = 0
close(7)                                = 0
read(6, "", 4096)                       = 0
close(6)                                = 0
getpid()                                = 130455
open("/dev/urandom", O_RDONLY)          = 6
fstat(6, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
ioctl(6, TCGETS, 0x7ffd66a25580)        = -1 EINVAL (Invalid argument)
read(6, "<I/\263\0175\377C\370}\7\237\312)\t-\31&|2\223J\375Z\220\33\332\275\250\3217C"..., 4096) = 4096
close(6)                                = 0
getpid()                                = 130455
open("/dev/urandom", O_RDONLY)          = 6
fstat(6, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
ioctl(6, TCGETS, 0x7ffd66a25530)        = -1 EINVAL (Invalid argument)
read(6, "\230s\365\300}\356(\313\201\317\276\360$^\5\366#k\306\3059&\16\311\213~\273\271n#]o"..., 4096) = 4096
close(6)                                = 0
write(2, "The configuration file contains "..., 98The configuration file contains legacy configuration keys.
Please update your configuration file!
) = 98
read(5, "", 4096)                       = 0
close(5)                                = 0
fcntl(4, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
close(4)                                = 0
stat("/var/lib/lxc/101/partial", 0x7ffd66a25840) = -1 ENOENT (No such file or directory)
socket(AF_UNIX, SOCK_STREAM, 0)         = 4
connect(4, {sa_family=AF_UNIX, sun_path=@"/var/lib/lxc/101/command"}, 27) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(AF_UNIX, SOCK_STREAM, 0)         = 4
connect(4, {sa_family=AF_UNIX, sun_path=@"/var/lib/lxc/101/command"}, 27) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(AF_UNIX, SOCK_STREAM, 0)         = 4
connect(4, {sa_family=AF_UNIX, sun_path=@"/var/lib/lxc/101/command"}, 27) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
stat("/var/lib/lxc/101/partial", 0x7ffd66a24f90) = -1 ENOENT (No such file or directory)
geteuid()                               = 0
socketpair(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0, [4, 5]) = 0
socket(AF_UNIX, SOCK_STREAM, 0)         = 6
bind(6, {sa_family=AF_UNIX, sun_path=@"/var/lib/lxc/101/command"}, 27) = 0
listen(6, 100)                          = 0
fcntl(6, F_SETFD, FD_CLOEXEC)           = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f0825edca50) = 130456
close(5)                                = 0
recvmsg(4, {msg_namelen=0}, 0)          = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=130456, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
recvmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="", iov_len=4}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 0
close(4)                                = 0
wait4(130456, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 130456
write(3, "      lxc-start 101 201804132147"..., 176) = 176
write(2, "lxc-start: 101: ", 16lxc-start: 101: )        = 16
write(2, "lxccontainer.c: wait_on_daemoniz"..., 46lxccontainer.c: wait_on_daemonized_start: 751 ) = 46
write(2, "No such file or directory - Fail"..., 65No such file or directory - Failed to receive the container state) = 65
write(2, "\n", 1
)                       = 1
close(6)                                = 0
write(3, "      lxc-start 101 201804132147"..., 123) = 123
write(2, "lxc-start: 101: ", 16lxc-start: 101: )        = 16
write(2, "tools/lxc_start.c: main: 371 ", 29tools/lxc_start.c: main: 371 ) = 29
write(2, "The container failed to start.", 30The container failed to start.) = 30
write(2, "\n", 1
)                       = 1
write(3, "      lxc-start 101 201804132147"..., 151) = 151
write(2, "lxc-start: 101: ", 16lxc-start: 101: )        = 16
write(2, "tools/lxc_start.c: main: 373 ", 29tools/lxc_start.c: main: 373 ) = 29
write(2, "To get more details, run the con"..., 58To get more details, run the container in foreground mode.) = 58
write(2, "\n", 1
)                       = 1
write(3, "      lxc-start 101 201804132147"..., 183) = 183
write(2, "lxc-start: 101: ", 16lxc-start: 101: )        = 16
write(2, "tools/lxc_start.c: main: 375 ", 29tools/lxc_start.c: main: 375 ) = 29
write(2, "Additional information can be ob"..., 90Additional information can be obtained by setting the --logfile and --logpriority options.) = 90
write(2, "\n", 1
)                       = 1
exit_group(1)                           = ?
+++ exited with 1 +++
 
Last edited:
Upgraded from no-subscription repo. Still no luck with container. But error changed to:

Code:
root@prox8:~# /usr/bin/lxc-start -n 101       
lxc-start: 101: lxccontainer.c: wait_on_daemonized_start: 824 Received container state "STOPPING" instead of "RUNNING"
The container failed to start.
To get more details, run the container in foreground mode.
Additional information can be obtained by setting the --logfile and --logpriority options.

In syslog:
Code:
Apr 14 15:46:45 prox8 pvedaemon[5176]: starting CT 102: UPID:prox8:00001438:00012351:5AD1F835:vzstart:102:root@pam:
Apr 14 15:46:45 prox8 pvedaemon[2728]: <root@pam> starting task UPID:prox8:00001438:00012351:5AD1F835:vzstart:102:root@pam:
Apr 14 15:46:45 prox8 systemd[1]: Starting PVE LXC Container: 102...
Apr 14 15:46:45 prox8 kernel: [  746.213854] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
Apr 14 15:46:45 prox8 systemd-udevd[5195]: Could not generate persistent MAC address for vethL5WT3K: No such file or directory
Apr 14 15:46:45 prox8 kernel: [  746.235372] IPv6: ADDRCONF(NETDEV_UP): veth102i0: link is not ready
Apr 14 15:46:46 prox8 lxc-start[5178]: lxc-start: 102: lxccontainer.c: wait_on_daemonized_start: 824 Received container state "STOPPING" instead of "RUNNING"
Apr 14 15:46:46 prox8 lxc-start[5178]: The container failed to start.
Apr 14 15:46:46 prox8 lxc-start[5178]: To get more details, run the container in foreground mode.
Apr 14 15:46:46 prox8 lxc-start[5178]: Additional information can be obtained by setting the --logfile and --logpriority options.
Apr 14 15:46:46 prox8 pvestatd[2636]: unable to get PID for CT 102 (not running?)
Apr 14 15:46:46 prox8 systemd[1]: pve-container@102.service: Control process exited, code=exited status=1
Apr 14 15:46:46 prox8 systemd[1]: pve-container@102.service: Killing process 5180 (lxc-start) with signal SIGKILL.
Apr 14 15:46:46 prox8 systemd[1]: pve-container@102.service: Killing process 5299 (sh) with signal SIGKILL.
Apr 14 15:46:46 prox8 systemd[1]: Failed to start PVE LXC Container: 102.
Apr 14 15:46:46 prox8 systemd[1]: pve-container@102.service: Unit entered failed state.
Apr 14 15:46:46 prox8 systemd[1]: pve-container@102.service: Failed with result 'exit-code'.
Apr 14 15:46:46 prox8 pvedaemon[5176]: command 'systemctl start pve-container@102' failed: exit code 1
Apr 14 15:46:46 prox8 pvedaemon[2728]: <root@pam> end task UPID:prox8:00001438:00012351:5AD1F835:vzstart:102:root@pam: command 'systemctl start pve-container@102' failed: exit code 1

Network:
Code:
root@prox8:~# cat /etc/network/interfaces

auto aggi
iface aggi inet manual
    hwaddress ether a0:36:9f:6c:73:28
    mtu 8964
    slaves int1 int2
    bond_mode 4
    bond_miimon 100
    bond_downdelay 200
    bond_updelay 0
    bond_lacp_rate slow
    bond_xmit_hash_policy layer3+4
    post-up /sbin/ethtool -K aggi tx off tso off
    dns-nameservers 10.77.0.1
 
auto agge
iface agge inet manual
    hwaddress ether a0:36:9f:6c:61:b2
    slaves ext1 ext2
    bond_mode 4
    bond_miimon 100
    bond_updelay 0
    bond_lacp_rate slow
    bond_xmit_hash_policy layer3+4
    post-up /sbin/ethtool -K agge tx off tso off



auto int1
iface int1 inet manual
    bond-master aggi

auto int2
iface int2 inet manual
    bond-master aggi


auto ext1
iface ext1 inet manual
    bond-master agge
 
auto ext2
iface ext2 inet manual
    bond-master agge
 
auto lo
iface lo inet loopback

auto vmbr0
iface vmbr0 inet static
        bridge_ports agge
        bridge_stp off
        bridge_fd 0
        
auto vmbr1
iface vmbr1 inet static
        address  10.77.0.5
        netmask  255.255.0.0
        gateway  10.77.0.1
        bridge_ports aggi
        bridge_stp off
        bridge_fd 0

Versions:
Code:
root@prox8:~# pveversion -v
proxmox-ve: 5.1-42 (running kernel: 4.13.16-2-pve)
pve-manager: 5.1-49 (running version: 5.1-49/1e427a54)
pve-kernel-4.13: 5.1-44
pve-kernel-4.13.16-2-pve: 4.13.16-47
pve-kernel-4.13.13-2-pve: 4.13.13-33
corosync: 2.4.2-pve3
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-4
libpve-common-perl: 5.0-30
libpve-guest-common-perl: 2.0-14
libpve-http-server-perl: 2.0-8
libpve-storage-perl: 5.0-18
libqb0: 1.0.1-1
lvm2: 2.02.168-pve6
lxc-pve: 3.0.0-2
lxcfs: 3.0.0-1
novnc-pve: 0.6-4
proxmox-widget-toolkit: 1.0-14
pve-cluster: 5.0-24
pve-container: 2.0-21
pve-docs: 5.1-17
pve-firewall: 3.0-7
pve-firmware: 2.0-4
pve-ha-manager: 2.0-5
pve-i18n: 1.0-4
pve-libspice-server1: 0.12.8-3
pve-qemu-kvm: 2.11.1-5
pve-xtermjs: 1.0-2
qemu-server: 5.0-24
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.7-pve1~bpo9
 
you probably half-killed a container during your test runs. either reboot your host, or manually cleanup all the leftover running processes and cgroups.
 

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!