You are not logged in.

#1 2015-07-13 10:21:02

opotonil
Member
Registered: 2009-09-12
Posts: 39

lxc - lxcfs with systemd guest, unusable guest console

When I create a lxc guest with systemd (Debian jessie at this case) the guest console is unusable (using lxc-console or connecting by ssh), if the guest don't use systemd (Debian wheezy) all ok.

In the guest with systemd, after several tries to get login I get this error:

-bash: cannot set terminal process group (348): Inappropriate ioctl for device
-bash: no job control in this shell

My config:

# cat /etc/subuid
root:100000:65537
# cat /etc/subgid
root:100000:65537
# cat /var/lib/lxc/prueba/config
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: -d debian -r jessie -a armhf
# For additional config options, please look at lxc.container.conf(5)

# Distribution configuration
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.include = /usr/share/lxc/config/debian.userns.conf

# Container specific configuration
lxc.id_map = u 0 100000 65536
lxc.id_map = g 0 100000 65536
lxc.rootfs = /var/lib/lxc/prueba/rootfs
lxc.utsname = prueba

# Network configuration
lxc.network.type = empty

Status of cgmanager and lxcfs after start (lxc-start) and stop (lxc-stop) the guest:

# systemctl status cgmanager -l
● cgmanager.service - Cgroup management daemon
   Loaded: loaded (/usr/lib/systemd/system/cgmanager.service; disabled; vendor preset: disabled)
   Active: active (running) since jue 2015-07-09 11:48:49 CEST; 4 days ago
 Main PID: 343 (cgmanager)
   Memory: 580.0K
      CPU: 20ms
   CGroup: /system.slice/cgmanager.service
           ‣ 343 /sbin/cgmanager -m name=systemd

jul 09 11:48:49 server systemd[1]: Started Cgroup management daemon.
jul 09 11:48:49 server systemd[1]: Starting Cgroup management daemon...
jul 13 11:49:59 server cgmanager[343]: cgmanager:do_remove_main: Failed to remove /run/cgmanager/fs/none,name=systemd/lxc/prueba/system.slice/system-getty.slice/getty@tty1.service: Device or resource busy
jul 13 11:50:00 server cgmanager[343]: cgmanager:do_remove_main: Failed to remove /run/cgmanager/fs/none,name=systemd/lxc/prueba/system.slice/system-getty.slice/getty@tty1.service: Device or resource busy
jul 13 11:50:00 server cgmanager[343]: cgmanager:do_remove_main: Failed to remove /run/cgmanager/fs/none,name=systemd/lxc/prueba/system.slice/system-getty.slice: Device or resource busy
# systemctl status lxcfs -l
● lxcfs.service - FUSE filesystem for LXC
   Loaded: loaded (/usr/lib/systemd/system/lxcfs.service; enabled; vendor preset: disabled)
   Active: active (running) since jue 2015-07-09 11:48:49 CEST; 4 days ago
 Main PID: 345 (lxcfs)
   Memory: 444.0K
      CPU: 9ms
   CGroup: /system.slice/lxcfs.service
           ‣ 345 /usr/bin/lxcfs -f -s -o allow_other /var/lib/lxcfs

jul 09 11:48:49 server systemd[1]: Started FUSE filesystem for LXC.
jul 09 11:48:49 server systemd[1]: Starting FUSE filesystem for LXC...
jul 13 11:49:59 server lxcfs[345]: call to remove (name=systemd:lxc/prueba/system.slice/system-getty.slice/getty@tty1.service) failed: invalid request
jul 13 11:50:00 server lxcfs[345]: call to remove (name=systemd:lxc/prueba/system.slice/system-getty.slice/getty@tty1.service) failed: invalid request
jul 13 11:50:00 server lxcfs[345]: call to remove (name=systemd:lxc/prueba/system.slice/system-getty.slice) failed: invalid request

The guest was created with the "download" template (I am using ArchLinuxARM):

lxc-create -t download -n prueba -- -d debian -r jessie -a armhf

Some suggestion? Thanks.


----- EDITED ----

On the journal of the host I can see:

jul 13 11:50:08 server systemd-coredump[18786]: Failed to get COMM, falling back to the command line.
jul 13 11:50:08 server systemd-coredump[18786]: Failed to get EXE.
jul 13 11:50:09 server systemd-coredump[18786]: Process 761 (systemd) of user 100000 dumped core.
# coredumpctl info 761
           PID: 761 (systemd)
           UID: 100000 (100000)
           GID: 100000 (100000)
        Signal: 6 (ABRT)
     Timestamp: lun 2015-07-06 12:37:15 CEST (1 weeks 0 days ago)
       Boot ID: e2f13443bc4d4515b17670c797b05852
    Machine ID: e9a6c9e62e7d4c47be07e86f1f48e876
      Hostname: server
       Message: Process 761 (systemd) of user 100000 dumped core.

           PID: 761 (systemd)
           UID: 100000 (100000)
           GID: 100000 (100000)
        Signal: 6 (ABRT)
     Timestamp: lun 2015-07-13 11:50:08 CEST (2h 14min ago)
       Boot ID: eea92027e1d8460d83005d6da93bafe7
    Machine ID: e9a6c9e62e7d4c47be07e86f1f48e876
      Hostname: server
      Coredump: /var/lib/systemd/coredump/core.systemd.100000.eea92027e1d8460d83005d6da93bafe7.761.1436781008000000.lz4
       Message: Process 761 (systemd) of user 100000 dumped core.

One note, the tty0 on guest seems usable (lxc-console -n prueba -t 0). The issue seems related with https://github.com/lxc/lxc/issues/520

Last edited by opotonil (2015-07-13 12:38:12)

Offline

Board footer

Powered by FluxBB