Skip to content

Commit e8bfc42

Browse files
authored
Merge branch 'apache:main' into main
2 parents 961d2c9 + 85c5084 commit e8bfc42

32 files changed

+378
-245
lines changed
35.7 KB
Loading
124 KB
Loading

source/adminguide/arch_types.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.. Licensed to the Apache Software Foundation (ASF) under one
2+
or more contributor license agreements. See the NOTICE file
3+
distributed with this work for additional information#
4+
regarding copyright ownership. The ASF licenses this file
5+
to you under the Apache License, Version 2.0 (the
6+
"License"); you may not use this file except in compliance
7+
with the License. You may obtain a copy of the License at
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
Unless required by applicable law or agreed to in writing,
10+
software distributed under the License is distributed on an
11+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
12+
KIND, either express or implied. See the License for the
13+
specific language governing permissions and limitations
14+
under the License.
15+
16+
17+
Hosts/Cluster Arch Types Allocation
18+
===================================
19+
20+
Since CloudStack 4.20.0, it is possible to add AMD 64 bits and ARM 64 bits clusters (and hosts). A single zone can contain clusters (and hosts) of different arch types (multi-arch zones).
21+
22+
When a multi-arch zone is selected for VM deployment, CloudStack allows the users to filter the templates/ISOs by their arch type.
23+
24+
|deploy-vm-arch-types.png|
25+
26+
Once a template/ISO is selected, only the clusters (and hosts) matching the arch type will be considered for the VM allocation
27+
28+
.. |deploy-vm-arch-types.png| image:: /_static/images/deploy-vm-arch-types.png
29+
:alt: Filtering templates and ISOs by arch types
30+

source/adminguide/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ Managing VM and Volume Allocation
139139
:maxdepth: 4
140140

141141
host_and_storage_tags
142+
arch_types
142143

143144
Managing Networks and Traffic
144145
-----------------------------

source/adminguide/management.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,52 @@ rules.
517517
the global configuration.
518518

519519

520+
Managing log files
521+
------------------
522+
523+
The log files are located in `/var/log/cloudstack`. This directory has the
524+
following subdirectories:
525+
526+
- `management` for the Management Server
527+
- `usage` for the Usage Server
528+
- `agent` for the Agent for KVM hosts
529+
530+
CloudStack uses log4j2 to manage log files. The log4j2 configuration file
531+
is located in the corresponding subdirectories in the `/etc/cloudstack/`
532+
directory and is named `log4j-cloud.xml`.
533+
534+
By default, cloudstack uses `TimeBasedTriggeringPolicy` which rolls over
535+
the log file every day and are kept indefinitely. The log files are
536+
compressed and archived in the same directory.
537+
538+
Over time, the logs can fill up the entire disk space. To avoid this, you can
539+
update the log4j-cloud.xml file to change the log file rollover and retention
540+
policy. You can change the rollover policy to `SizeBasedTriggeringPolicy`
541+
and set the maximum size of the log file. You can also set the maximum number
542+
of archived log files to keep.
543+
544+
For example, to change the rollover policy for `management-server.log` to
545+
`SizeBasedTriggeringPolicy` and set the maximum size of the log file to
546+
100MB and keep the maximum of 15 archived log files, you can update the
547+
`log4j-cloud.xml` file as follows:
548+
549+
.. code-block:: diff
550+
551+
- <RollingFile name="FILE" append="true" fileName="/var/log/cloudstack/management/management-server.log" filePattern="/var/log/cloudstack/management/management-server.log.%d{yyyy-MM-dd}.gz">
552+
+ <RollingFile name="FILE" append="true" fileName="/var/log/cloudstack/management/management-server.log" filePattern="/var/log/cloudstack/management/management-server.log.%i.gz">
553+
<ThresholdFilter level="TRACE" onMatch="ACCEPT" onMismatch="DENY"/>
554+
+ <DefaultRolloverStrategy max="15"/>
555+
<Policies>
556+
- <TimeBasedTriggeringPolicy/>
557+
+ <SizeBasedTriggeringPolicy size="100MB"/>
558+
</Policies>
559+
<PatternLayout pattern="%d{DEFAULT} %-5p [%c{1.}] (%t:%x) %m%ex%n"/>
560+
</RollingFile>
561+
562+
563+
You can also checkout some configuration recipes from the log4j2 documentation
564+
`here <https://logging.apache.org/log4j/2.x/manual/appenders/rolling-file.html#recipes>`_.
565+
520566
Stopping and Restarting the Management Server
521567
---------------------------------------------------
522568

source/adminguide/nas_plugin.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,36 @@ admins can create new backup offerings by selecting the zone and the backup
5656
repository. These backup offerings are then assigned and used with KVM instances
5757
to perform support B&R actions and operations.
5858

