Skip to content

Commit 55cff9f

Browse files
committed
notes on system template auto-download, seeding
Related apache/cloudstack#11656 Signed-off-by: Abhishek Kumar <[email protected]>
1 parent be2b8bd commit 55cff9f

File tree

3 files changed

+71
-16
lines changed

3 files changed

+71
-16
lines changed

source/adminguide/systemvm.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,18 @@ 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.
84+
85+
If the automatic download and seeding of template fails, the
86+
template can be registered and seeded manually.
87+
UI/API can be used to register the template if the secondary storage VM is
88+
running in the zone. In case the secondary storage VM is not present then
89+
manual registration and seeding can be done using ``cloud-install-sys-tmplt``
90+
script.
8491

8592

8693
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 CloudStack 4.23.0, the ``cloudstack-setup-management`` command
291+
can download SystemVM 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 CloudStack 4.23.0, the ``cloudstack-setup-management`` command
537+
can download SystemVM 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: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)