[pkg-lxc-devel] Bug#907615: lxc-console not getting prompt with debian template

Alex Mestiashvili amestia at rsh2.donotuse.de
Thu Aug 30 08:58:31 BST 2018


Package: lxc
Version: 1:2.0.9-6
Severity: normal


Steps to reproduce:

install lxc, create a container with debian template (backing store
doesn't matter in this case)

lxc-create -n deb2 -t debian -B zfs --zfsroot=ocz/lxc

lxc-console -n deb2 -l trace -o console_deb2.lxc.log

Connected to tty 1
                  Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a>
to enter Ctrl+a itself

Log file:
 cat console_deb2.lxc.log
    lxc-console 20180830074928.590 WARN     lxc_confile -
confile.c:set_config_pivotdir:2262 - lxc.pivotdir is ignored.  It will
soon become an error.
    lxc-console 20180830074928.590 TRACE    lxc_commands -
commands.c:lxc_cmd:290 - command get_init_pid tries to connect command
socket
    lxc-console 20180830074928.590 TRACE    lxc_commands -
commands.c:lxc_cmd_send:222 - Command "get_init_pid" connected to
command socket
    lxc-console 20180830074928.590 TRACE    lxc_commands -
commands.c:lxc_cmd_send:238 - Command "get_init_pid" requested data of
length 0
    lxc-console 20180830074928.590 TRACE    lxc_commands -
commands.c:lxc_cmd_rsp_recv:128 - Command "get_init_pid received response
    lxc-console 20180830074928.590 DEBUG    lxc_commands -
commands.c:lxc_cmd_rsp_recv:152 - command get_init_pid response data
length is 0
    lxc-console 20180830074928.590 TRACE    lxc_commands -
commands.c:lxc_cmd:290 - command get_cgroup tries to connect command socket
    lxc-console 20180830074928.590 TRACE    lxc_commands -
commands.c:lxc_cmd_send:222 - Command "get_cgroup" connected to command
socket
    lxc-console 20180830074928.590 TRACE    lxc_commands -
commands.c:lxc_cmd_send:238 - Command "get_cgroup" requested data of
length 8
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_rsp_recv:128 - Command "get_cgroup received response
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_get_cgroup_path:456 - command get_cgroup successful
for container "deb2"
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd:290 - command get_state tries to connect command socket
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_send:222 - Command "get_state" connected to command
socket
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_send:238 - Command "get_state" requested data of length 0
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_rsp_recv:128 - Command "get_state received response
    lxc-console 20180830074928.591 DEBUG    lxc_commands -
commands.c:lxc_cmd_rsp_recv:152 - command get_state response data length
is 0
    lxc-console 20180830074928.591 DEBUG    lxc_commands -
commands.c:lxc_cmd_get_state:569 - Container "deb2" is in "RUNNING" state.
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd:290 - command console tries to connect command socket
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_send:222 - Command "console" connected to command socket
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_send:238 - Command "console" requested data of length 0
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_rsp_recv:128 - Command "console received response
    lxc-console 20180830074928.591 DEBUG    lxc_commands -
commands.c:lxc_cmd_rsp_recv:152 - command console response data length is 0
    lxc-console 20180830074928.591 INFO     lxc_commands -
commands.c:lxc_cmd_console:719 - tty 1 allocated fd 5 sock 4.
    lxc-console 20180830074928.591 INFO     console -
console.c:lxc_console:696 - already group leader
    lxc-console 20180830074928.591 DEBUG    console -
console.c:lxc_console_sigwinch_init:151 - process 13995 created signal
fd 6 to handle SIGWINCH events
    lxc-console 20180830074928.591 DEBUG    console -
console.c:lxc_console_winsz:71 - set winsz dstfd:5 cols:211 rows:65
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd:290 - command console_winch tries to connect command
socket
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_send:222 - Command "console_winch" connected to
command socket
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_send:238 - Command "console_winch" requested data of
length 0
    lxc-console 20180830074928.591 TRACE    lxc_commands -
commands.c:lxc_cmd_rsp_recv:128 - Command "console_winch received response
    lxc-console 20180830074928.591 DEBUG    lxc_commands -
commands.c:lxc_cmd_rsp_recv:152 - command console_winch response data
length is 0

Ubuntu template works as expected:

 lxc-console -n ubutest -l trace -o console_ubutest.lxc.log



Connected to tty 1
                  Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a>
to enter Ctrl+a itself


Ubuntu 16.04.5 LTS ubutest pts/0

ubutest login:


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.17.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lxc depends on:
ii  libapparmor1  2.13-8
ii  libc6         2.27-5
ii  libcap2       1:2.25-1.2
ii  libgnutls30   3.5.19-1
ii  liblxc1       1:2.0.9-6
ii  libseccomp2   2.3.3-3
ii  libselinux1   2.8-1+b1
ii  lsb-base      9.20170808
ii  python3       3.6.5-3
ii  python3-lxc   1:2.0.9-6

Versions of packages lxc recommends:
ii  bridge-utils                 1.5-16
ii  debootstrap                  1.0.108
ii  dirmngr                      2.2.9-1
ii  dnsmasq-base [dnsmasq-base]  2.79-1
ii  gnupg                        2.2.9-1
ii  iptables                     1.6.2-1.1
ii  libpam-cgfs                  2.0.8-1
ii  lxcfs                        2.0.8-1
ii  openssl                      1.1.0h-4
ii  rsync                        3.1.2-2.2
ii  uidmap                       1:4.5-1.1

Versions of packages lxc suggests:
ii  apparmor     2.13-8
pn  btrfs-progs  <none>
ii  lvm2         2.02.176-4.1

-- no debconf information



More information about the Pkg-lxc-devel mailing list