[lxc-users] sshd-keygen fails during container boot

Peter Steele pwsteele at gmail.com
Fri Dec 4 16:33:43 UTC 2015


I'm seeing these messages on some of my containers during their initial 
start-up:

systemd: Failed at step CGROUP spawning /usr/sbin/sshd-keygen: No such 
file or directory
systemd: sshd-keygen.service: main process exited, code=exited, 
status=219/CGROUP
systemd: Failed to start OpenSSH Server Key Generation.
systemd: Unit sshd-keygen.service entered failed state.

The net effect of this of course is that I cannot ssh into the 
containers that encounter this problem. The odd thing is that 
/usr/sbin/sshd-keygen *does* exist, and restarting the containers 
corrects the problem (the keygen works on the reboot). It's not clear to 
me why the containers think this file is missing and why some containers 
running pretty much the identical image do not hit this problem. Has 
anyone seen this?



More information about the lxc-users mailing list