[Lxc-users] Running sudo shutdown -h now in container causes host to freeze/crash

Michael Fox michaelf at heimic.net
Tue Aug 13 20:20:17 UTC 2013


As root what happens if you shutdown -h now in the container... let's take
out the use of sudo completely when running that command and sudo upto root
user and run it. Do you still get a crash/hang?

Thanks


On Wed, Aug 14, 2013 at 2:06 AM, brian mullan <bmullan.mail at gmail.com>wrote:

> I've been having this problem for a while now.   To get away from it I
> actually did a sudo apt-get purge lxc
> then reinstalled LXC but now the same problem is back again.
>
> System:  ubuntu 13.04 desktop
>
> I create a container:
> *sudo lxc-create -t ubuntu -n my_cn*
>
> start it
> *sudo lxc-start -n my_cn*
>
> *login*
> add a desktop environment
> *sudo apt-get install lxde*
>
> I also add a remote desktop config to the container so I can access the
> desktop from the host
> (I use x2go but I've also used vnc and others).
>
> remote desktop from host always works!
>
> but when I am done I exit the remote desktop session which kills that
> session in the container
>
> I get back into the terminal session with the container and tell it to
> shutdown:
>
> *sudo shutdown -h now*
>
> everything looks normal as the container shutsdown except it never returns
> to the Host command prompt in the terminal
>
> At that point if I try to click on anything on the host (like start a 2nd
> terminal or start a browser)...
>
> That 1st app on the host starts but then the entire Host freezes solid.
>
> No mouse, no keyboard, no activity and the only thing left to do is a hard
> reset.
>
> Any ideas of how I can troubleshoot this?  or what might be happening?
> I've been using LXC for a long time
> and I've not had this happen before.
>
> thanks
> brian
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130814/cca2b7e3/attachment.html>


More information about the lxc-users mailing list