New Debian lxc with problems

.n3

Member
Mar 19, 2023
48
2
13
Hey,

I downloaded the debian 13 template and created a new lxc with this template. I used the default features and disabled nesting.

First I have the problem, that I do not see console. It shows a black screen. Through the shell I can connect to the container. I updated and upgraded the container but I get errors adding a user and the console still show a black screen. I'm confiused, because it is a fresh installation:

Code:
root@database:~# adduser db_user
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = (unset),
        LC_NUMERIC = (unset),
        LC_COLLATE = (unset),
        LC_TIME = (unset),
        LC_MESSAGES = (unset),
        LC_MONETARY = (unset),
        LC_ADDRESS = (unset),
        LC_IDENTIFICATION = (unset),
        LC_MEASUREMENT = (unset),
        LC_PAPER = (unset),
        LC_TELEPHONE = (unset),
        LC_NAME = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
logger: socket /dev/log: Connection refused
logging to syslog failed: command line logger --id=391 --tag=adduser --priority=user.info  -- Adding user `db_user' ... returned error: 256
logger: socket /dev/log: Connection refused
logging to syslog failed: command line logger --id=391 --tag=adduser --priority=user.info  -- Selecting UID/GID from range 1000 to 59999 ... returned error: 256
logger: socket /dev/log: Connection refused
logging to syslog failed: command line logger --id=391 --tag=adduser --priority=user.info  -- Adding new group `db_user' (1000) ... returned error: 256
logger: socket /dev/log: Connection refused
logging to syslog failed: command line logger --id=391 --tag=adduser --priority=user.info  -- Adding new user `db_user' (1000) with group `n3 (1000)' ... returned error: 256
logger: socket /dev/log: Connection refused
logging to syslog failed: command line logger --id=391 --tag=adduser --priority=user.info  -- Creating home directory `/home/db_user' ... returned error: 256
logger: socket /dev/log: Connection refused
logging to syslog failed: command line logger --id=391 --tag=adduser --priority=user.info  -- Copying files from `/etc/skel' ... returned error: 256
 
I used the default features and disabled nesting.
Nesting is required by newer templates, like Debian 13, because of the newer systemd version. That's the main reason that it's on by default nowadays. Lots of threads on this forum about this.
perl: warning: Setting locale failed.
The locale issue is on every template and you can use dpkg-reconfigure locales to set a locale.
logger: socket /dev/log: Connection refused
I don't know about this one, sorry, Maybe enable (the default) nesting to see if the problem goes away?
 
Last edited:
  • Like
Reactions: Impact and .n3
It was the nesting. I deleted the lxc and created a new one with nesting but the problem still exists. I don't know how, but nesting was again disabeld. To thrid lxc with nesting is working. Thanks! Also thank you for the reconfig of the locals. Add this to my Howto ;-)
 
Also, it is a good idea to do a dpkg-reconfigure tzdata so that the Timezone is also set.
Thanks for the hint. therefor I use timedatectl set-timezone Europe/Berlin

Should I also execute:

systemctl stop sys-kernel-config.mount
systemctl mask sys-kernel-config.mount