Skip to content

Commit a06d06d

Browse files
committed
Document User Data support for System VMs
1 parent 5e4cd0c commit a06d06d

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

source/adminguide/systemvm.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,46 @@ System VMs (any of the Console Proxy VM, Secondary Storage VM, Virtual Router or
944944
945945
Since CloudStack 4.16, for VMware, migration of System VMs can also be done to a destination host in a different cluster belonging to the same pod (in case of cluster-wide primary storage pools, this will cause the Root volume of the system VM to be migrated to the appropriate datastore in the new cluster). Storage migration of stopped System VMs is also supported.
946946
947+
Customizing System VMs
948+
----------------------
949+
950+
CloudStack supports User Data for System VMs at boot time.
951+
The default root administrator can supply initialization scripts or configuration to automate tasks
952+
such as installing additional packages, setting environment variables, or configuring telemetry.
953+
Ensure that the User Data is valid for cloud-init.
954+
Invalid content may prevent a System VM from functioning correctly.
955+
956+
Initialization is performed by a CloudStack service, not by the systemd
957+
cloud-init unit, to avoid conflicts with CloudStack System VM services.
958+
959+
.. warning::
960+
User Data offers powerful customization, but inappropriate or intrusive scripts can
961+
destabilize or break System VMs. Avoid modifying critical services or networking unless
962+
you fully understand the impact, and always test changes in a non-production environment
963+
before rollout.
964+
965+
To enable and configure User Data for System VMs:
966+
967+
#. Create a User Data entry under the default root administrator account.
968+
#. Set the global setting ``systemvm.userdata.enabled`` to ``true``.
969+
#. Provide the ID of the User Data per System VM type using the following global settings:
970+
971+
.. cssclass:: table-striped table-bordered table-hover
972+
================================= ============================================================
973+
Global Setting Description
974+
================================= ============================================================
975+
``consoleproxy.userdata`` ID of the User Data for Console Proxy VMs
976+
``secondarystorage.userdata`` ID of the User Data for Secondary Storage VMs
977+
``router.userdata`` ID of the User Data for Virtual Routers,
978+
VPC VR, internal LB Instances, and elastic LB Instances
979+
================================= ============================================================
980+
981+
#. Destroy the System VMs and allow CloudStack to re-deploy them to apply the changes.
982+
983+
.. note::
984+
Only the default root administrator can set the global settings for System VM User Data.
985+
The associated User Data entries must also be created under the default root administrator account.
986+
947987
Troubleshoot networks from System VMs
948988
-------------------------------------
949989
.. |run-diagnostics-icon.png| image:: /_static/images/run-diagnostics-icon.png

0 commit comments

Comments
 (0)