<div dir="ltr">Hi Scott,<div><br></div><div>The containers we&#39;re expecting to start on boot are precisely those which have &quot;ONBOOT=&quot;yes&quot; 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">&lt;<a href="mailto:dowdle@montanalinux.org" target="_blank">dowdle@montanalinux.org</a>&gt;</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>
&gt; I&#39;ve noticed a new behavior from the openvz hosts regarding shutdown<br>
&gt; and startup. We&#39;ve long preferred to migrate the really important<br>
&gt; CTs to another host before we rebooting for e.g. a kernel upgrade.<br>
&gt; Other CTs are redundant or are not continuously needed, so we&#39;d<br>
&gt; simply shut those down before rebooting the node.<br>
&gt;<br>
&gt; Some updates ago, I notice that containers are no longer auto<br>
&gt; starting when the node comes back up. I&#39;d assumed it was a temporary<br>
&gt; bug but that behavior has persisted through several updates. Of<br>
&gt; course the containers would run normally if manually started.<br>
&gt;<br>
&gt; On the most recent kernel upgrade, I decided to shut down the node<br>
&gt; without first shutting down the CTs, just to see what the behavior<br>
&gt; would be. When the host came back up, the CTs were not auto started,<br>
&gt; but were in a suspended state - and vzctl resume brought them back<br>
&gt; up, with the uptime counters preserved.<br>
&gt;<br>
&gt; I did not expect that, but it&#39;s a nice feature.<br>
<br>
</span>Do your containers have:<br>
  ONBOOT=&quot;yes&quot;<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&#39;t starting, then we&#39;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>