@@ -402,23 +402,46 @@ up the management server by issuing the following command:
402402
403403 # cloudstack-setup-management
404404
405-
406- System Template Setup
407- ~~~~~~~~~~~~~~~~~~~~~
408-
409- CloudStack uses a number of system VMs to provide functionality for accessing
410- the console of Instances, providing various networking services, and
411- managing various aspects of storage.
412-
413- We need to download the systemVM Template and deploy that to the secondary storage.
414- We will use the local path (/export/secondary) since we are already on the NFS server itself,
415- but otherwise you would need to mount your Secondary Storage to a temporary mount point, and use
416- that mount point instead of the /export/secondary path.
417-
418- Execute the following script:
405+ .. note::
406+ Since 4.23.0, the ``cloudstack-setup-management `` command
407+ can download SystemVM templates on demand when they are not present.
408+
409+ Use the ``--systemvm-templates `` argument to specify which templates to
410+ download. Valid values are ``all ``, ``kvm-aarch64 ``, ``kvm-x86_64 ``,
411+ ``xenserver ``, and ``vmware ``. A comma-separated list combining any of
412+ these identifiers can also be supplied (for example
413+ ``kvm-x86_64,xenserver ``). If not specified, ``kvm-x86_64 `` template
414+ will be downloaded by default.
415+
416+ For offline environments, provide a custom repository URL with the
417+ ``--systemvm-templates-repository `` argument so the installer can fetch
418+ templates from an internal mirror.
419+
420+
421+ System VM Template Setup
422+ ~~~~~~~~~~~~~~~~~~~~~~~~
423+
424+ CloudStack relies on several System VMs (for example SSVM and CPVM) to
425+ provide console access, networking services and storage management. Manual
426+ installation of System VM templates is not required in recent CloudStack
427+ releases. Since 4.16.0, automatic seeding of System VM templates has been
428+ supported; the ``cloudstack-management `` package historically included bundled
429+ templates and the Management Server seeded them to secondary storage during
430+ startup or when a secondary store was added to a zone. Starting with 4.23.0,
431+ CloudStack supports on-demand downloading of System VM templates when they
432+ are not present locally or bundled with the package.
433+
434+ Templates are typically obtained in two ways: during initial setup via
435+ ``cloudstack-setup-management `` or automatically at Management
436+ Server startup and secondary store addition (the Management Server
437+ will attempt to download and seed any missing templates).
438+
439+ When automated mechanisms are unsuitable, templates can be downloaded and
440+ deployed to secondary storage using the helper script. On the secondary
441+ storage host (or a temporary mount of the secondary store) run::
419442
420443.. parsed-literal ::
421-
444+
422445 /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt \
423446 -m /export/secondary \
424447 -u |sysvm64-url-kvm | \
0 commit comments