59+
Using the NAS Backup and Recovery Plugin
60+
----------------------------------------
61+
To use the NAS Backup and Recovery Plugin, the Backup and Recovery framework needs to be enabled first. Then the backup plugin 'nas' needs to be enabled on either the global or zone settings.
62+
63+
================================= ========================
64+
Configuration Value
65+
================================= ========================
66+
backup.framework.enabled true
67+
backup.framework.provider.plugin nas
68+
================================= ========================
69+
70+
Once the above two configurations are set, restart the cloudstack-management service. Once the service is restarted we can add the backup repository for the 'nas' Backup and Recovery plugin.
71+
Navigate to the configuration -> Backup Repository. Click on 'Add Backup Repository' and fill the form.
72+
73+
=================== ========================
74+
Field Value
75+
=================== ========================
76+
Name A suitable name to represent the Backup Repository
77+
Address URL, in case of NFS <server IP>:/path
78+
Type NFS ( only NFS type in 4.20)
79+
label.mountopts Any mount point options to be passed while mouting this storage on the hypervisor.
80+
Zone The zone in CloudStack with which this Backup Repository must be associated.
81+
=================== ========================
82+
83+
.. image:: /_static/images/B&R-Backup-Respository.png
84+
:align: center
85+
:alt: NAS Backup repository
86+
87+
Once the Backup Repository is created, we need to add a Backup Offering, in this plugin the Backup offering is a placeholder to associate an instance to a Backup Repository. While creating the Backup Offering, select the desired Backup Repository. Associate the Backup Offering on an instance to create an Adhoc or scheduled backup.
88+
5989
Support Information and Limitation
6090
----------------------------------
6191

source/adminguide/templates.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ To upload a Template:
281281
- **Hypervisor**: The supported hypervisors are listed. Select the
282282
desired one.
283283

284+
- **Arch**: The supported arch types are listed. Select the desired one.
285+
284286
- **Format**. The format of the Template upload file, such as VHD or
285287
OVA.
286288

@@ -328,7 +330,7 @@ Example GUI dialog of uploading Template/ISO from local (browser) is given below
328330

329331
|upload-iso-from-local.png|
330332

331-
Note that uploading multi-disk Templates is also supported.
333+
Note that uploading multi-disk Templates is also supported as well as selecting the template/ISO arch type.
332334

333335
Sharing Templates and ISOs with other Accounts/projects
334336
-------------------------------------------------------
@@ -545,6 +547,8 @@ part of a Template.
545547
prominent for Users to select. The ISO will appear in the Featured
546548
ISOs list. Only an administrator can make an ISO Featured.
547549

550+
- **Arch**: The supported arch types are listed. Select the desired one.
551+
548552
#. Click OK.
549553

550554
The Management Server will download the ISO. Depending on the size of

source/developersguide/ansible.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ For the management server role we create a main.yml task like this:
294294

295295
Save this as `/etc/ansible/roles/cloudstack-management/tasks/main.yml`
296296

297+
.. note:: In a production environment, selinux should be set to enforcing
298+
and the necessary selinux policies are created to allow the
299+
services to run.
300+
297301
Now we have some new elements to deal with. The Ansible Template module
298302
uses Jinja2 based templating.  As we’re doing a simplified example here,
299303
the Jinja Template for the cloudstack.repo won’t have any variables in

source/installguide/configuration.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,9 @@ You need to tell CloudStack about the hosts that it will manage. Hosts
871871
exist inside clusters, so before you begin adding hosts to the cloud,
872872
you must add at least one cluster.
873873

874+
.. note::
875+
Since CloudStack 4.20.0, it is possible to specify the hosts arch type which must be homogeneous within the cluster. AMD 64 bits (x86_64) and ARM 64 bits (aarch64) arch types are supported. The pre-existing clusters are set to arch type AMD 64 bits as well as new clusters in which the arch type is not specified.
876+
874877

875878
Add Cluster: KVM or XenServer
876879
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -889,6 +892,8 @@ hosts and logged in to the CloudStack UI.
889892

890893
#. Choose the hypervisor type for this cluster.
891894

895+
#. Choose the arch type of the hosts within the cluster.
896+
892897
#. Choose the pod in which you want to create the cluster.
893898

894899
#. Enter a name for the cluster. This can be text of your choosing and
@@ -1008,7 +1013,7 @@ Requirements for XenServer and KVM Hosts
10081013

10091014
Configuration requirements:
10101015

1011-
- Each cluster must contain only hosts with the identical hypervisor.
1016+
- Each cluster must contain only hosts with the identical hypervisor and arch type.
10121017

10131018
- For XenServer, do not put more than 8 hosts in a cluster.
10141019

@@ -1017,6 +1022,8 @@ Configuration requirements:
10171022
For hardware requirements, see the installation section for your
10181023
hypervisor in the CloudStack Installation Guide.
10191024

1025+
.. note::
1026+
Since CloudStack 4.20.0, the host arch type is auto detected when adding the host into CloudStack and it must match the cluster arch type for the operation to succeed.
10201027

10211028
XenServer Host Additional Requirements
10221029
''''''''''''''''''''''''''''''''''''''

source/installguide/hypervisor/kvm.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,13 @@ cloudstack-agent and should already be installed.
472472
473473
#LIBVIRTD_ARGS="--listen"
474474
475+
Configure libvirt to connect to libvirtd and not to per-driver daemons, especially important on newer distros such as EL9 and Ubuntu 24.04.
476+
Edit ``/etc/libvirt/libvirt.conf`` and add the following:
477+
478+
.. parsed-literal::
479+
remote_mode="legacy"
480+
481+
475482
#. Restart libvirt
476483

477484
In RHEL or CentOS or SUSE or Ubuntu:
@@ -529,6 +536,10 @@ ensure the Agent has all the required permissions.
529536
530537
$ setenforce permissive
531538
539+
.. note:: In a production environment, selinux should be set to enforcing
540+
and the necessary selinux policies are created to allow the
541+
services to run.
542+
532543
#. Configure Apparmor (Ubuntu)
533544

534545

0 commit comments

Comments
 (0)