Overview
About This Guide
This guide describes how to complete pre-deployment preparation, management node installation, management node HA setup, basic service checks, first login, and environment initialization for ZSphere.

Intended Audience
This guide is intended for administrators, implementation engineers, and O&M engineers who are responsible for deploying and initializing ZSphere. Readers should be familiar with server hardware, basic networking, operating system installation, and virtualization infrastructure deployment.
Installation Modes
ZSphere provides three installation modes. Each includes different components and is intended for different scenarios.
| Installation Mode | Installed Content | Applicable Scenario |
|---|---|---|
| Management Node Mode |
|
Suitable for installing a management node for the virtualization platform. |
| Compute Node Mode |
|
Suitable for installation as nodes other than the management node, for example:
|
| Expert Mode | Base operating system |
Planning and Preparation
Before installing ZSphere, complete hardware, network, software package, and server configuration preparation to ensure that the servers can boot from the installation media and meet the deployment requirements for management nodes, compute nodes, and subsequent business resources.
This chapter describes the basic conditions that must be confirmed before deployment, including hardware requirements, network planning, software package preparation, installation media creation, and server configuration. After completing these preparations, you can start installing the management node.
Hardware Requirements
Basic Hardware Requirements
The server configuration, including CPU, memory, storage capacity and NIC performance, determines the business capacity of ZSphere.
- Basic demonstration environment: The server must have at least 4 CPU cores and 8 GB of memory.
- Production environment:
- Management node configuration: In small-scale scenarios, the server must have at least 8 CPU cores, 16 GB of memory, and 240 GB of storage.
The actual hardware configuration requirements depend on your business scale. For details, contact official technical support.
- Compute node configuration: The actual hardware configuration requirements depend on your business scale. For details, contact official technical support.
- Management node configuration: In small-scale scenarios, the server must have at least 8 CPU cores, 16 GB of memory, and 240 GB of storage.
Recommended Hardware Configuration
The following table lists the recommended server hardware configuration for both basic demonstration environments and production environments:
| Device | Configuration | |
|---|---|---|
| Server | CPU |
|
| Memory | No special requirements. DDR4 or higher specification memory is recommended. | |
| Motherboard | Standard dual-socket server motherboard. | |
| RAID Controller | Supports SAS/SATA RAID 0/1/10 and passthrough mode. | |
| Disk | No special requirements. Select HDD or SSD based on capacity and performance requirements. | |
| Network Ports |
|
|
| Network Switch |
|
|
Hardware Planning
You need to plan your server resources according to your production needs. In a large data center with sufficient resources, we recommend deploying two servers as management nodes to control the entire virtualization platform. These two management nodes provide high availability. If one management node fails, the system automatically triggers a high availability switchover within seconds. This ensures the management service remains continuously available. In a small data center, you can use a single server as the management node.
The remaining servers act as compute nodes. In a large data center, you can select multiple compute nodes to act as image storage. This expands the total image storage capacity and improves throughput. In a small data center, the image storage can share a server with the management node.
Network Planning

