<div dir="ltr">Hello,<div><br></div><div>The lxc-attach in this case is not needed.</div><div><br></div><div>Try to connect to the container, and check the time it takes using a poweroff from inside.</div><div><br></div><div>
If you check the other emails in the post, have been some changes on how the containers are shutdown.</div><div><br></div><div>Alvaro</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 18, 2014 at 2:43 AM, David Shwatrz <span dir="ltr"><<a href="mailto:dshwatrz@gmail.com" target="_blank">dshwatrz@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>
Strangely,<br>
time lxc-attach -n fedoraCT1 poweroff<br>
gives:<br>
lxc-attach: failed to clone(0x8000): Invalid argument<br>
lxc-attach: Invalid argument - failed to create subprocess<br>
<br>
I get the same error also with:<br>
lxc-attach -n fedoraCT1 poweroff<br>
<br>
<br>
I made a test on another machine, which runs Ubuntu OS, and I created<br>
an ubuntu container on it.<br>
In this case, stopping the container took less than a second:<br>
<br>
time lxc-stop -n ubuntuGit<br>
<br>
real 0m0.803s<br>
user 0m0.003s<br>
sys 0m0.006s<br>
<br>
<br>
But when I tried another test with lxc-attach, I got the same errors:<br>
<br>
lxc-attach -n ubuntuGit poweroff<br>
lxc-attach: failed to clone(0x8000): Invalid argument<br>
lxc-attach: Invalid argument - failed to create subprocess<br>
<br>
<br>
time lxc-attach -n ubuntuGit poweroff<br>
lxc-attach: failed to clone(0x8000): Invalid argument<br>
lxc-attach: Invalid argument - failed to create subprocess<br>
<br>
<br>
Any ideas about this error message of lxc-attach ?<br>
<br>
I am working with latest git tree on both fedora and ubuntu. I build it<br>
in both cases with --disable-python<br>
<br>
regards,<br>
DavidS<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Thu, Jan 16, 2014 at 10:47 PM, Alvaro Miranda Aguilera<br>
<<a href="mailto:kikitux@gmail.com">kikitux@gmail.com</a>> wrote:<br>
> what's the time if you shutdown the container from inside?<br>
><br>
> time lxc-attach -n fedoraCT1 poweroff<br>
><br>
><br>
><br>
><br>
> On Fri, Jan 17, 2014 at 9:31 AM, David Shwatrz <<a href="mailto:dshwatrz@gmail.com">dshwatrz@gmail.com</a>> wrote:<br>
>><br>
>> Hello, lxc-users,<br>
>><br>
>> I created a container using the fedora template with the latest git<br>
>> LXC tree, on Fedora 20.<br>
>><br>
>> I use the standard configuration, with veth for networking.<br>
>> Starting the container is very quick and it is done by:<br>
>> lxc-start -n fedoraCT1<br>
>><br>
>> Stopping the container by<br>
>> lxc-stop -n fedoraCT1<br>
>> takes more than a minute. I ran:<br>
>><br>
>> time lxc-stop -n fedoraCT1<br>
>><br>
>> and got:<br>
>> real 1m0.985s<br>
>> user 0m0.002s<br>
>> sys 0m0.004s<br>
>><br>
>> Is this normal/expected behavior with other containers, based on<br>
>> different templates (like ubuntu/debian)?<br>
>><br>
>><br>
>> regards,<br>
>> DavidS<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><br>
><br>
><br>
><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><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><br>
</blockquote></div><br></div>