[Lxc-users] How to start the network services so as to get the IP address using lxc-execute???

Ramez Hanna rhanna at informatiq.org
Thu Dec 8 11:16:07 UTC 2011


On Thu, Dec 8, 2011 at 12:33 PM, nishant mungse <nishantmungse at gmail.com> wrote:
> Hi,
>
> I want to manually invoke a networking setup to start the network service to
> get the IP address of container , But the problem is i don't want to start
> the container and want to use lxc-execute.
>
> When I tried these things happened::
>
> command :: lxc-execute -n base -f /home/nishant/ubuntu.conf
> /var/lib/lxc/base1/rootfs/etc/init.d/networking start
>
> O/P
>
> Rather than invoking init scripts through /etc/init.d, use the service(8)
> utility, e.g. service networking start
>
> Since the script you are attempting to invoke has been converted to an
> Upstart job, you may also use the start(8) utility, e.g. start networking
> start: Unable to connect to Upstart: Failed to connect to socket
> /com/ubuntu/upstart: Connection refused
>
>
> How to start the network services so as to get the IP addresses of
> containers?
>
>
> Regards,
> Nishant
>
>
>
>
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of
> discussion for anyone considering optimizing the pricing and packaging model
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>

looks like the upstart scripts need upstart to be running!
you could use a different script to start the networking say from a sysv init
but I am not sure that with execute you will get the networking
stack/isolation  available

-- 
BR
RH
http://informatiq.org




More information about the lxc-users mailing list