linux - Host system keyboard layout changes when starting LXC container -
i created archlinux container on archlinux host lxc. however, whenever start container via
lxc-start -n guestname
the keyboard layout changes default us-layout on host , in container. want de-latin1. surprising keeps happening despite fact in
/etc/vconsole.conf
on host , in container have set options
keymap=de-latin1
the cause of problem seems systemd service responsible setting vconsole options not running inside container:
systemctl status systemd-vconsole-setup ● systemd-vconsole-setup.service - setup virtual console loaded: loaded (/usr/lib/systemd/system/systemd-vconsole-setup.service; static) active: inactive (dead) start condition failed @ mon 2014-06-02 20:53:10 utc; 27s ago conditionpathexists=/dev/tty0 not met docs: man:systemd-vconsole-setup.service(8) man:vconsole.conf(5)
somehow states that
/dev/tty0 not met
but unsure trying tell me. archlinux linux containers page (https://wiki.archlinux.org/index.php/linux_containers#terminal_settings) not helping me. can please explain error , how solve it?
the reason systemd changing layout in first place gave read/write access on consoles cgroup.
you can change with :
lxc.cgroup.devices.deny = c 5:0 rw lxc.cgroup.devices.deny = c 5:1 rw
Comments
Post a Comment