<div dir="ltr">Hi Scott,<div><br></div><div>The containers we're expecting to start on boot are precisely those which have "ONBOOT="yes" in their config files. And up until a few updates ago, they always started on boot. That said, this new behavior of suspending running containers on shutdown seems useful though.</div><div><br></div><div>Joe</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 5:47 AM, Scott Dowdle <span dir="ltr"><<a href="mailto:dowdle@montanalinux.org" target="_blank">dowdle@montanalinux.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings,<br>
<span class=""><br>
----- Original Message -----<br>
> I've noticed a new behavior from the openvz hosts regarding shutdown<br>
> and startup. We've long preferred to migrate the really important<br>
> CTs to another host before we rebooting for e.g. a kernel upgrade.<br>
> Other CTs are redundant or are not continuously needed, so we'd<br>
> simply shut those down before rebooting the node.<br>
><br>
> Some updates ago, I notice that containers are no longer auto<br>
> starting when the node comes back up. I'd assumed it was a temporary<br>
> bug but that behavior has persisted through several updates. Of<br>
> course the containers would run normally if manually started.<br>
><br>
> On the most recent kernel upgrade, I decided to shut down the node<br>
> without first shutting down the CTs, just to see what the behavior<br>
> would be. When the host came back up, the CTs were not auto started,<br>
> but were in a suspended state - and vzctl resume brought them back<br>
> up, with the uptime counters preserved.<br>
><br>
> I did not expect that, but it's a nice feature.<br>
<br>
</span>Do your containers have:<br>
ONBOOT="yes"<br>
...in their configs?<br>
<br>
If not, then:<br>
vzctl set {ctid} --onboot yes --save<br>
<br>
If they are configured that way, and they aren't starting, then we'll have to look into it.<br>
<br>
TYL,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Scott Dowdle<br>
704 Church Street<br>
Belgrade, MT 59714<br>
<a href="tel:%28406%29388-0827" value="+14063880827">(406)388-0827</a> [home]<br>
<a href="tel:%28406%29994-3931" value="+14069943931">(406)994-3931</a> [work]<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</font></span></blockquote></div><br></div>