Skip to content

Commit b08516d

Browse files
authored
notes on system template auto-download, seeding (#580)
Related apache/cloudstack#11656 --------- Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent f692eb2 commit b08516d

File tree

3 files changed

+80
-20
lines changed

3 files changed

+80
-20
lines changed

source/adminguide/systemvm.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,20 @@ templates for hypervisor and architecture which are in use in the zone
7676
if not already present will be automatically registered and seeded on
7777
the secondary storage.
7878

79-
ARM 64-bit template(s) will be downloaded from the official repository
80-
and the same workflow for the registration and seeding will be used. If
81-
the automatic download and seeding of ARM 64-bit template fails, the
82-
template can be manually registered in a multi-architecture zone or
83-
will need manual registration and seeding in a ARM 64-bit only zone.
79+
Template(s) will be downloaded from the configured repository
80+
and the same workflow for the registration and seeding will be used.
81+
Repository for downloading the templates can be configured using
82+
/etc/cloudstack/management/server.properties file by updating the
83+
``system.vm.templates.download.repository`` property. If no custom
84+
repository is configured, templates will be downloaded from the default
85+
official repository.
86+
87+
If the automatic download and seeding of template fails, the
88+
template can be registered and seeded manually.
89+
UI/API can be used to register the template if the secondary storage VM is
90+
running in the zone. In case the secondary storage VM is not present then
91+
manual registration and seeding can be done using ``cloud-install-sys-tmplt``
92+
script.
8493

8594

8695
Changing the Default System VM Template

source/installguide/management-server/_database.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,20 @@ MySQL. See :ref:`install-database-on-separate-node`.
286286
done.”
287287
If the servlet container is Tomcat7 the argument --tomcat7 must be used.
288288

289+
.. note::
290+
Since 4.23.0, the ``cloudstack-setup-management`` command can download
291+
System VM templates on demand when they are not present.
292+
293+
Use the ``--systemvm-templates`` argument to specify which templates to
294+
download. Valid values are ``all``, ``kvm-aarch64``, ``kvm-x86_64``,
295+
``xenserver``, and ``vmware``. A comma-separated list combining any of
296+
these identifiers can also be supplied (for example
297+
``kvm-x86_64,xenserver``). If not specified, ``kvm-x86_64`` template
298+
will be downloaded by default.
299+
300+
For offline environments, provide a custom repository URL with the
301+
``--systemvm-templates-repository`` argument so the installer can fetch
302+
templates from an internal mirror.
289303

290304
.. _install-database-on-separate-node:
291305

@@ -518,4 +532,18 @@ The following command creates the cloud user on the database.
518532
so ensure that the firewalld is disabled or ensure the correct firewalld rules
519533
are in place to allow traffic to ports 8080, 8250 and 9090 to the management server.
520534

535+
.. note::
536+
Since 4.23.0, the ``cloudstack-setup-management`` command can download
537+
System VM templates on demand when they are not present.
538+
539+
Use the ``--systemvm-templates`` argument to specify which templates to
540+
download. Valid values are ``all``, ``kvm-aarch64``, ``kvm-x86_64``,
541+
``xenserver``, and ``vmware``. A comma-separated list combining any of
542+
these identifiers can also be supplied (for example
543+
``kvm-x86_64,xenserver``). If not specified, ``kvm-x86_64`` template
544+
will be downloaded by default.
545+
546+
For offline environments, provide a custom repository URL with the
547+
``--systemvm-templates-repository`` argument so the installer can fetch
548+
templates from an internal mirror.
521549

source/quickinstallationguide/qig.rst

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)