Hello,
I have installed lxc2 in Ubuntu 16.04.5 and currently try to start new created container.
For unknown to me reason the container refuses to start. I followed ‘Getting started’ instructions and the container is created but a command
lxc-start -n fog-container -d
lxc-ls -f
gives following output
NAME STATE AUTOSTART GROUPS IPV4 IPV6 UNPRIVILEGED
fog-container STOPPED 0 - - - true
I’ve attempted to create ‘privileged’ container under root account with same result
NAME STATE AUTOSTART GROUPS IPV4 IPV6 UNPRIVILEGED
fog-container STOPPED 0 - - - false
I did some reading on a problem, devpts looks good
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
I’ve attempted to start the container with following command
root# lxc-start -n fog-container -l DEBUG -F --logfile /tmp/fog-container.log`
lxc-start: fog-container: sync.c: __sync_wait: 59 An error occurred in another process (expected sequence number 7)
lxc-start: fog-container: start.c: __lxc_start: 1910 Failed to spawn container "fog-container"
lxc-start: fog-container: tools/lxc_start.c: main: 330 The container failed to start
lxc-start: fog-container: tools/lxc_start.c: main: 336 Additional information can be obtained by setting the --logfile and --logpriority options
root# egrep -i 'warn|error' /tmp/fog-container.log
lxc-start fog-container 20181219025215.784 WARN start - start.c:lxc_check_inherited:289 - Inherited fd 3
lxc-start fog-container 20181219025215.883 WARN conf - conf.c:lxc_setup_devpts:1620 - Invalid argument - Failed to unmount old devpts instance
lxc-start fog-container 20181219025215.887 ERROR start - start.c:start:1999 - Exec format error - Failed to exec "/sbin/init"
lxc-start fog-container 20181219025215.887 ERROR sync - sync.c:__sync_wait:59 - An error occurred in another process (expected sequence number 7)
lxc-start fog-container 20181219025215.927 ERROR start - start.c:__lxc_start:1910 - Failed to spawn container "fog-container"
lxc-start fog-container 20181219025216.455 ERROR lxc_start - tools/lxc_start.c:main:330 - The container failed to start
lxc-start fog-container 20181219025216.455 ERROR lxc_start - tools/lxc_start.c:main:336 - Additional information can be obtained by setting the --logfile and --logpriority options
Full log file can be obtained by following next link fog-container.log
John