<div dir="ltr"><div>Thanks Fajar,</div>Now I'm able to configure statically linked busybox to get rid of warnings, but init applet error exists.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 18, 2015 at 4:44 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Read the messages<br>
<br>
(1)<br>
<span class="">> /usr/share/lxc/templates/lxc-busybox: line 182: file: command not found<br>
<br>
</span>you don't have the necessary programs on your host (i.e. you don't<br>
have "file", usually installed as "/usr/bin/file").<br>
<br>
(2)<br>
<span class="">> warning : busybox is not statically linked.<br>
> warning : The template script may not correctly<br>
<br>
</span>your busybox is not statically linked. On ubuntu, you'd need the<br>
"busybox-static" package.<br>
<br>
(3)<br>
<span class="">> # lxc-start --name u1<br>
> init: applet not found<br>
<br>
</span>This might be the result of (2), your busybox does not recognize<br>
"init" as an applet that it handles. Again, on ubuntu, using<br>
"busybox-static" should work.<br>
<br>
Are you using your own self-compiled busybox? If yes, there are<br>
options during compile time to enable static linking as well as<br>
selecting which applets to enable.<br>
<br>
--<br>
Fajar<br>
<div><div class="h5"><br>
On Tue, May 19, 2015 at 3:02 AM, Sivasubramanian Patchaiperumal<br>
<<a href="mailto:Sivasubramanian.Patchaiperumal@lnttechservices.com">Sivasubramanian.Patchaiperumal@lnttechservices.com</a>> wrote:<br>
> Hi,<br>
> I'm trying to create and run busybox container, but facing below error.<br>
> # lxc-create --template=busybox --name=u1<br>
> /usr/share/lxc/templates/lxc-busybox: line 182: file: command not found<br>
> warning : busybox is not statically linked.<br>
> warning : The template script may not correctly<br>
> warning : setup the container environment.<br>
> chmod: /var/lib/lxc/u1/rootfs/bin/passwd: No such file or directory<br>
> setting root password to "root"<br>
> Failed to change root password<br>
> 'dropbear' ssh utility installed<br>
><br>
> # lxc-start --name u1<br>
> init: applet not found<br>
> lxc-start: lxc_start.c: main: 342 The container failed to start.<br>
> lxc-start: lxc_start.c: main: 346 Additional information can be obtained by<br>
> setting the --logfile and --logpriority options.<br>
><br>
> Regards,<br>
> Sivasubramanian<br>
> Skype: sivasubramanian.patchaiperumal<br>
><br>
> L&T Technology Services Ltd<br>
><br>
> <a href="http://www.LntTechservices.com" target="_blank">www.LntTechservices.com</a><br>
><br>
> This Email may contain confidential or privileged information for the<br>
> intended recipient (s). If you are not the intended recipient, please do not<br>
> use or disseminate the information, notify the sender and delete it from<br>
> your system.<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote></div><br></div>