[lxc-devel] input in LXC

Alexander Semenov acmain at gmail.com
Tue Apr 1 06:22:53 UTC 2014


Hello !
I'm using version LXC 0.9.0. And noticed a problem :
When run in lxc-attach program using the input (eg VI) displayed on the
screen outsider output ( looks like stdin simultaneously reads multiple
processes )
Ie when you press the arrow keys in the VI screen printed characters such
as "[C ^ [[D ^ [[A ^ [[B"

linux environment and collect in buildroot ( tested with Veris buildroot
2011.02, 2014.02 and linux kernel 2.6.39.2, 3.0.101)

LXC I assembled the directory / tmp / lxc / bin /
Run so : / tmp / lxc / bin / lxc-execute-n guest-f config - vi

config:
lxc.utsname = guest
lxc.rootfs = / tmp / tst / guest / rootfs
lxc.mount.entry = / tmp / lib / tmp / tst / guest / rootfs / lib none ro,
bind 0 0
# lxc.mount.entry = / tmp/lib64 / tmp/tst/guest/rootfs/lib64 none ro, bind
0 0
# lxc.mount.entry = / tmp/usr/lib64 / tmp/tst/guest/rootfs/usr/lib64 none
ro, bind 0 0
lxc.mount.entry = / tmp / bin / tmp / tst / guest / rootfs / bin none ro,
bind 0 0
lxc.mount.entry = / tmp / usr / bin / tmp / tst / guest / rootfs / usr /
bin none ro, bind 0 0
lxc.mount.entry = / tmp / usr / lib / tmp / tst / guest / rootfs / usr /
lib none ro, bind 0 0
lxc.mount.entry = / tmp / usr / share / tmp / tst / guest / rootfs / usr /
share none ro, bind 0 0
lxc.mount.entry = / tmp / sbin / tmp / tst / guest / rootfs / sbin none ro,
bind 0 0
# lxc.cgroup.cpuset.cpus = 1

lxc.cgroup.devices.deny = a # Deny all access to devices

lxc.cgroup.devices.allow = c 1:3 rwm # dev / null
lxc.cgroup.devices.allow = c 1:5 rwm # dev / zero

lxc.cgroup.devices.allow = c 5:1 rwm # dev / console
lxc.cgroup.devices.allow = c 5:0 rwm # dev / tty
lxc.cgroup.devices.allow = c 4:0 rwm # dev/tty0

lxc.cgroup.devices.allow = c 1:9 rwm # dev / urandom
lxc.cgroup.devices.allow = c 1:8 rwm # dev / random
lxc.cgroup.devices.allow = c 136 : * rwm # dev / pts / *
lxc.cgroup.devices.allow = c 5:2 rwm # dev / pts / ptmx

lxc.cgroup.devices.allow = c 254:0 rwm

lxc.tty = 5
lxc.pts = 1024
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140401/10418b93/attachment.html>


More information about the lxc-devel mailing list