doc-exports/docs/bms/image-creation-guide/en-us_topic_0081116632.html
guoyanyan 9dc3cf685a bms_bpicg_0309
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2023-04-19 14:53:50 +00:00

33 lines
4.6 KiB
HTML

<a name="EN-US_TOPIC_0081116632"></a><a name="EN-US_TOPIC_0081116632"></a>
<h1 class="topictitle1">SUSE 12 SP2/SUSE 12 SP3/SUSE 15/Oracle Linux 7/Red Hat 7/CentOS 7/CentOS 8</h1>
<div id="body56975169"><ol id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_ol17443112817506"><li id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_li1344312814509"><a name="EN-US_TOPIC_0081116632__en-us_topic_0094568857_li1344312814509"></a><a name="en-us_topic_0094568857_li1344312814509"></a>Check whether the Cloud-init services will automatically start when the system starts.<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p159661355928"><a name="EN-US_TOPIC_0081116632__en-us_topic_0094568857_li1344312814509"></a><a name="en-us_topic_0094568857_li1344312814509"></a><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b1296619551429">systemctl status cloud-init-local</strong></p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p1596619551921"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b896610557217">systemctl status cloud-init</strong></p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p3966555626"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b49667557213">systemctl status cloud-config</strong></p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p49661555125"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b59661155025">systemctl status cloud-final</strong></p>
</li><li id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_li7461163615014"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b842352706163410">enabled</strong> indicates that the service will automatically start.<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p273212113135"><span><img id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_image173216118132" src="en-us_image_0110253503.png" title="Click to enlarge" class="imgResize"></span></p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p229171816526">Otherwise, run the following commands to enable automatic startup for them.</p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p0749162165218"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b10608930185215">systemctl enable cloud-init-local</strong></p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p1320412485212"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b560910303520">systemctl enable cloud-init</strong></p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p22121326125217"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b761011301523">systemctl enable cloud-config</strong></p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p86378605214"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b10611193085214">systemctl enable cloud-final</strong></p>
</li><li id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_li1175895182613">Run the following commands to start Cloud-Init:<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p377275132620"><a name="EN-US_TOPIC_0081116632__en-us_topic_0094568857_li1175895182613"></a><a name="en-us_topic_0094568857_li1175895182613"></a><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b1277216516269">systemctl start cloud-init-local</strong></p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p47721656265"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b127721252262">systemctl start cloud-init</strong></p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p477217516267"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b677295112611">systemctl start cloud-config</strong></p>
<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p47728512617"><strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b07729542616">systemctl start cloud-final</strong></p>
</li><li id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_li9105182072615">Run the commands in <a href="#EN-US_TOPIC_0081116632__en-us_topic_0094568857_li1344312814509">1</a> to check whether the Cloud-Init status is <strong id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_b81155368179">active</strong>.<p id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_p141121206266"><span><img id="EN-US_TOPIC_0081116632__en-us_topic_0094568857_image1311211200263" src="en-us_image_0000001429481705.png" title="Click to enlarge" class="imgResize"></span></p>
</li></ol>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0081116681.html">Checking the Cloud-Init Status</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>