Update:
After compiling busbox with static linking & enabling the init applet, I am
able to start the container. But as before,when creating the container using
lxc-create, I am getting the same error i.e. Failed to change the root
password.
Because of this, after I start the container, it's prompting for the login. If
I give root, then its throwing the following error & always ends up with the
login prompt.
getty: tty1: can't execute '/bin/login'
I assume if I fix the error when executing 'lxc-create', this should also be
gone. Also, when I start the container as foreground process using the -F
option, it ends up with the console without any login prompts. However, I am am
not able to quit from the console.
Any inputs ?
Thanks & Regards,
Hari Prasath
________________________________
From: Gujulan Elango, Hari Prasath (H.)
Sent: Thursday, March 3, 2016 5:02 PM
To: [email protected]
Subject: Failing to create & start container based on busybox template
Dear All,
I am trying to create a container based on the busybox template. I am facing
the following error
root@xxx:~# lxc-create -n my-bb -t /usr/share/lxc/templates/lxc-busybox
setting root password to "root"
Failed to change root password
'dropbear' ssh utility installed
Even if i ignore the above error & try to start the container, I am getting the
following errors.
root@xxx:~# lxc-start -n my-bb -F
lxc-start: utils.c: open_without_symlink: 1575 No such file or directory -
Error examining sysrq-trigger in /usr/lib/lxc/rootfs/proc/sysrq-trigger
lxc-start: utils.c: open_without_symlink: 1575 No such file or directory -
Error examining sysrq-trigger in /usr/lib/lxc/rootfs/proc/sysrq-trigger
init: applet not found
lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by
setting the --logfile and --logpriority options.
Is there anything that I am missing. Any help would be much appreciated ?
Thanks & Regards,
Hari Prasath
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users