[lxc-users] lxc-console not working on centos 7 container

CDR venefax at gmail.com
Thu Feb 12 08:23:34 UTC 2015


mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs
(rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup
(rw,noexec,nosuid,nodev,none,name=systemd)

I followed the steps

This is all I get
lxc-start -n c7v -F
mount: sysfs already mounted or /usr/lib/x86_64-linux-gnu/lxc/sys busy
mount: according to mtab, sysfs is mounted on /sys
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)!

Failed to install release agent, ignoring: No such file or directory
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.
Failed to open /dev/autofs: No such file or directory
Failed to initialize automounter: No such file or directory
[FAILED] Failed to set up automount Arbitrary Executable File Formats File
System Automount Point.
See 'systemctl status proc-sys-fs-binfmt_misc.automount' for details.
Unit proc-sys-fs-binfmt_misc.automount entered failed state.
[  OK  ] Listening on Journal Socket.
         Mounting Huge Pages File System...
         Starting Create static device nodes in /dev...
         Starting Apply Kernel Variables...
         Starting Journal Service...
[  OK  ] Started Journal Service.
[  OK  ] Reached target Encrypted Volumes.
         Mounting Debug File System...
         Mounting POSIX Message Queue File System...
         Mounting FUSE Control File System...



On Thu, Feb 12, 2015 at 3:08 AM, Fajar A. Nugraha <list at fajar.net> wrote:

> Do you have cgroupfs-mount installed?
> Did you follow the steps I pasted?
> Did you run "lxc-start -F" and look at the output?
>
> On Thu, Feb 12, 2015 at 3:05 PM, CDR <venefax at gmail.com> wrote:
> > What changes do I need to do at the host level so my provileged systemd
> > containers may work?
> > I am using Ubuntu 14.04, and there is systemd
> >
> > On Thu, Feb 12, 2015 at 3:00 AM, Fajar A. Nugraha <list at fajar.net>
> wrote:
> >>
> >> You DID read that I asked for "lxc-start -F"?
> >>
> >> It's entirely possible that your container's systemd freeze, thus
> >> nothing is listening on its tty1. And if you don't have systemd cgroup
> >> mounted on the host (which is what cgroupfs-mount is for), it would
> >> certainly be the case.
> >>
> >> --
> >> Fajar
> >>
> >> On Thu, Feb 12, 2015 at 2:50 PM, CDR <venefax at gmail.com> wrote:
> >> > I cannot get past this
> >> > root at ubuserver:/var/lib/lxc/c7v# lxc-console -n c7v
> >> >
> >> > Connected to tty 1
> >> > Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a
> >> > itself
> >> >
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150212/e430ee2e/attachment-0001.html>


More information about the lxc-users mailing list