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.1.0-H84r.iso |
| ZStack-ZSphere-x86_64-DVD-5.1.0-KylinV10SP3.iso | |
| ARM | ZStack-ZSphere-aarch64-DVD-5.1.0-H22e.iso |
| ZStack-ZSphere-aarch64-DVD-5.1.0-KylinV10SP3.iso |
Note: After obtaining the software, use an MD5 checksum tool to verify the checksum and ensure that the software is complete and intact.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
-
Select an ISO image.
- Connect your USB drive and open Rufus.
- In the Boot Selection drop-down list, choose Disk or ISO image.
- Click SELECT to open the ISO image file that you obtained.
Figure 3. Select ISO Image 
-
Burn the image.
Figure 4. Burn the Image 
What to do next
After the burning process completes, you can use the USB drive as a boot disk. ZStack-ZSphere supports booting in Legacy mode or UEFI mode.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
After the burning process completes, you can use the USB drive as a boot disk. ZStack-ZSphere supports booting in Legacy mode or UEFI mode.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
-
Select the boot option.
Enter the ISO boot interface and choose the default option to start the operating system installation. You can select based on your actual situation, but we recommend using the graphical user interface (GUI) for installation. If the server does not have a VGA port and only supports serial connections, you can use either VNC or text mode installation methods.
- GUI method
- VNC method
- Text mode method
Figure 5. System Boot 
-
Review the installation configuration summary.
This page displays the system installation configuration. You can modify the configuration as needed. By default, ZSphere is configured with the following settings:
- Keyboard: English (US)
- Language Support: English (United States)
- Time & Date: Asia/Shanghai (UTC+8). We recommend that you check the host's time in advance and configure it to the current time and time zone.
Figure 6. System Installation Interface 
-
Select the installation mode.
Figure 7. Select Installation Mode 
-
Configure the disk partitions.
Figure 8. Configure Disk Partitions 
-
Add a bond device.
- On the INSTALLATION SUMMARY page, click Network & Host Name.
- On the NETWORK & HOST NAME page, click the + button at the bottom left of the page. This will open the Add device dialog. From the drop-down list, choose Bond, then click Add.
Figure 9. Add Bond Device 
-
Add a Bond Slave.
-
Select the Bond mode.
In the Bond configuration dialog, choose the bond mode from the Mode drop-down list as needed, such as Active backup. Keep the other options as default or customize them as needed, then click Save.
Figure 14. Select Bond Mode 
-
Disable IPv4 on the original NIC.
-
Configure a static IP address for Bond.
Figure 17. Configure Bond Static IP Address 
-
Configure the NIC to activate automatically.
In the Editing bond0 dialog, click General to access the General tab. Select the Connect automatically with priority checkbox to set the NIC to activate automatically, then click Save.
Figure 18. Configure NIC to Activate Automatically 
-
Complete the Bond configuration.
- Check the Bond configuration settings. Ensure that On is enabled and that you have configured the IP address. Also, make sure the Bond Slave (such as ens3) is set to On. Otherwise, ZSphere will not be installed properly.
- Review the configuration and click Done to return to the INSTALLATION SUMMARY page.
Figure 19. Check Bond Configuration 
- On the INSTALLATION SUMMARY page, click Root Password to set the root password for the operating system.
- On the INSTALLATION SUMMARY page, click Begin Installation to begin installing the operating system.
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
-
Select the boot option.
Enter the ISO boot interface and choose the default option to start the operating system installation. You can select based on your actual situation, but we recommend using the graphical user interface (GUI) for installation. If the server does not have a VGA port and only supports serial connections, you can use either VNC or text mode installation methods.
- GUI method
- VNC method
- Text mode method
Figure 20. System Boot 
-
Review the installation configuration summary.
This page displays the system installation configuration. You can modify the configuration as needed. By default, ZSphere is configured with the following settings:
- Keyboard: English (US)
- Language Support: English (United States)
- Time & Date: Asia/Shanghai (UTC+8). We recommend that you check the host's time in advance and configure it to the current time and time zone.
Figure 21. System Installation Interface 
-
Select the installation mode.
Figure 22. Select Installation Mode 
-
Configure the disk partitions.
Figure 23. Configure Disk Partitions 
-
Start configuring the NIC.
- On the INSTALLATION SUMMARY page, click Network & Host Name to access the NETWORK & HOST NAME page.
- Select a NIC from the list on the left, such as Ethernet (ens3).
- Click Configure.
Figure 24. Configure NIC 
-
Configure a static IP address for the NIC.
- In the Editing ens3 dialog, click IPv4 Settings.
- For Method, choose the IP address acquisition method as needed. For example, select Manual to specify the IP address manually.
- Click Add to add an IP address entry, and configure the IP address, netmask, and gateway as needed.
Figure 25. Configure Static IP Address 
-
Configure the NIC to activate automatically.
- In the Editing ens3 dialog, click General, then select the Connect automatically with priority checkbox to set the NIC for automatic activation.
- Review the configuration and click Save.
Figure 26. Configure NIC to Activate Automatically 
-
Complete the NIC configuration.
- Return to the NETWORK & HOST NAME page, and confirm that you have selected the correct NIC and that the NIC status is ON.
- Click Done to return the INSTALLATION SUMMARY page.
Figure 27. Check NIC Configuration 
- On the INSTALLATION SUMMARY page, click Root Password to set the root password for the operating system.
- On the INSTALLATION SUMMARY page, click Begin Installation to begin installing the operating system.
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
-
Select the boot option.
Enter the ISO boot interface and choose the default option to start the operating system installation. You can select based on your actual situation, but we recommend using the graphical user interface (GUI) for installation. If the server does not have a VGA port and only supports serial connections, you can use either VNC or text mode installation methods.
- GUI method
- VNC method
- Text mode method
Figure 28. System Boot 
-
Enter the INSTALLATION SUMMARY wizard.
After the installation boot screen loads automatically, the INSTALLATION SUMMARY page appears. On this page, focus on the following three configuration items: Installation Destination, Software Selection, and Root Password.
Figure 29. INSTALLATION SUMMARY Overview 
-
Configure Installation Destination.
- Click Installation Destination.
- Under Local Standard Disks, select a disk to use as the system disk.
- Keep Storage Configuration set to the default Automatic.
- Click Done in the upper-left corner to return.
Figure 30. Select the System Disk 
-
Configure Software Selection.
- Click Software Selection.
- Under Base Environment, select Compute Node for the compute node mode.
- Click Done in the upper-left corner to return.
Figure 31. Select the Compute Node Mode 
-
Configure the Root Password.
-
Start the installation and wait for it to finish.
Verify that all items marked with red boxes are configured (no yellow warning bars remain), and click Begin Installation in the lower-right corner to start the installation.
Figure 32. Begin Installation 
The installation completes automatically and requires no manual intervention. After the installation finishes, the system reboots and the TUI appears.
-
Enter the TUI main screen and complete root authentication.
The TUI is divided into four information areas:
- NODE INFO: Node uptime, load, CPU, and memory usage.
- DISK INFO: Disk mount points and capacity.
- NIC INFO: NIC names and IP addresses. The default NIC, such as ens3, is displayed at first boot.
- VM INFO: List of virtual machines on the current node.
The shortcut keys are shown at the bottom of the screen:- <F2> System Configuration: Enter system configuration.
- <F12> Reboot/Poweroff: Reboot or shut down the system.
Figure 33. TUI Screen 
- Press F2 to enter system configuration. The ROOT PASSWORD authentication dialog box appears.
- Enter the root password and press Enter to confirm.
Figure 34. Enter the Root Password for Authentication 
-
Open the Configure Networks settings.
After authentication, the System Configuration menu appears.
Figure 35. Select a NIC and Trigger Link Aggregation 
-
Select the bond mode.
- In the CONFIGURE BOND dialog box that appears, select a bond mode.
- This chapter uses Active-Backup as an example. Press Enter to confirm.
Figure 36. Select the Active-Backup Bond Mode 
-
Name the bond and select slave NICs.
The CONFIGURE BOND SLAVE dialog box appears. Configure the following settings.
Figure 37. Enter the Bond Name and Select Slave NICs 
-
Confirm the bond configuration.
The CONFIGURE BOND NETWORK CONFIRM warning dialog box appears with the following message:
Be careful! Changing the network configuration may cause failure! If you know what you are doing, then enter 'Y' to continue! -
Select the bond to configure its IP.
You return to the Configure Networks dialog box.
- In the NIC list, select the bond created in the previous step (for example, bond0).
- Press Enter to enter the IP configuration.
Figure 40. Select bond0 to Configure the IP Address 
-
Configure the management network IP address.
Figure 41. IP Configuration Example 
-
Confirm the IP configuration.
-
Open the Install ZStack option.
- Press Esc to return to the System Configuration menu.
- Use the arrow keys to select Install ZStack.
- Press Enter.
Figure 44. Open the Install ZStack Option 
-
Confirm the management node installation.
The INSTALL ZStack warning dialog box appears with the following message:
This process will install a brand new ZStack, please confirm-
Type the full string
install zstack. - Press Enter to confirm.
Figure 45. Confirm the Management Node Installation 
-
Type the full string
-
Wait for the management node installation to complete.
The screen enters a waiting state and displays the message
Please wait.... Wait for the installation to complete.Figure 46. Management Node Installation in Progress 
-
After the installation is complete, view the TUI main screen.
After the management node installation completes, the information on the TUI main screen changes as follows:
- DISK INFO: New mount points such as /var/lib/zstack and /usr/local/zstack are added.
- NIC INFO: A new
docker0interface (related to the management service) is displayed, along with the configuredbond0and its IP address (for example, 172.26.215.195).
Figure 47. TUI Main Screen After Installation 
-
Verify the management node status from the command line.
Figure 48. Verify the Management Node Status from the Command Line 
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
-
Log in to the UI management interface of either management node.
For a new environment that has not been initialized:
- In the Welcome to Initialization Wizard dialog, click Next. The system automatically detects the management node HA status.
- In the Set Up MN HA dialog, click Go to MN Ops.
- A new browser tab opens displaying the MN Ops page.
Figure 49. Go to MN Ops from the Initialization Page 
For an existing environment:- In the navigation pane, choose .
- On the MN Monitoring page, click Go to MN Ops.
- A new browser tab opens displaying the MN Ops page.
Figure 50. Go to MN Ops from the MN Monitoring Page 
-
On the MN Monitoring page in MN Ops, click Set Up MN HA.
Figure 51. MN Monitoring 
-
In the Set Up MN HA dialog, complete configuring MN, reviewing configuration, and setting up MN HA.
-
After the addition completes successfully, click Go to VIP to access the platform management interface through the VIP.
Figure 55. Go to VIP 
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
-
Select the boot option.
Enter the ISO boot interface and choose the default option to start the operating system installation. You can select based on your actual situation, but we recommend using the graphical user interface (GUI) for installation. If the server does not have a VGA port and only supports serial connections, you can use either VNC or text mode installation methods.
- GUI method
- VNC method
- Text mode method
Figure 56. System Boot 
-
Select the installation mode.
Figure 57. Select Installation Mode 
-
Configure the disk partitions.
Figure 58. Configure Disk Partitions 
- On the INSTALLATION SUMMARY page, click Root Password to set the root password for the operating system.
- On the INSTALLATION SUMMARY page, click Begin Installation to begin installing the operating system.
Configure the Management Network
About this task
The following tables list the network information for the management nodes and the VIP settings for Keepalived communication in this scenario.| 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 |
Note:
- 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
-
Log in to the MN 1 operating system and run the following
commands.
# Create the bonded NIC bond0 [root@localhost ~]# zs-bond-lacp -c bond0 # Add NICs eth0 and eth1 to bond0 [root@localhost ~]# zs-nic-to-bond -a bond0 eth0 [root@localhost ~]# zs-nic-to-bond -a bond0 eth1 # After configuring the link aggregation, you need to set up LACP aggregation on the corresponding switch ports. # Create the bridge br_bond0 and specify network IP, netmask, and gateway [root@localhost ~]# zs-network-setting -b bond0 192.168.195.200 255.255.0.0 192.168.0.1 # Check if the aggregated port bond0 was created successfully [root@localhost ~]# zs-show-network ... ---------------------------------------------------------------------------------- | Bond Name | SLAVE(s) | BONDING_OPTS | ---------------------------------------------------------------------------------- | bond0 | eth0 | miimon=100 mode=4 xmit_hash_policy=layer2+3 | | | eth1 | | --------------------------------------------------------------------------------- -
Log in to the MN 2 operating system and run the similar configuration
commands.
Note:
- After adding eth0 and eth1 to bond0, you need to configure LACP aggregation on the corresponding switch ports. Otherwise, network communication will be disrupted.
- After creating the bridge through bond0, the bridge will be named as br_bond0 to provide management network services.
- You need to configure the bridge's IP address, netmask, and gateway according to your actual network environment.
- Once you complete the management network configuration, use the
pingcommand to test it. If configured correctly, the management network IP addresses of the two management nodes should be able topingeach other. - A 10 Gigabit or higher bandwidth is recommended for the management network. A 1 Gigabit bandwidth is acceptable if the network is deployed independently.
Configure the Business Network
About this task
The following table lists the configuration for the business network in this scenario.| Server | NIC 1 | NIC 2 | Bond | Bridge | IP Address | Netmask | Gateway |
|---|---|---|---|---|---|---|---|
| MN 1 | em1 | em2 | bond1 | - | - | - | - |
| MN 2 | em1 | em2 | bond1 | - | - | - | - |
Procedure
-
Log in to the MN 1 operating system and run the following
commands.
# Create the bonded NIC bond1 [root@localhost ~]# zs-bond-lacp -c bond1 # Add NICs em1 and em2 to bond1 [root@localhost ~]# zs-nic-to-bond -a bond1 em1 [root@localhost ~]# zs-nic-to-bond -a bond1 em2 # After configuring the link aggregation, you need to set up LACP aggregation on the corresponding switch ports. # You do not need to create a bridge for business network # Check if the aggregated port bond1 was created successfully [root@localhost ~]# zs-show-network ... ---------------------------------------------------------------------------------- | Bond Name | SLAVE(s) | BONDING_OPTS | ---------------------------------------------------------------------------------- | bond1 | em1 | miimon=100 mode=4 xmit_hash_policy=layer2+3 | | | em2 | | --------------------------------------------------------------------------------- -
Log in to the MN 2 operating system and run the similar configuration
commands.
Note: After adding em1 and em2 to bond1, you need to configure LACP aggregation
on the corresponding switch ports. Otherwise, network communication will be
disrupted.
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:
Note: When installing the HA suite with the same configuration, the CLI method takes precedence over the configuration file method.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
-
Import the HA suite.
Log in to the MN 1 operating system. Import the HA suite to MN 1 and unzip the HA suite.
# Use scp to import HA suite to MN 1 [root@localhost ~]# ls ZStack-ZSphere-Multinode-HA-Suite.tar.gz # Unzip the suite to get two executable files: zsha2 and zstack-hamon [root@localhost ~]# tar zxvf ZStack-ZSphere-Multinode-HA-Suite.tar.gz zsha2 //Installation and management program for management node high availability zstack-hamon //Monitoring program for management node high availability -
Initialize HA.
Run the following command to install the HA suite on MN 1:
[root@localhost ~]# chmod +x zsha2 zstack-hamon [root@localhost ~]# ./zsha2 install-ha -nic br_bond0 -gateway 192.168.0.1 -slave "root:password@192.168.196.125" \ -vip 192.168.199.151 -myip 192.168.195.200 -db-root-pw zstack.mysql.password -time-server 192.168.196.125 -cidr 192.168.0.0/16 -yes
Note:
- After executing the installation command, the system will automatically back up the databases of the active and standby management nodes before proceeding with the installation.
- To install the high availability suite, ensure that zsha2 and zstack-hamon are in the same directory. During the installation, zsha2 will automatically deploy zstack-hamon and the related configuration files.
-
Check the management nodes status.
After initializing the HA suite, run the following command to check the status of the management nodes:
# Check the status of Management Node 1 [root@localhost ~]# zsha2 status Status report from 192.168.195.200 ================================= Owns virtual address: yes // MN 1 has acquired the VIP. Only one management node can acquire the VIP at any given time. Self 192.168.195.200 reachable: yes // MN1 is reachable. Gateway 192.168.0.1 reachable: yes // Current gateway is reachable. VIP 192.168.199.151 reachable: yes // VIP is reachable. Peer 192.168.196.125 reachable: yes // MN 2 is reachable. Keepalived status: active // Keepalived service is active. ZStack HA Monitor: active // HA monitoring service is active. MySQL status: mysqld is alive // Database is functioning normally. MN status: Running [PID:6500] // Management node is operating normally. UI status: Running [PID:9785] https://192.168.195.200:443 // UI is functioning normally. Slave Status: ------------- Slave_IO_Running: Yes // Slave IO is running normally. Slave_SQL_Running: Yes // Slave SQL is running normally. Last_Error: Seconds_Behind_Master: 0 Last_IO_Error: Last_SQL_Error: Warning: Permanently added '192.168.196.125' (ECDSA) to the list of known hosts. Status report from 192.168.196.125 // Check the status of Management Node 2 ================================ Owns virtual address: no Self 192.168.196.125 reachable: yes Gateway 192.168.0.1 reachable: yes VIP 192.168.199.151 reachable: yes Peer 192.168.195.200 reachable: yes Keepalived status: active ZStack HA Monitor: active MySQL status: mysqld is alive Slave Status: ------------- Slave_IO_Running: Yes Slave_SQL_Running: Yes Last_Error: Seconds_Behind_Master: 0 Last_IO_Error: Last_SQL_Error: Note: visit ZStack UI with https://192.168.199.151:443
Note: During
the installation of the HA suite, SSH password-free login has been
automatically configured for both management nodes.
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
-
Import the HA suite.
Log in to the MN 1 operating system. Import the HA suite to MN 1 and unzip the HA suite.
# Use scp to import HA suite to MN 1 [root@localhost ~]# ls ZStack-ZSphere-Multinode-HA-Suite.tar.gz # Unzip the suite to get two executable files: zsha2 and zstack-hamon [root@localhost ~]# tar zxvf ZStack-ZSphere-Multinode-HA-Suite.tar.gz zsha2 //Installation and management program for management node high availability zstack-hamon //Monitoring program for management node high availability -
Create the configuration file.
Run the following commands to create the initialization configuration file for the HA suite:
[root@localhost ~]# chmod +x zsha2 zstack-hamon [root@localhost ~]# ./zsha2 sample-config > zs-install.config [root@localhost ~]# cat zs-install.config { "gateway": "192.168.0.1", // Arbiter gateway for active and standby management nodes "virtualIp": "192.168.199.151", // The VIP for Keepalived communication "myIp": "192.168.195.200", // Specify the local IP "peerIp": "192.168.196.125", // Specify the Peer management node IP "peerSshUser": "root", // Specify the SSH username for the Peer management node "peerSshPass": "password", // Specify the SSH password for the Peer management node "peerSshPort": 22, // Specify the SSH port for the Peer management node "dbRootPass": "zstack.mysql.password", // Specify the root password for the database on both management nodes (must be the same) "interface": "br_bond0", //Name of the physical device for configuring the VIP. Typically a management network bridge in production environments "timeServer": "192.168.196.125" //Specify the time synchronization server for unified time synchronization } -
Initialize HA.
Run the following command to install the HA suite:
[root@localhost ~]# ./zsha2 install-ha -config zs-install.config
Note:
- After executing the installation command, the system will automatically back up the databases of the active and standby management nodes before proceeding with the installation.
- To install the high availability suite, ensure that zsha2 and zstack-hamon are in the same directory. During the installation, zsha2 will automatically deploy zstack-hamon and the related configuration files.
-
Check the management nodes status.
After initializing the HA suite, run the following command to check the status of the management nodes:
# Check the status of Management Node 1 [root@localhost ~]# zsha2 status Status report from 192.168.195.200 ================================= Owns virtual address: yes // MN 1 has acquired the VIP. Only one management node can acquire the VIP at any given time. Self 192.168.195.200 reachable: yes // MN1 is reachable. Gateway 192.168.0.1 reachable: yes // Current gateway is reachable. VIP 192.168.199.151 reachable: yes // VIP is reachable. Peer 192.168.196.125 reachable: yes // MN 2 is reachable. Keepalived status: active // Keepalived service is active. ZStack HA Monitor: active // HA monitoring service is active. MySQL status: mysqld is alive // Database is functioning normally. MN status: Running [PID:6500] // Management node is operating normally. UI status: Running [PID:9785] https://192.168.195.200:443 // UI is functioning normally. Slave Status: ------------- Slave_IO_Running: Yes // Slave IO is running normally. Slave_SQL_Running: Yes // Slave SQL is running normally. Last_Error: Seconds_Behind_Master: 0 Last_IO_Error: Last_SQL_Error: Warning: Permanently added '192.168.196.125' (ECDSA) to the list of known hosts. Status report from 192.168.196.125 // Check the status of Management Node 2 ================================ Owns virtual address: no Self 192.168.196.125 reachable: yes Gateway 192.168.0.1 reachable: yes VIP 192.168.199.151 reachable: yes Peer 192.168.195.200 reachable: yes Keepalived status: active ZStack HA Monitor: active MySQL status: mysqld is alive Slave Status: ------------- Slave_IO_Running: Yes Slave_SQL_Running: Yes Last_Error: Seconds_Behind_Master: 0 Last_IO_Error: Last_SQL_Error: Note: visit ZStack UI with https://192.168.199.151:443
Note: During
the installation of the HA suite, SSH password-free login has been
automatically configured for both management nodes.
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.1.0 (ZStack-enterprise 5.1.0)
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
-
In a browser, enter the management node IP address in this format: https://management_node_ip.
For a dual management node environment, use the VIP to access the UI.
-
Enter your username and password.
On your first login, the default username is admin and the initial default password is password.
- Click Log In.
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
- In the Welcome to Initialization Wizard dialog, choose Initialize Manually.
- Click Next.
-
On the Initialize Manually page, create a data center.
- Enter a name and description for the data center.
- Click OK.
-
Create a cluster.
- Enter a name for the cluster.
- Select a CPU architecture for the cluster. Options include x86_64 and aarch64.
- Click OK.
-
Add a host.
-
Add a data storage.
-
Add an image storage.
-
Add an image.
- Select the image path. Options include URL and local file.
- Enter a name for the image.
- Select the image type. Options include system image and disk image.
- Select the image format. Options include qcow2, iso, vmdk, and raw.
- Click OK.
-
Create a distributed port group.
-
The Manual Initialization Complete dialog appears. Click OK.
You have completed the necessary resource creations for environment initialization. You may now start using the platform.
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
You have at least one valid platform backup.Procedure
- In the Welcome to Initialization Wizard dialog, choose Restore from Backup Data.
- Click Next.
-
In the Restore from Backup Data dialog, set the following parameters to complete server configurations:
Parameter Description Backup Storage IP Enter the IP address of the backup storage that stores the platform backup data. URL URL of the backup storage. SSH Port SSH port of the backup storage. Default is 22. Username Username of the backup storage. Password Password of the backup storage. - Click Test Connection to validate network connectivity to the backup storage.
-
After successful connection, set the following parameters to complete backup data configurations:
Parameter Description Database Backup Select platform backup data.
Note: To avoid management node start failure due to insufficient licensed quota, select the appropriate data to restore. You can click Update License to renew your licensed quota. - Review the configuration and click OK.
-
In the Restore Platform Database dialog, enter the
database root password and click OK.
Note: Restoring the platform database requires a management node restart, during
which the management interface will be unavailable. This process takes a few
minutes and does not affect your resources. - After the platform database is successfully restored, click Log in Again.
What to do next
After platform database recovery, all resources on the platform will be recovered to the state at which the backup is created. Click Scan Backup Data in the local backup storage to obtain real-time backup data.Overview
About This Document
This document describes how to prepare for an upgrade, upgrade a management node environment, upgrade a management node HA environment, and perform post-upgrade checks 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 post-upgrade checks and handling. |
| ZSphere environment with management node HA | Prepare for the upgrade, upgrade the HA suite and management node on the management node where the VIP resides, and then perform post-upgrade checks and handling. |
Prepare for Upgrade
Before upgrading ZSphere, confirm the current environment version, prepare the required upgrade packages, and complete the required protection operations.
Procedure
-
Check the current environment version and operating system version.
[root@localhost ~]# zstack-ctl status [root@localhost ~]# cat /etc/redhat-release -
Obtain the installation and upgrade packages.
Download the zstack-upgrade script, ISO package, installation and upgrade package, and management node HA suite as needed.
-
Disable the HA policy.
Before the upgrade, disable the global switch for VM high availability to avoid accidentally triggering VM HA during the upgrade. Enable the HA policy manually after the upgrade is complete.
- Log in to ZSphere.
- Click to go to the HA Policy page.
- Disable the HA policy switch.
-
Back up the database and upgrade script.
Log in to the management node operating system and run the following commands to back up the database and upgrade script for emergency recovery.
# Back up the database to the /var/lib/zstack/mysql-backup/ directory [root@localhost ~]# zstack-ctl dump_mysql --file-name zstack-db-backup # Back up the upgrade script to the /root/ directory [root@localhost ~]# cp /usr/local/bin/zstack-upgrade /root/zstack-upgrade-bk
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
-
Select an offline upgrade method to upgrade ZSphere.
-
Recommended method: upgrade the local repository and management service.
[root@zstack-1 opt]# zstack-upgrade ZStack-ZSphere-x86_64-DVD-5.1.0-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.1.0-H84r.iso [root@zstack-1 opt]# bash ZStack-ZSphere-installer-5.1.0.bin -u -P MYSQL_ROOT_PASSWORD
Note:
- 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
After the upgrade is complete, continue with Post-Upgrade Checks and Handling.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.
Procedure
-
Obtain the IP address of the management node where the VIP resides.
Run the following command to obtain the IP address of the management node where the VIP resides. In the returned results, the node whose VIP value is
yesis the management node where the VIP resides.[root@localhost ~]# zsha2 status -
Unpack the HA suite and grant executable permissions.
On the management node where the VIP resides, run the following commands in sequence to unpack the HA suite and grant executable permissions to the
zsha2andzstack-hamonfiles.# Unpack the HA suite [root@localhost ~]# tar zxvf ZStack-ZSphere-Multinode-HA-Suite.tar.gz # Grant executable permissions [root@localhost ~]# chmod +x zsha2 zstack-hamon -
Upgrade the HA suite.
On the management node where the VIP resides, run the following command to upgrade the HA suite.
[root@localhost ~]# ./zsha2 upgrade-ha -
Run the
zsha2 versioncommand to check whether thecommit idmatches the one in the latest version package. -
Upgrade ZStack-ZSphere.
On the management node where the VIP resides, run the following command to upgrade the virtualization platform.
zsha2 upgrade-mn -peerpass password ZStack-ZSphere-x86_64-DVD-5.1.0-H84r.iso
Note: -peerpassis optional. You can use it to specify the SSH login password of the peer management node.
What to do next
After the upgrade is complete, continue with Post-Upgrade Checks and Handling.Post-Upgrade Checks and Handling
After the upgrade is complete, clear the browser cache, restore the HA policy as needed, and check service status and version information.
Procedure
-
Clear the browser cache manually.
To ensure that new features work properly, log in to the UI management interface after the upgrade is complete and press
Ctrl+F5orCtrl+Shift+Rto clear the browser cache manually. -
Enable the HA policy as needed.
If you disabled the global switch for VM high availability before the upgrade, go to and enable the HA policy after the upgrade is complete and the environment is running properly.
-
Check the management node service status and version information.
[root@localhost ~]# zstack-ctl status [root@localhost ~]# zstack-ctl ui_status [root@localhost ~]# cat /etc/redhat-release -
If you upgraded a management node HA environment, check the management node HA service status and version information.
[root@localhost ~]# zsha2 status [root@localhost ~]# zsha2 version













