[lxc-users] Centos-7 x86_64 container slow and buggy start

mxs kolo kolomaxes at gmail.com
Tue Jul 29 14:50:03 UTC 2014


I create container with centos-7 x86_64 from download image:
# lxc-create  -t download  -n ce7  -B lvm --lvname=ce7  --vgname=data
--fstype=xfs --fssize=10G  -- --release 7 --dist centos --arch amd64

When start without detach, it  hold on next stage:
# lxc-start -n ce7
systemd 208 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX
+IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
Detected virtualization 'lxc'.

Welcome to CentOS Linux 7 (Core)!

Cannot add dependency job for unit display-manager.service, ignoring:
Unit display-manager.service failed to load: No such file or
directory.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Delayed Shutdown Socket.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Listening on Journal Socket.
         Starting Create static device nodes in /dev...
         Mounting Configuration File System...
         Mounting Debug File System...
         Starting Journal Service...
[  OK  ] Started Journal Service.
         Mounting Huge Pages File System...
         Mounting POSIX Message Queue File System...
[  OK  ] Reached target Swap.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Created slice Root Slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Created slice System Slice.

At this point in container present next process:
[root at ce7 /]# ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 /sbin/init
   10 ?        Zs     0:00 [systemd-tmpfile] <defunct>
   11 ?        Z      0:00 [mount] <defunct>
   12 ?        Z      0:00 [mount] <defunct>
   13 ?        Zs     0:00 [(journald)] <defunct>
   14 ?        Z      0:00 [mount] <defunct>
   15 ?        Z      0:00 [mount] <defunct>
   16 ?        Zs     0:00 [systemd-remount] <defunct>
   19 ?        S      0:00 /bin/bash
   37 ?        R+     0:00 ps ax

After 5-10 minutes process  continue and stop on next point:
[  OK  ] Reached target Slices.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Create static device nodes in /dev.
[  OK  ] Mounted Configuration File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting Load/Save Random Seed...
         Starting Configure read-only root support...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Stopped Trigger Flushing of Journal to Persistent Storage.
         Stopping Journal Service...
[  OK  ] Stopped Journal Service.
         Starting Journal Service...
[  OK  ] Started Journal Service.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Configure read-only root support.
[  OK  ] Reached target Local File Systems.
         Starting Trigger Flushing of Journal to Persistent Storage...
         Starting Mark the need to relabel after reboot...
         Starting Create Volatile Files and Directories...
         Stopping Journal Service...
[  OK  ] Stopped Journal Service.
         Starting Journal Service...
[  OK  ] Started Journal Service.
[  OK  ] Started Mark the need to relabel after reboot.
[  OK  ] Started Create Volatile Files and Directories.
[FAILED] Failed to start Trigger Flushing of Journal to Persistent Storage.
See 'systemctl status systemd-journal-flush.service' for details.
         Starting Update UTMP about System Reboot/Shutdown...
[  OK  ] Stopped Trigger Flushing of Journal to Persistent Storage.
         Stopping Journal Service...
[  OK  ] Stopped Journal Service.
         Starting Journal Service...
[  OK  ] Started Journal Service.
         Starting Trigger Flushing of Journal to Persistent Storage...
<27>systemd-update-utmp[56]: Failed to get D-Bus connection: Failed to
authenticate in time.
[FAILED] Failed to start Update UTMP about System Reboot/Shutdown.
See 'systemctl status systemd-update-utmp.service' for details.
[DEPEND] Dependency failed for Update UTMP about System Runlevel Changes.
[FAILED] Failed to start Trigger Flushing of Journal to Persistent Storage.
See 'systemctl status systemd-journal-flush.service' for details.
[  OK  ] Reached target System Initialization.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Paths.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting LSB: Bring up/down networking...
         Starting Dump dmesg to /var/log/dmesg...
         Starting System Logging Service...
         Starting Login Service...
         Starting Permit User Sessions...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Stopped Trigger Flushing of Journal to Persistent Storage.
         Stopping Journal Service...
[  OK  ] Stopped Journal Service.
         Starting Journal Service...
[  OK  ] Started Journal Service.
         Starting Trigger Flushing of Journal to Persistent Storage...
<28>systemd-sysctl[90]: Failed to write '4294967295' to
'/proc/sys/kernel/shmmax': Read-only file system


b.r.
 Maxim Kozin


More information about the lxc-users mailing list