[lxc-users] Failing to create & start container based on busybox template
Gujulan Elango, Hari Prasath (H.)
hgujulan at visteon.com
Thu Mar 3 12:40:37 UTC 2016
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: lxc-users at lists.linuxcontainers.org
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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160303/e5b284b4/attachment.html>
More information about the lxc-users
mailing list