* Isolated shutdown?
@ 2009-08-25 9:42 Scott Helvick
[not found] ` <cb541ffb0908250242g620940bi36f863a7578a0cb7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Scott Helvick @ 2009-08-25 9:42 UTC (permalink / raw)
To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Hello all,
I've set up a system container with a mostly-complete filesystem, built from
scratch. However, I'm having several minor issues, which leads me to
believe I'm misunderstanding something about how lxc works. For one thing,
I find myself unable to kill processes within the container itself (process
handling is a whole other issue)... yet when I run 'shutdown', it not only
shuts down the container, but also the host! Somehow I don't think this was
a design decision. :-)
Any tips would be appreciated.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Isolated shutdown?
[not found] ` <cb541ffb0908250242g620940bi36f863a7578a0cb7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-08-25 9:58 ` Daniel Lezcano
[not found] ` <4A93B5A8.7080104-GANU6spQydw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Lezcano @ 2009-08-25 9:58 UTC (permalink / raw)
To: Scott Helvick; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Scott Helvick wrote:
> Hello all,
>
> I've set up a system container with a mostly-complete filesystem, built from
> scratch. However, I'm having several minor issues, which leads me to
> believe I'm misunderstanding something about how lxc works. For one thing,
> I find myself unable to kill processes within the container itself (process
> handling is a whole other issue)... yet when I run 'shutdown', it not only
> shuts down the container, but also the host! Somehow I don't think this was
> a design decision. :-)
>
> Any tips would be appreciated.
>
It is not yet supported.
You can drop PR_CAPBSET_DROP capability for your system container, that
will avoid to poweroff your host.
I proposed to send a signal to the parent of the process 1, telling if
the container was doing poweroff or reboot but I didn't have any response :(
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Isolated shutdown?
[not found] ` <4A93B5A8.7080104-GANU6spQydw@public.gmane.org>
@ 2009-08-25 10:18 ` Scott Helvick
[not found] ` <cb541ffb0908250318ud156f27l75de8ed776557505-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Scott Helvick @ 2009-08-25 10:18 UTC (permalink / raw)
To: Daniel Lezcano; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
On Tue, Aug 25, 2009 at 4:58 AM, Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>wrote:
> Scott Helvick wrote:
>
>> Hello all,
>>
>> I've set up a system container with a mostly-complete filesystem, built
>> from
>> scratch. However, I'm having several minor issues, which leads me to
>> believe I'm misunderstanding something about how lxc works. For one
>> thing,
>> I find myself unable to kill processes within the container itself
>> (process
>> handling is a whole other issue)... yet when I run 'shutdown', it not only
>> shuts down the container, but also the host! Somehow I don't think this
>> was
>> a design decision. :-)
>>
>> Any tips would be appreciated.
>>
>>
> It is not yet supported.
> You can drop PR_CAPBSET_DROP capability for your system container, that
> will avoid to poweroff your host.
Stupid question; how exactly do I do this, and does it have any side
effects? Running 'getpcaps' on the container only reveals:
# getpcaps 2022
Capabilities for `2022': =
cap_dac_override,cap_fowner,cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_chroot,cap_sys_admin+ep
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Isolated shutdown?
[not found] ` <cb541ffb0908250318ud156f27l75de8ed776557505-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-08-25 11:08 ` Daniel Lezcano
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Lezcano @ 2009-08-25 11:08 UTC (permalink / raw)
To: Scott Helvick; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Scott Helvick wrote:
> On Tue, Aug 25, 2009 at 4:58 AM, Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>wrote:
>
>
>> Scott Helvick wrote:
>>
>>
>>> Hello all,
>>>
>>> I've set up a system container with a mostly-complete filesystem, built
>>> from
>>> scratch. However, I'm having several minor issues, which leads me to
>>> believe I'm misunderstanding something about how lxc works. For one
>>> thing,
>>> I find myself unable to kill processes within the container itself
>>> (process
>>> handling is a whole other issue)... yet when I run 'shutdown', it not only
>>> shuts down the container, but also the host! Somehow I don't think this
>>> was
>>> a design decision. :-)
>>>
>>> Any tips would be appreciated.
>>>
>>>
>>>
>> It is not yet supported.
>> You can drop PR_CAPBSET_DROP capability for your system container, that
>> will avoid to poweroff your host.
>>
>
>
> Stupid question; how exactly do I do this, and does it have any side
> effects? Running 'getpcaps' on the container only reveals:
>
> # getpcaps 2022
> Capabilities for `2022': =
> cap_dac_override,cap_fowner,cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_chroot,cap_sys_admin+ep
>
Which tools in userspace are you using ?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-25 11:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-25 9:42 Isolated shutdown? Scott Helvick
[not found] ` <cb541ffb0908250242g620940bi36f863a7578a0cb7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-25 9:58 ` Daniel Lezcano
[not found] ` <4A93B5A8.7080104-GANU6spQydw@public.gmane.org>
2009-08-25 10:18 ` Scott Helvick
[not found] ` <cb541ffb0908250318ud156f27l75de8ed776557505-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-25 11:08 ` Daniel Lezcano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.