- The management network uses dual Gigabit networks for managing hardware resources related to the virtualization platform. The business network uses dual 10-Gigabit networks for virtual machine service traffic. You can configure network speeds based on your actual business requirements.
- If you use network storage such as NFS or distributed storage, you need also plan an additional storage network to handle storage traffic.
- We recommend that you maintain consistent NIC naming across all servers and use NICs with the same name to carry the same type of network traffic. For example, all management network traffic use the
em1NICs. - If you use a VLAN network, you need to configure the corresponding VLAN network communication on the switch in advance.
- ZSphere automatically assigns IP addresses to virtual machines. You need to reserve an IP range that does not conflict with the system and ensure this range does not conflict with any existing DHCP services in your network environment.
Prepare Software Packages
Software Package Description
ZSphere ISO is built on Helix, a self-developed virtualization kernel that runs between the infrastructure layer and upper-layer guest operating systems. Helix integrates hardware drivers, macro kernel components, virtual agents, and other required components. When guest operating systems access underlying hardware resources, Helix masks differences across heterogeneous hardware, removes the dependency on physical hardware drivers, and improves hardware compatibility, reliability, availability, scalability, and performance in the virtualization environment.
Installing ZSphere does not require Internet access or a yum repository. The installation can be completed offline.
Software Package List
The following table lists the software packages used to install ZSphere:
| Server Architecture | Software Package Name |
|---|---|
| x86 | ZStack-ZSphere-x86_64-DVD-5.2.1-H84r.iso |
| ZStack-ZSphere-x86_64-DVD-5.2.1-KylinV10SP3.iso | |
| ZStack-ZSphere-x86_64-DVD-5.2.1-KylinV10SP3-2403.iso | |
| ARM | ZStack-ZSphere-aarch64-DVD-5.2.1-H22e.iso |
| ZStack-ZSphere-aarch64-DVD-5.2.1-KylinV10SP3.iso | |
| ZStack-ZSphere-aarch64-DVD-5.2.1-KylinV10SP3-2403.iso |
Create Installation Media
After obtaining the ZSphere ISO image file, write the ISO image to a USB drive so that the physical server can boot the installer from the USB drive.
You can create the installation media with Rufus or Fedora Media Writer based on your local operating system and tool preference. After the installation media is created, set the USB drive as the boot media in the server BIOS or boot menu.
Create a USB Drive with Rufus
After you obtain the ISO package, you can use Rufus to burn the ISO image to a USB drive.
Procedure
What to do next
Create a USB Drive with Fedora Media Writer
After you obtain the ISO package, if you are using the Kylin operating system, we recommend using Fedora Media Writer to burn the ISO image.
Procedure
-
Select an ISO image.
- Connect your USB drive and open Fedora Media Writer.
- Click Custom Image to open the ISO image file that you obtained.
-
Burn the image.
What to do next
Configure Servers
Server Configuration Check
Based on your actual network planning, rack, cable, and power on the servers and network equipment. Then, start the servers, enter BIOS, and verify the following:
- The installation process overwrites all data, so confirm that you have backed up all disks in the servers.
- Enter the server BIOS and enable CPU VT and Hyper-Threading (HT) options.
- Configure the appropriate RAID level in the RAID controller to provide data redundancy.
- Set the USB drive as the first boot device.
For information about how to change server configurations, refer to your hardware vendor documentation.
Install the Management Node
The management node hosts ZSphere management services, Web UI, and basic control services. It is the entry point for completing platform deployment and managing resources after deployment.
Select an installation method based on your network planning and deployment scenario. In production environments, bonded NIC deployment is typically used to improve management network reliability. In simple verification scenarios or single-NIC environments, you can use single NIC deployment. If you need to configure the management node from a text interface after installation, use the TUI installation path.
After installation, check the ZSphere service status and determine whether to set up management node HA based on business continuity requirements.
Bonded NIC Deployment
To meet the requirements for network port bandwidth capacity and high reliability, NIC bonding must be configured in production environments. Since the operating system installation process is identical for both x86 and ARM servers, this chapter uses x86 servers to introduce the detailed installation procedure.
Procedure
Single NIC Deployment
The operating system installation process is identical for both x86 and ARM servers. This chapter uses x86 servers to introduce the detailed installation procedure.
Procedure
Install with TUI
This chapter describes the complete procedure for deploying a Compute Node from an ISO, configuring the management network as a bond in the TUI, and installing the management node on that compute node.
Procedure
Set Up Management Node HA
Management node HA improves the availability of the ZSphere management plane. After management node HA is configured, if the active management node becomes unavailable, the standby management node can continue to provide management services.
Before setting up management node HA, prepare two servers on which the management node service has been installed, and plan the management network, business network, and VIP in advance. You can complete the setup from the user interface, or follow the CLI workflow to install the operating system, configure networks, and install the HA suite in sequence.
Set Up with the UI
Before you begin
- You must install management node services on the selected two servers. For installation instructions, see Install the Management Node.
- Ensure both management nodes have gateway addresses on the same network segment and have consistent NIC names.
- Ensure both management nodes are running the same version.
- Ensure the operating system type and architecture are supported and both management nodes run compatible operating system types.
- Ensure both management nodes use the same license type.
Procedure
Set Up with the CLI
If you cannot set up management node HA from the user interface, or if you need finer-grained configuration during server deployment, you can set up management node HA from the CLI.
To set up management node HA from the CLI, complete the following operations in sequence:
- Install the operating system on both selected servers.
- Configure the management network.
- Configure the business network.
- Install the HA suite.
After completing these operations, log in to ZSphere through the VIP and check the management node HA service status.
Install the Operating System
In this scenario, you need to install the management node mode on both selected servers.
Procedure
Configure the Management Network
About this task
| Server | NIC 1 | NIC 2 | Bond | Bridge | IP Address | Netmask | Gateway |
|---|---|---|---|---|---|---|---|
| MN 1 | eth0 | eth1 | bond0 | br_bond0 | 192.168.195.200 | 255.255.0.0 | 192.168.0.1 |
| MN 2 | eth0 | eth1 | bond0 | br_bond0 | 192.168.196.125 | 255.255.0.0 | 192.168.0.1 |
| - | IP Address | Netmask |
|---|---|---|
| VIP | 192.168.199.151 | 255.255.0.0 |
- The VIP is used to log in to the UI of the management node. Avoid using the VIP for SSH logins to the management nodes.
- The above data is for example only. You need to modify it based on your actual deployment environment.
- The gateway must be provided by physical network devices and will also serve as network status arbitration detection.
Procedure
Configure the Business Network
About this task
| Server | NIC 1 | NIC 2 | Bond | Bridge | IP Address | Netmask | Gateway |
|---|---|---|---|---|---|---|---|
| MN 1 | em1 | em2 | bond1 | - | - | - | - |
| MN 2 | em1 | em2 | bond1 | - | - | - | - |
Procedure
Install the HA Suite
After the operating system, management network, and business network are configured, install the HA suite to form a high availability environment with the two management nodes.
The HA suite supports the following installation methods:
Install from the CLI
In this scenario, you have installed both servers as the ZSphere management nodes. To enable high availability for both nodes, you only need to install the HA suite on one of the nodes. If you install the HA suite on MN 1, MN 1 becomes the active management node and MN 2 becomes the standby management node.
Procedure
Install from a Configuration File
In this scenario, you have installed both servers as the ZSphere management nodes. To enable high availability for both nodes, you only need to install the HA suite on one of the nodes. If you install the HA suite on MN 1, MN 1 becomes the active management node and MN 2 becomes the standby management node.
Procedure
Manage ZSphere Services
Check MN Service Status
zstack-ctl status command to
check the running status of the services related to the ZSphere management
node.[root@localhost ~]# zstack-ctl status
ZSTACK_HOME: /usr/local/zstack/apache-tomcat/webapps/zstack
zstack.properties: /usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties
log4j2.xml: /usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/log4j2.xml
PID file: /usr/local/zstack/management-server.pid
log file: /usr/local/zstack/apache-tomcat/logs/management-server.log
version: 5.2.1 (ZStack-enterprise 5.2.1)
MN status: Running [PID:123135]
UI status: Running [PID:795] https://10.0.0.254:443zstack-ctl ui_status
command to check the status of the Web UI
separately.[root@localhost ~]# zstack-ctl ui_status
UI status: Running [PID:8459] https://10.0.0.254:443Change MN Service Status
zstack-ctl restart_nodezstack-ctl stop && zstack-ctl start# This command will start both the management node and Web UI services
[root@localhost ~]#zstack-ctl startCheck Service Status of MN HA
You can run the zsha2 status command to check if the zsha2 service is running normally.
Export Log of MN HA
[root@localhost ~]# zsha2 collect-log
Collecting logs ...
Collected log: zsha2-log-2018-09-17T154358+0800.tgz
# Unpack the log archive
[root@localhost ~]# tar zxvf zsha2-log-2021-01-17T154358+0800.tgz
tmp/zsha2-log588815976/
tmp/zsha2-log588815976/zsha2-status.log
tmp/zsha2-log588815976/zstack-ha.log
tmp/zsha2-log588815976/keepalived.data
tmp/zsha2-log588815976/zs-vip-192.168.199.151.log
tmp/zsha2-log588815976/keepalived_status.logLog in to ZSphere
The platform uses HTTPS protocol by default and automatically redirects to port 443. You can simply enter the management node IP address in your browser to access the UI.
Before you begin
- For a better experience, we recommend using Chrome 67 or later version with minimum screen resolution of 1280 × 900 px.
- If the web page fails to load, check whether both the management node and UI service are running properly.
Procedure
What to do next
- For more information about login policies, HTTPS/HTTP access, unified authentication, and certificates, see Security.
- After the first login, continue to initialize ZSphere based on your deployment objective.
Initialize ZSphere
After you log in to ZSphere for the first time, you can use the initialization wizard to create basic resources so that the environment is ready for adding hosts, configuring storage, and creating virtual machines.
You can initialize the environment through the following methods:
- Initialize manually
- Restore from backup data
Notes during the initialization:
- If you exit the Wizard midway, you will not be able to enter the Wizard again.
- If no resources are created during the initialization, you can initialize the environment again from the Dashboard page.
- If you accidentally exit the Wizard, you can delete the data center and re-enter the initialization wizard from the Dashboard page.Note:Deleting a data center will delete clusters, hosts, networks, and data storage resources, along with all subordinate resources of each resource. Proceed with caution.
Initialize Manually
You can follow the wizard to initiate a new environment by creating necessary resources, including data center, cluster, host, data storage, image storage, image and distributed port group.
Procedure
Restore from Backup Data
In the event of a disaster in the local data center, you can rely on the platform's database backup data to rebuild the data center and restore business. You can quickly restore the whole environment from an existing platform database backup using the initialization wizard.
Before you begin
Procedure
What to do next
Overview
About This Document
This document describes how to prepare for an upgrade, upgrade a management node environment, upgrade a management node HA environment, perform checks and follow-up after the platform upgrade, and upgrade host virtualization components and the kernel as needed in a deployed ZSphere environment.
Intended Audience
This document is intended for administrators, implementation engineers, and operations engineers who upgrade and maintain ZSphere environments. Readers should understand the current deployment mode, management node access method, and basic Linux command-line operations.
Upgrade Paths
Select an upgrade path based on whether management node HA is configured in the current environment.
| Environment Type | Upgrade Path |
|---|---|
| ZSphere environment without management node HA | Prepare for the upgrade, upgrade the management node environment, and then perform checks and follow-up after the platform upgrade. |
| ZSphere environment with management node HA | Prepare for the upgrade, stop management services on both nodes, and upgrade the HA suite and management node on the management node where the VIP resides. After the upgrade is complete, perform checks and follow-up after the platform upgrade. |
After the platform upgrade is complete and the environment is running properly, you can upgrade host virtualization components such as QEMU and Libvirt and the host kernel independently as needed. A platform version upgrade does not automatically perform either type of upgrade. You can schedule these upgrades for separate maintenance windows based on business requirements.
Prepare for Upgrade
Before upgrading ZSphere, confirm the current environment version, prepare the required upgrade packages, and complete the required protection operations.
Procedure
Upgrade the Management Node Environment
This task applies to a ZSphere environment where management node HA is not configured.
Before you begin
Before performing this task, complete Prepare for Upgrade.
About this task
After preparing for the upgrade, log in to the management node operating system and select an offline upgrade method based on the prepared upgrade packages.
Procedure
-
Recommended method: upgrade the local repository and management service.
[root@zstack-1 opt]# zstack-upgrade ZStack-ZSphere-x86_64-DVD-5.2.1-H84r.iso -
Step-by-step method: upgrade the local repository first, and then upgrade the management service.
[root@zstack-1 opt]# zstack-upgrade -r ZStack-ZSphere-x86_64-DVD-5.2.1-H84r.iso [root@zstack-1 opt]# bash ZStack-ZSphere-installer-5.2.1.bin -u -P MYSQL_ROOT_PASSWORD
- If the database root password uses the system default password, you can omit the
-P MYSQL_ROOT_PASSWORDparameter. - Before running the
zstack-upgradecommand, make sure that the prepared ISO matches the current upgrade path to avoid overwriting the local repository with an unmatched ISO.
What to do next
Upgrade the Management Node HA Environment
This task applies to a ZSphere environment where management node HA is configured.
Before you begin
- Before performing this task, complete Prepare for Upgrade.
- Perform the upgrade during a maintenance window. Management services must be stopped on both nodes during the upgrade. By default, the HA suite upgrade also restarts the databases on both nodes. The management UI and management services will be temporarily unavailable.
Procedure
What to do next
Checks and Follow-up After Platform Upgrade
After the management node upgrade is complete and management services have started, clear the browser cache, restore the HA policy as needed, and check service status and version information.
Procedure
Upgrade Virtualization Components (Optional)
After upgrading the platform version, you can upgrade QEMU and Libvirt on hosts as needed to use the features and fixes provided by the new component versions.
Before you begin
- The platform version upgrade is complete, and management services are running properly.
- An ISO that matches the target platform version and the operating system of the current environment is available. This task uses the H84r ISO as an example.
- A maintenance window has been scheduled. VMs need to use the new QEMU version after the upgrade. Plan downtime for the affected VMs in advance.
About this task
Different platform versions may use different versions of QEMU and Libvirt. A platform version upgrade does not automatically update virtualization components on hosts. Perform this task for each cluster as needed.
Procedure
Upgrade the Kernel (Optional)
After upgrading the platform version, you can upgrade the host kernel as needed. Restart the host after installing the new kernel for it to take effect.
Before you begin
- The platform version upgrade is complete, and management services are running properly.
- An ISO that matches the target platform version, host operating system, and architecture is available. This task uses the H84r ISO as an example.
- A maintenance window has been scheduled, and migration or downtime has been planned for VMs on the hosts to be upgraded.
About this task
Different platform versions may use different kernel versions. A platform version upgrade does not automatically update the kernel on hosts. After upgrading the platform version, you can upgrade the host kernel as needed to use the features and security fixes provided by the new kernel.
















































