On 05/03/2015 09:14 AM, CoolCold wrote:
Hello!
Just installed Debian 8 "Jessie" in VE. Used almost the same template
creation script as for Squeeze and started cleaning some things up.
One particular thing I've noted is agetty processes being started for
tty{1..6} via systemd. Some lurking and asking on #systemd@freenode
revealed several possibly solutions:
1) completely disable (note that you should use "mask" command) the
service, like:
systemctl mask getty-static.service
2) use conditional in Unit definition
/lib/systemd/system/getty-static.service
ConditionVirtualization=!openvz
(i'd suggest to use ConditionVirtualization=!lxc for LXC too)
So, knowledge is shared, now the question part.
1) to OpenVZ devs - are there any chances ttys (except console) may be
needed?
Yes, you can use vzctl console $CTID $TTYNUM to get a console for those.
In our recent templates we have getty on tty1 and tty2 configured
(just in case /dev/tty1 is screwed you can have it on /dev/tty2).
We were disabling it before because there was no /dev/tty virtualization
and getty
processes kept respawning leading to waste of CPU time and some nasty log
messages ("getty respawining too fast, disabling for 5 minutes" or so if
I remember
correctly). Nowadays there's no need to disable it.
2) to Ola Lundqvist , what do you think, is it worth to fill the bug
to Debian's systemd package?
--
Best regards,
[COOLCOLD-RIPN]
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users