[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lxc-users
Subject:    Re: [lxc-users] lxc-start fails
From:       "SIVA SUBRAMANIAN.P" <psiva87 () gmail ! com>
Date:       2015-05-21 0:41:47
Message-ID: CAOorjZTo0YwdniJuxbf_dCVz3X+ArZsod59YL-=Md9=56ye30w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


No, I'm trying to add it.

On Wed, May 20, 2015 at 4:27 PM, Fajar A. Nugraha <list@fajar.net> wrote:

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

[Attachment #5 (text/html)]

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



[Attachment #6 (text/plain)]

_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic