[pve-devel] virtual terminals in LXC

Dietmar Maurer dietmar at proxmox.com
Wed Sep 30 07:14:43 CEST 2015


Hi Jeremy,

> # setterm -blank 0
> setterm: terminal xterm does not support --blank
> 
>    -appears to be a Jessie thing...!?

I guess you should avoid to set this for containers. You can do this
by inspecting the environment variable 'container', which is set to 'lxc'
in our case.

You can also try to set TERM in the container config file:

lxc.environment: TERM=linux

Does that solve you problems? Maybe we should set that by default?

> # fgconsole
> Couldn't get a file descriptor referring to the console

I have done a quick test with OpenVZ, and I get the same error with openvz.




More information about the pve-devel mailing list