Sometimes the inittab or systemd-init-stuff is not filled appropriate to start those consoles. Please log in to the container with pct enter <VMID> and check the /etc/inittab and post the output of ps auxf.
Hello,
Thank you for your reply!
pct console <vmid> didn't worked,
but pct enter <vmid> worked
ps auxf output (in the first 5 minutes, when it doesn't work):
root@aaa:~# ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 204 0.0 0.6 18272 3376 ? Ss 11:25 0:00 /bin/bash
root 214 0.0 0.5 34424 2936 ? R+ 11:25 0:00 \_ ps auxf
root 1 0.0 1.0 37152 5252 ? Ss 11:24 0:00 /sbin/init
root 39 0.0 1.0 35276 5328 ? Ss 11:24 0:00 /lib/systemd/systemd-journald
root 71 0.0 0.3 4416 1632 ? Ss 11:24 0:00 /sbin/ifup -a --read-environment
root 197 0.0 0.1 4508 788 ? S 11:24 0:00 \_ /bin/sh -c /sbin/dhclient -1 -6 -pf /run/dhclient6.eth0.pid -lf /var/lib/dhcp/dhclient6.eth0.leases -I -df /var/lib/dhcp/dhclient.eth0.leases eth0
root 198 0.0 0.7 16120 3736 ? S 11:24 0:00 \_ /sbin/dhclient -1 -6 -pf /run/dhclient6.eth0.pid -lf /var/lib/dhcp/dhclient6.eth0.leases -I -df /var/lib/dhcp/dhclient.eth0.leases eth0
root 102 0.0 1.0 272836 5544 ? Ssl 11:24 0:00 /usr/lib/accountsservice/accounts-daemon
syslog 103 0.0 0.5 256396 3144 ? Ssl 11:24 0:00 /usr/sbin/rsyslogd -n
root 104 0.0 0.2 20100 1272 ? Ss 11:24 0:00 /lib/systemd/systemd-logind
root 111 0.0 0.4 26068 2588 ? Ss 11:24 0:00 /usr/sbin/cron -f
message+ 112 0.0 0.7 42892 3892 ? Ss 11:24 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root 131 0.0 0.3 4508 1796 ? S 11:24 0:00 /bin/sh /etc/init.d/ondemand background
root 136 0.0 0.1 4380 804 ? S 11:24 0:00 \_ sleep 60
root 163 0.0 0.1 16120 856 ? Ss 11:24 0:00 /sbin/dhclient -1 -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
ps auxf output (after 5 minutes, when it works):
root@aaa:~# ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 204 0.0 0.6 18272 3380 ? Ss 11:25 0:00 /bin/bash
root 353 0.0 0.5 34424 2952 ? R+ 11:31 0:00 \_ ps auxf
root 1 0.0 1.0 37152 5252 ? Ss 11:24 0:00 /sbin/init
root 39 0.0 1.0 35276 5648 ? Ss 11:24 0:00 /lib/systemd/systemd-journald
root 102 0.0 1.1 272836 5788 ? Ssl 11:24 0:00 /usr/lib/accountsservice/accounts-daemon
syslog 103 0.0 0.5 256396 3144 ? Ssl 11:24 0:00 /usr/sbin/rsyslogd -n
root 104 0.0 0.2 20100 1272 ? Ss 11:24 0:00 /lib/systemd/systemd-logind
root 111 0.0 0.4 26068 2588 ? Ss 11:24 0:00 /usr/sbin/cron -f
message+ 112 0.0 0.7 42892 3892 ? Ss 11:24 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root 226 0.0 1.1 65612 6168 ? Ss 11:29 0:00 /usr/sbin/sshd -D
root 229 0.0 0.3 12844 1864 pts/1 Ss+ 11:29 0:00 /sbin/agetty --noclear --keep-baud pts/1 115200 38400 9600 vt220
root 231 0.0 0.3 12844 1860 lxc/console Ss+ 11:29 0:00 /sbin/agetty --noclear --keep-baud console 115200 38400 9600 vt220
root 232 0.0 0.3 12844 1848 pts/0 Ss+ 11:29 0:00 /sbin/agetty --noclear --keep-baud pts/0 115200 38400 9600 vt220
root 344 0.0 0.8 65408 4396 ? Ss 11:29 0:00 /usr/lib/postfix/sbin/master
postfix 346 0.0 0.8 67476 4400 ? S 11:29 0:00 \_ pickup -l -t unix -u -c
postfix 347 0.0 0.8 67524 4396 ? S 11:29 0:00 \_ qmgr -l -t unix -u
About /etc/inittab I can't find this.
Thank you!