cloudstack/systemvm/debian/opt/cloud/bin/setup
Vishesh d2615bb142
Add support for providing userdata to system VMs (#11654)
This PR adds support for specifying user data (cloud-init) for system VMs via Zone Scoped global settings. This allows the operators to customize the System VMs and setup monitoring, logging or execute any custom commands.

We set the user data from the global setting in /var/cache/cloud/cmdline, and use the NoCloud datasource to process user data. cloud-init service is still disabled in the system VMs and it's executed as part of the cloud-postinit service which executes the postinit.sh script.

Added global settings:
systemvm.userdata.enabled - Disabled by default. Needs to be enabled to utilize the feature.
console.proxy.vm.userdata - UUID of the User data to be used for Console Proxy
secstorage.vm.userdata - UUID of the User data to be used for Secondary Storage VM
virtual.router.userdata - UUID of the User data to be used for Virtual Routers
2025-10-08 10:44:26 +05:30
..
bootstrap.sh Update md5sum to sha512sum (#11134) 2025-09-03 11:12:43 +02:00
cksnode.sh CKS: add ConfigDrive to cloud-init datasource_list in systemvm template (#7650) 2024-09-27 09:09:27 -03:00
cloud-early-config Update md5sum to sha512sum (#11134) 2025-09-03 11:12:43 +02:00
common.sh Allow custom NTP servers for CPVM (#11210) 2025-07-25 15:21:06 +02:00
consoleproxy.sh Allow custom NTP servers for CPVM (#11210) 2025-07-25 15:21:06 +02:00
default.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
dhcpsrvr.sh Upgrade to JRE17 and Upgrade System VMs/VRs to Python3 and Debian 12 (#8497) 2024-02-26 18:07:50 +05:30
elbvm.sh Upgrade to JRE17 and Upgrade System VMs/VRs to Python3 and Debian 12 (#8497) 2024-02-26 18:07:50 +05:30
ilbvm.sh Upgrade to JRE17 and Upgrade System VMs/VRs to Python3 and Debian 12 (#8497) 2024-02-26 18:07:50 +05:30
init.sh Add support for providing userdata to system VMs (#11654) 2025-10-08 10:44:26 +05:30
patch.sh [4.20] VR: fix issue if userdata is binary data (#8739) 2024-07-25 10:04:58 +02:00
postinit.sh Add support for providing userdata to system VMs (#11654) 2025-10-08 10:44:26 +05:30
router.sh Update md5sum to sha512sum (#11134) 2025-09-03 11:12:43 +02:00
secstorage.sh Allow custom NTP servers for CPVM (#11210) 2025-07-25 15:21:06 +02:00
sharedfsvm.sh add ConfigDrive to datasource_list in SharedfsVM (#11726) 2025-10-01 18:00:44 +05:30
vpcrouter.sh Upgrade to JRE17 and Upgrade System VMs/VRs to Python3 and Debian 12 (#8497) 2024-02-26 18:07:50 +05:30