@@ -402,23 +402,43 @@ up the management server by issuing the following command:
402402
403403 # cloudstack-setup-management
404404
405+ .. note::
406+ Since CloudStack 4.23.0, the ``cloudstack-setup-management `` command
407+ can download SystemVM templates on demand when they are not present.
405408
406- System Template Setup
407- ~~~~~~~~~~~~~~~~~~~~~
409+ Use the ``--systemvm-templates `` argument to specify which templates to
410+ download. If not specified, ``kvm-x86_64 `` template will be downloaded
411+ by default.
412+
413+ For offline environments, provide a custom repository URL with the
414+ ``--systemvm-templates-repository `` argument so the installer can fetch
415+ templates from an internal mirror.
408416
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.
412417
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.
418+ System Template Setup
419+ ~~~~~~~~~~~~~~~~~~~~~
417420
418- Execute the following script:
421+ CloudStack relies on several System VMs (for example SSVM and CPVM) to
422+ provide console access, networking services and storage management. Manual
423+ installation of System VM templates is not required in recent CloudStack
424+ releases. Since 4.16.0, automatic seeding of System VM templates has been
425+ supported; the ``cloudstack-management `` package historically included bundled
426+ templates and the Management Server seeded them to secondary storage during
427+ startup or when a secondary store was added to a zone. Starting with 4.23.0,
428+ CloudStack supports on-demand downloading of System VM templates when they
429+ are not present locally or bundled with the package.
430+
431+ Templates are typically obtained in two ways: during initial setup via
432+ ``cloudstack-setup-management `` or automatically at Management
433+ Server startup and secondary store addition (the Management Server
434+ will attempt to download and seed any missing templates).
435+
436+ When automated mechanisms are unsuitable, templates can be downloaded and
437+ deployed to secondary storage using the helper script. On the secondary
438+ storage host (or a temporary mount of the secondary store) run::
419439
420440.. parsed-literal ::
421-
441+
422442 /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt \
423443 -m /export/secondary \
424444 -u |sysvm64-url-kvm | \
0 commit comments