Hi Geordy,<br><br>This script gives the IP address of running system, but what I want is to get the IP address of the containers that are not started using lxc-start, lxc-start will call /sbin/init to init all the system, but I want to use lxc-execute that will no init the system. <br>

<br><br>Hey Greg you said that, it is possible to get the IP address without starting the containers how can we do this????<br><br>And one more question how to start the network services using lxc-execute<br><br><br>Please help me ASAP.<br>

<br><br>Regards,<br>Nishant<br><br><div class="gmail_quote">On Fri, Dec 9, 2011 at 11:03 AM, nishant mungse <span dir="ltr"><<a href="mailto:nishantmungse@gmail.com" target="_blank">nishantmungse@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Geordy,<br><br>You said that your script gets the IP from running container, but i dont want to use lxc-start I just want the IP address and use lxc-execute to start network services.<br><br><br>Regards,<br>Nishant<div>

<div><br><br>
<div class="gmail_quote">On Fri, Dec 9, 2011 at 11:00 AM, nishant mungse <span dir="ltr"><<a href="mailto:nishantmungse@gmail.com" target="_blank">nishantmungse@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi,<br><br><br>Thanks 4 script.<br><br>Regards,<br>Nishant<div><div><br><br><div class="gmail_quote">On Fri, Dec 9, 2011 at 12:18 AM, Geordy Korte <span dir="ltr"><<a href="mailto:gkorte@gmail.com" target="_blank">gkorte@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok, got out of the hellish traffic jam.  Attached the Script I use to check the IP number of a running machine.<div>
<div><br><br><br><br><div class="gmail_quote">On Thu, Dec 8, 2011 at 5:48 PM, Geordy Korte <span dir="ltr"><<a href="mailto:gkorte@gmail.com" target="_blank">gkorte@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div>I have a script that gets the from a running container, if that is what you need i post it tommorrow morning. If i forget ST me via the ibm network.<br>




<br>Mvg<span><font color="#888888"><div><br></div><div>Geordy Korte</div><div>(Sent via iphone so shorter then normal)</div><div><br></div></font></span></div><div><div><div><br>On 8 dec. 2011, at 13:59, nishant mungse <<a href="mailto:nishantmungse@gmail.com" target="_blank">nishantmungse@gmail.com</a>> wrote:<br>




<br></div><div></div><blockquote type="cite"><div><br>Hi Greg,<br><br>Thanks 4 reply.<br><br>I just want the IP addresses of the containers. And one more thing can I get the IP address of containers in sequence for eg. container1 :: 198.208.168.1 container 2 :: 198.208.168.2 and like this.<br>





<br>Please help me ASAP.<br><br>Regards,<br>Nishant<br><br><div class="gmail_quote">On Thu, Dec 8, 2011 at 5:09 PM, Greg Kurz <span dir="ltr"><<a href="mailto:gkurz@fr.ibm.com" target="_blank">gkurz@fr.ibm.com</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Thu, 2011-12-08 at 16:03 +0530, nishant mungse wrote:<br>
> Hi,<br>
><br>
> I want to manually invoke a networking setup to start the network<br>
> service to get the IP address of container , But the problem is i<br>
> don't want to start the container and want to use lxc-execute.<br>
><br>
> When I tried these things happened::<br>
><br>
> command :: lxc-execute -n base<br>
> -f /home/nishant/ubuntu.conf /var/lib/lxc/base1/rootfs/etc/init.d/networking start<br>
<br>
</div>Ok... this can't work. lxc-execute is for application containers only:<br>
it runs lxc-init instead of standard /sbin/init. The networking script<br>
you invoke needs upstart to be already running in the container... You<br>
seem to have a system container here, it _MUST_ be started with<br>
lxc-start.<br>
<div><br>
><br>
> O/P<br>
><br>
> Rather than invoking init scripts through /etc/init.d, use the<br>
> service(8)<br>
> utility, e.g. service networking start<br>
><br>
> Since the script you are attempting to invoke has been converted to an<br>
> Upstart job, you may also use the start(8) utility, e.g. start<br>
> networking<br>
> start: Unable to connect to Upstart: Failed to connect to<br>
> socket /com/ubuntu/upstart: Connection refused<br>
><br>
><br>
> How to start the network services so as to get the IP addresses of<br>
> containers?<br>
><br>
<br>
</div>What's your true need here ? Controlling the containers network services<br>
from the host or just knowing the addresses used by the containers ? I<br>
guess both are doable in a variety of ways.<br>
<br>
Cheers.<br>
<div><div><br>
><br>
> Regards,<br>
> Nishant<br>
><br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
> Cloud Services Checklist: Pricing and Packaging Optimization<br>
> This white paper is intended to serve as a reference, checklist and point of<br>
> discussion for anyone considering optimizing the pricing and packaging model<br>
> of a cloud services business. Read Now!<br>
> <a href="http://www.accelacomm.com/jaw/sfnl/114/51491232/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51491232/</a><br>
> _______________________________________________ Lxc-users mailing list <a href="mailto:Lxc-users@lists.sourceforge.net" target="_blank">Lxc-users@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>






<br>
</div></div><span><font color="#888888">--<br>
Gregory Kurz                                     <a href="mailto:gkurz@fr.ibm.com" target="_blank">gkurz@fr.ibm.com</a><br>
Software Engineer @ IBM/Meiosys                  <a href="http://www.ibm.com" target="_blank">http://www.ibm.com</a><br>
Tel <a href="tel:%2B33%20%280%29534%20638%20479" value="+33534638479" target="_blank">+33 (0)534 638 479</a>                           Fax <a href="tel:%2B33%20%280%29561%20400%20420" value="+33561400420" target="_blank">+33 (0)561 400 420</a><br>





<br>
"Anarchy is about taking complete responsibility for yourself."<br>
        Alan Moore.<br>
<br>
</font></span></blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>------------------------------------------------------------------------------</span><br><span>Cloud Services Checklist: Pricing and Packaging Optimization</span><br>




<span>This white paper is intended to serve as a reference, checklist and point of </span><br><span>discussion for anyone considering optimizing the pricing and packaging model </span><br><span>of a cloud services business. Read Now!</span><br>




<span><a href="http://www.accelacomm.com/jaw/sfnl/114/51491232/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51491232/</a></span></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br>




<span>Lxc-users mailing list</span><br><span><a href="mailto:Lxc-users@lists.sourceforge.net" target="_blank">Lxc-users@lists.sourceforge.net</a></span><br><span><a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a></span><br>




</div></blockquote></div></div></div></blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br>==============<br>Geordy Korte<br>MSN <a href="mailto:geordy@geordy.nl" target="_blank">geordy@geordy.nl</a><br>




</font></span></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>