Skip to content

Commit 831ee0a

Browse files
Enable cloud-init without any aid from ds-identify (#383)
* Enable cloud-init without any aid from ds-identify * fix some links * Update userdata section * fix some links * Update 2024-06-10 * Update source/adminguide/templates/_cloud_init.rst Co-authored-by: Vishesh <vishesh92@gmail.com> --------- Co-authored-by: Vishesh <vishesh92@gmail.com>
1 parent 63eed5c commit 831ee0a

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

source/adminguide/templates.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ hypervisor-specific.
444444

445445

446446
Adding an ISO
447-
---------------
447+
-------------
448448

449449
To make additional operating system or other software available for use
450450
with Guest Instances, you can add an ISO. The ISO is typically thought of as

source/adminguide/templates/_cloud_init.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ These features can be implemented in `“Linux Template creation process” <_cr
6262
datasource:
6363
CloudStack: {}
6464
None: {}
65+
66+
.. note::
67+
For the vm instances running on VMware or XenServer/XCP-ng hypervisors, if there are multiple cloud-init data sources, it is a known issue that ds-identify is not able to detect if "CloudStack" DataSource is enabled. To fix the problem, please run the following command to enable cloud-init without any aid from ds-identify.
68+
69+
.. code:: bash
70+
71+
echo "policy: enabled" > /etc/cloud/ds-identify.cfg
6572
6673
#. **Password management**
6774

source/adminguide/templates/_create_linux.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ An overview of the procedure is as follow:
3030
#. Upload your Linux ISO.
3131

3232
For more information, see `“Adding an
33-
ISO” <virtual_machines.html#adding-an-iso>`_.
33+
ISO” <templates.html#adding-an-iso>`_.
3434

3535
#. Create an Instance with this ISO.
3636

3737
For more information, see `“Creating
38-
VMs” <virtual_machines.html#creating-vms>`_.
38+
Instances” <virtual_machines.html#creating-instances>`_.
3939

4040
#. Prepare the Linux Instance
4141

4242
#. Create a Template from the Instance.
4343

4444
For more information, see `“Creating a Template from an Existing
45-
Instance” <#creating-a-template-from-an-existing-virtual-machine>`_.
45+
Instance” <#creating-a-template-from-an-existing-instance>`_.
4646

4747

4848
System preparation for Linux
@@ -114,25 +114,25 @@ templating of Centos and Ubuntu.
114114
115115
User password management and reset cappabilities in GUI are available with:
116116

117-
* `Cloud-init integration <_cloud_init.html#linux-with-cloud-init>`_
118-
* `Adding Password Management to Your Templates <_password.html#adding-password-management-to-templates>`_ /Legacy for non systemd systems only/
117+
* `Cloud-init integration <templates/_cloud_init.html#linux-with-cloud-init>`_
118+
* `Adding Password Management to Your Templates <templates.html#adding-password-management-to-templates>`_ /Legacy for non systemd systems only/
119119

120120
#. **SSH keys management**
121121

122122
Cloudstack can create key pair and push certificates to Instances. This feature is available with:
123123

124-
* `Cloud-init integration <_cloud_init.html#linux-with-cloud-init>`_
124+
* `Cloud-init integration <templates/_cloud_init.html#linux-with-cloud-init>`_
125125
* `Implementing a SSH-Key bash script <http://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines.html#creating-an-instance-template-that-supports-ssh-keys>`_
126126

127127
#. **Partition management**
128128

129129
Volumes can autorextend after reboot when partition is extended in the GUI.
130-
This feature is possible with `Cloud-init integration <_cloud_init.html#linux-with-cloud-init>`_.
130+
This feature is possible with `Cloud-init integration <templates/_cloud_init.html#linux-with-cloud-init>`_.
131131

132132
#. **User-data**
133133

134134
Cloudstack can push user-data during Instance creation.
135-
This feature is possible with `Cloud-init integration <_cloud_init.html#linux-with-cloud-init>`_.
135+
This feature is possible with `Cloud-init integration <templates/_cloud_init.html#linux-with-cloud-init>`_.
136136

137137
#. **Template cleanup**
138138

@@ -214,4 +214,4 @@ templating of Centos and Ubuntu.
214214

215215
You are now ready to create the Final Template, for more information see
216216
`“Creating a Template from an Existing Virtual
217-
Machine” <#creating-a-template-from-an-existing-virtual-machine>`_.
217+
Machine” <#creating-a-template-from-an-existing-instance>`_.

source/adminguide/templates/_create_windows.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ An overview of the procedure is as follows:
3838
#. Create an instance with this ISO.
3939

4040
For more information, see `“Creating
41-
instances” <virtual_machines.html#creating-vms>`_.
41+
instances” <virtual_machines.html#creating-instances>`_.
4242

4343
#. Follow the steps in Sysprep for Windows Server 2008 R2 (below) or
4444
Sysprep for Windows Server 2003 R2, depending on your version of

source/adminguide/virtual_machines/user-data.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ Instance deployment automatically (:ref:`adding-password-management-to-templates
217217
218218
datasource_list: [ CloudStack, None ]
219219
220+
For more information, see `Cloud-init integration <templates/_cloud_init.html#linux-with-cloud-init>`_
221+
220222
Custom user-data example
221223
~~~~~~~~~~~~~~~~~~~~~~~~
222224

0 commit comments

Comments
 (0)