forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com> Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
30 lines
6.9 KiB
HTML
30 lines
6.9 KiB
HTML
<a name="EN-US_TOPIC_0048642616"></a><a name="EN-US_TOPIC_0048642616"></a>
|
|
|
|
<h1 class="topictitle1">Cloud-Init/Cloudbase-Init</h1>
|
|
<div id="body1487147188799"><p id="EN-US_TOPIC_0048642616__p24907765162841">Cloud-Init or Cloudbase-Init is an open-source cloud program that allows you to configure specific custom details of newly created <span id="EN-US_TOPIC_0048642616__text169521139133911">ECS</span>s (such as the hostname, key pair, and user data) during initialization.</p>
|
|
<p id="EN-US_TOPIC_0048642616__p28807954171256">All standard (Standard_xxx) and enterprise (Enterprise_xxx) images support Cloud-Init or Cloudbase-Init. Only certain community images (Community_xxx) do not support it.</p>
|
|
<p id="EN-US_TOPIC_0048642616__p61388894444">Using Cloud-Init or Cloudbase-Init to initialize your <span id="EN-US_TOPIC_0048642616__text995012410423">ECS</span>s will affect the use of your <span id="EN-US_TOPIC_0048642616__text1043111716422">ECS</span>, IMS, and AS services.</p>
|
|
<div class="section" id="EN-US_TOPIC_0048642616__section1150469610136"><h4 class="sectiontitle">Impact on IMS</h4><div class="p" id="EN-US_TOPIC_0048642616__p19778043173734">To ensure that <span id="EN-US_TOPIC_0048642616__text988919911421">ECS</span>s that are created using a private image support custom configurations, you must install Cloud-Init or Cloudbase-Init on the <span id="EN-US_TOPIC_0048642616__text2526249418">ECS</span>s before using them to create private images.<ul id="EN-US_TOPIC_0048642616__ul46952306173918"><li id="EN-US_TOPIC_0048642616__li36111246173918">For Windows OSs, download and install Cloudbase-Init.</li><li id="EN-US_TOPIC_0048642616__li31598379173918">For Linux OSs, download and install Cloud-Init.</li></ul>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0048642616__p9773181454916">Once installed in an image, Cloud-Init or Cloudbase-Init will automatically configure initial attributes for the <span id="EN-US_TOPIC_0048642616__text1661391412429">ECS</span>s when they are created using this image.</p>
|
|
<p id="EN-US_TOPIC_0048642616__p23919191171848">For more information, see <em id="EN-US_TOPIC_0048642616__i8423526979632">Image Management Service User Guide</em>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0048642616__section2746706105950"><h4 class="sectiontitle">Impact on <span id="EN-US_TOPIC_0048642616__text1789415428342">ECS</span></h4><ul id="EN-US_TOPIC_0048642616__ul2000904310113"><li id="EN-US_TOPIC_0048642616__li4158057911579">When creating an <span id="EN-US_TOPIC_0048642616__text14978748191915">ECS</span>, if the selected image supports Cloud-Init or Cloudbase-Init, you can inject custom information (such as the <span id="EN-US_TOPIC_0048642616__text1978104811193">ECS</span> login password) during the initialization. For details, see <a href="en-us_topic_0032380449.html">Injecting User Data</a>.</li><li id="EN-US_TOPIC_0048642616__li4924709610430">After Cloud-Init is supported, ECSs do not support password authentication anymore. All newly created ECSs use key pair authentication. This change will affect your login to ECSs. For details, see the following sections:<ul id="EN-US_TOPIC_0048642616__ul19415265103937"><li id="EN-US_TOPIC_0048642616__li42939148103759"><a href="en-us_topic_0013771089.html">Login Overview (Linux)</a></li><li id="EN-US_TOPIC_0048642616__li24750406103813"><a href="en-us_topic_0037633087.html">What Is the Cloudbase-Init Account in Windows ECSs Used for?</a></li><li id="EN-US_TOPIC_0048642616__li61757858104056"><a href="en-us_topic_0031734664.html">Why Does the Login to My Linux ECS Using a Key File Fail?</a></li><li id="EN-US_TOPIC_0048642616__li12097450103839"><a href="en-us_topic_0031736846.html">Why Does the System Display a Message Indicating that the Password for Logging In to an ECS Cannot Be Obtained?</a></li></ul>
|
|
</li><li id="EN-US_TOPIC_0048642616__li25296237101910">After Cloud-Init or Cloudbase-Init is supported, you can view and use metadata to configure and manage running <span id="EN-US_TOPIC_0048642616__text33634376424">ECS</span>s. For details, see <a href="en-us_topic_0042400609.html">Obtaining ECS Details Using Metadata</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0048642616__section4202207210118"><h4 class="sectiontitle">Impact on AS</h4><ul id="EN-US_TOPIC_0048642616__ul11675179111444"><li id="EN-US_TOPIC_0048642616__li17822332111444">When creating an AS configuration, you can use the <strong id="EN-US_TOPIC_0048642616__b7901175110233">User Data</strong> function to specify <span id="EN-US_TOPIC_0048642616__text2732946174214">ECS</span> configurations for initialization. If the AS configuration has taken effect in an AS group, the <span id="EN-US_TOPIC_0048642616__text11779154943119">ECS</span>s newly created in the AS group will automatically initialize their configurations based on the specified <span id="EN-US_TOPIC_0048642616__text5281103441117">ECS</span> configurations.</li><li id="EN-US_TOPIC_0048642616__li27735704111447">For an existing AS configuration, if its private image does not have Cloud-Init or Cloudbase-Init installed, the login mode of the <span id="EN-US_TOPIC_0048642616__text498535803212">ECS</span>s created in the AS group where the AS configuration takes effect may fail to take effect.<p id="EN-US_TOPIC_0048642616__p1760013719529">To resolve this issue, see "How Does Cloud-Init Affect the AS Service?" in <em id="EN-US_TOPIC_0048642616__i1684050997">Auto Scaling User Guide</em>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0048642616__section44995720162019"><h4 class="sectiontitle">Notes</h4><ul id="EN-US_TOPIC_0048642616__ul27309930162147"><li id="EN-US_TOPIC_0048642616__li57792420162147">When using Cloud-Init, enable DHCP for the VPC subnet that the <span id="EN-US_TOPIC_0048642616__text1781819502422">ECS</span> belongs to.</li><li id="EN-US_TOPIC_0048642616__li3134774162149">When using Cloud-Init, ensure that security group rules for the outbound direction meet the following requirements:<ul id="EN-US_TOPIC_0048642616__ul58881557162226"><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li4991456153157">Protocol: TCP</li><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li5391447153614">Port: 80</li><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li57518749153625">Destination: 169.254.0.0/16</li></ul>
|
|
<div class="note" id="EN-US_TOPIC_0048642616__note40094412162251"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_p6641537815423">If you use the default security group rules for the outbound direction, the metadata can be accessed because the default rules meet the preceding requirements. For details about the default security group rules for the outbound direction, see <a href="en-us_topic_0030828257.html#EN-US_TOPIC_0030828257__section15617142420109">Security Group</a>.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000001351167793.html">Images</a></div>
|
|
</div>
|
|
</div>
|
|
|