I have created an LXC container on CentOS 7. Every time I do sudo lxc-start -n mycontainer
I'm greeted with a login prompt:
...
[ OK ] Started Console Getty.
[ OK ] Started Command Scheduler.
[ OK ] Reached target Login Prompts.
[ OK ] Started Cleanup of Temporary Directories.
[ OK ] Started Login Service.
mycontainer login: root
Password:
Login incorrect
Doint CTRL+C or CTRL+Z won't get rid of it, which means I can't use this terminal anymore. However, on another terminal I can SSH into the container using the exact same password that is rejected above. I also tried root:root
as I read somewhere that it would be the default.
All I want to do now is disable this login prompt so I can just use either lxc-attach
or SSH to get a console. In Ubuuntu I never get a login prompt as default, is there a way to disable it on CentOS LXC to get the same behaviour? I looked up man lxc.container.conf
but couldn't find anything useful. Thanks in advance.