Bare Metal Management

Overview

ZStack ZSphere Bare Metal Management Service provides dedicated physical servers for your critical applications, delivering high performance and stability.

After completing server installation and basic setup, you can rapidly deploy bare metal chassis and create bare metal instances on the UI. The service supports unattended OS installation through bare metal templates, significantly improving operational efficiency. You can flexibly configure business networks for bare metal instances to meet different application requirements.

Concepts

  • Bare metal template: With bare metal templates, preconfigured files can be quickly generated to achieve unattended bulk OS installation for bare metal instances.
  • Bare metal cluster: A bare metal cluster consists of bare metal chassis.
  • Deployment server: An independent server used for providing PXE services and console proxies for bare metal chassis.
  • Bare metal chassis: Bare metal chassis is used to create bare metal instances and can be universally identified by the BMC interface and IPMI configuration.
  • Bare metal instance: A virtualized instance of bare metal chassis.

Advantages

The bare metal management service offers the following advantages:
  • Dedicated physical resources

    Provides dedicated physical servers for your critical applications, ensuring high performance and stability.

  • Efficient batch deployment
    • You can add bare metal chassis in batches on the UI through manual addition or template import. You can batch configure IPMI addresses for multiple chassis at once, quickly building bare metal clusters.
    • You can use bare metal templates for unattended OS installation, significantly improving operational efficiency.
  • Flexible OS support

    Compatible with mainstream Linux distributions (RHEL/CentOS series, Debian/Ubuntu series, and SUSE/openSUSE series) and custom platform OS versions, meeting you customized installation requirements.

  • High-availability deployment architecture

    Supports dual management node HA scenarios. It is recommended to attach separate deployment server for each bare metal cluster to avoid single points of failure and DHCP conflicts.

Scenarios

The bare metal management service is suitable for the following scenarios:
  • High-security regulated environments

    The financial and insurance industries that have high requirements over business deployment compliance and data security. In these scenarios, you can use Bare Metal Management to secure dedicated resources, data isolation, easy management, and operation-tracking. This way, you can ensure the reliability and security compliance of your key business system and data.

  • High-performance computing

    In supercomputing, genome sequencing, and other high-performance computing scenarios, the requirements over the computing performance, stability, and timeliness of the server are very high. The Bare Metal Management feature is fitting for these scenarios. In addition, the feature can be used for scenarios that require high throughput or high computing performance that can accommodate changing access requests and scenarios. Virtualization and hyperthreading may compromise some performance. Deploying a reasonable number of bare metal clusters can meet the high-performance computing requirements.

  • Mission-critical databases

    To meet business requirements, you may not want to deploy some key databases on virtual machines while want to deploy the databases on physical servers that feature dedicated resources, network isolation, and guaranteed performance. In these scenarios, you can use Bare Metal Management to provide dedicated high-performance physical servers for your applications.

Preparation

License

To use the ZStack ZSphere Bare Metal Management service, you need to purchase an individual plus license.

Network Planning

Refer to Figure 1 to plan your physical network environment in advance, including the deployment network, IPMI network, management network, and business network.
Figure 1. Bare Metal Network Topology
  1. Plan the deployment network.
    Make sure the PXE NIC of bare metal chassis connects to the deployment server's (PXE server) DHCP listening NIC through the deployment network.
    • Access the bare metal chassis BIOS to confirm the NIC connecting to the deployment network has PXE enabled.

      For some models, make sure the PXE NIC is the first boot NIC or disable PXE on all NICs with higher boot priority.

    • No manual BIOS boot order adjustment is needed (typically HDD boot first). The system will automatically trigger a one-time PXE boot.
    • For high availability, we recommend using independent deployment servers.
    • The deployment server's DHCP listening NIC must be a dedicated NIC with IP address to provide stable DHCP service.
    • Ensure no other DHCP services exist in the deployment network.
    • Plan IP address allocation for each bare metal instance according to your production environment.
  2. Configure bare metal chassis IPMI and plan IPMI network.
    Two configuration scenarios exist:
    • For out-of-band control, ensure each bare metal chassis has BMC interface with pre-configured IPMI address, port, username and password. Plan IPMI network to connect management nodes to BMC interfaces.
    • If devices support BMC ShareLink Management Port, disable it in BIOS to ensure only one IPMI address exists.
      Figure 2. Disable BMC ShareLink Management Port


  3. Plan management and business networks.
    • Plan management network to connect image storage and deployment servers to management nodes.
    • For bare metal instance business networks, attach distributed switches to the corresponding bare metal cluster in advance.

Software Preparation

Prepare ISO images in the image storage for installing operating systems on bare metal instances.
  • The bare metal instance supports both custom platform OS and mainstream Linux distributions, including RHEL/CentOS series, Debian/Ubuntu series, and SUSE/openSUSE series.
  • Only ISO format images are supported.

Quick Start Guide

Follow this workflow to quickly create bare metal instances:
  1. (Optional) Add custom bare metal templates.

    Use templates to generate pre-configured files for unattended batch OS installation on bare metal instances. You can use either system templates or custom templates. For more information, see Bare Metal Template.

  2. Create a new bare metal cluster.

    Provides dedicated cluster management for bare metal devices. For more information, see Bare Metal Cluster.

  3. Add bare metal chassis.

    You can add bare metal chassis by manual addition or template import. For more information, see Bare Metal Chassis.

  4. Create bare metal instances.

    For more information, see Bare Metal Instance.

Bare Metal Template

Template Syntax Rules

Bare metal templates include both system variables and custom variables to support various unattended deployment scenarios.

System templates only contain predefined system variables. Custom templates include both system variables and your custom variables.

System variables example (All uppercase, underscore-separated):
REPO_URL  
# Installation source URL created from selected ISO
# Can be commented out and manually specified via --url

USERNAME  
# System username
# Default is root for RHEL/CentOS or SUSE/openSUSE (only password required)
# Required for Debian/Ubuntu systems

PASSWORD  
# Password for the system user

NETWORK_CFGS 
# NIC UUID and network UUID from UI
# Replaced after IP assignment (automatic or manual)

FORCE_INSTALL  
# Whether to overwrite existing disk data automatically

PRE_SCRIPTS  
# Pre-installation scripts

POST_SCRIPTS  
# Post-installation scripts
Custom variables example (All lowercase, underscore-separated):
hostname  
# Hostname

keyboard  
# Keyboard

timezone  
# Timezone
Different template types follow different syntax rules:
  • For kickstart templates: Refer to Red Hat official documentation.
  • For preseed or autoinstall templates: Refer to Ubuntu official documentation.
  • For autoyast templates: Refer to SUSE official documentation.

System Preconfigured Templates

ZStack ZSphere provides multiple system templates.
Template Name Description
cloud_host_x86_64_v3 For unattended deployment of ZStack ZSphere management node via the bare metal module.
cloud_expert_x86_64_v2 For unattended deployment of ZStack ZSphere expert mode.
Note: Expert Mode installation skips copying ISO files from /opt/zstack-dvd and does not generate zstack-local.repo in /etc/yum.repos.d/, significantly reducing installation time.
centos_7_x86_64_mini_v1 For unattended deployment of CentOS 7 systems via the bare metal module.
centos_7_aarch64_min_v1
kylin_10_x86_64_min_v1 For unattended deployment of Kylin V10 systems via the bare metal module.
kylin_10_aarch64_min_v1
openEuler_20_aarch64_min_v1 For unattended deployment of openEuler 20 systems via the bare metal module.
opensuse_15_x86_64_mini_v1 For unattended deployment of openSUSE 15 systems via the bare metal module.
ubuntu_16_x86_64_mini_v2 For unattended deployment of Ubuntu 16 systems via the bare metal module.
ubuntu_18_x86_64_mini_v1 For unattended deployment of Ubuntu 18 systems via the bare metal module.
ubuntu_20_live_server_x86_64_mini_v1 For unattended deployment of Ubuntu 20 and Ubuntu 22 systems via the bare metal module.

Add a Custom Template

Upload UTF-8 encoded custom bare metal template files for complex unattended deployment scenarios.

Before you begin

  • Custom template file size must not exceed 50 KB.
  • Custom template files must strictly follow syntax rules for their template type. For more information, see Template Syntax Rules.

Procedure

  1. In the navigation pane, choose Inventory > Bare Metal Management.
  2. Select the root node.
  3. On the root node details page, click Customized Configuration.
  4. On the Customized Configuration tab, click Add Bare Metal Template.
  5. On the Add Bare Metal Template dialog, set the following parameters:
    • Name: Set a name for the bare metal template.
    • Description: Optional. Enter a description.
    • Operating System: Select the operating system for unattended deployment.

      Supports both custom platform OS and mainstream Linux distributions, including RHEL/CentOS series, Debian/Ubuntu series, and SUSE/openSUSE series.

    • Template Type: Select template type matching the OS.
      • Custom platform-optimized OS: Select kickstart.
      • RHEL/CentOS series: Select kickstart.
      • Debian/Ubuntu series: Select preseed.
      • Ubuntu Live: Select autoinstall.
      • SUSE/openSUSE series: Select autoyast.
    • Template Import: Upload an UTF-8 encoded custom template file.
      Note: Custom bare metal templates must strictly follow the syntax rules of the corresponding selected template type.
  6. Review the configuration and click OK.

Bare Metal Cluster

New Bare Metal Cluster

Before you begin

  • The bare metal cluster requires a deployment server to provide PXE services for bare metal instances in the cluster.
  • Each bare metal cluster supports only one deployment server, but one deployment server can be attached to multiple clusters.
  • The bare metal cluster can attach distributed switches to provide networks for bare metal instances.

Procedure

  1. In the navigation pane, choose Inventory > Bare Metal Management.
  2. Select the target data center.
  3. On the data center details page, click Bare Metal Management.
  4. On the Bare Metal Management tab, click Bare Metal Cluster > New Bare Metal Cluster.
  5. In the New Bare Metal Cluster dialog, set the following parameters:
    • Name: Set a name for the bare metal cluster.
    • Description: Optional. Enter a description.
    • Attach Deployment Server: Choose whether to attach a deployment server.
      • Server Source: Select either a new or existing deployment server.
        If you select New Deployment Server, set the following parameters:
        • Deployment Server Name: Set a name for the deployment server.
        • DHCP Listening NIC: Enter the NIC device number connected to the deployment network.
          Note:
          • This NIC must be connected to the deployment network of the bare metal chassis and have a configured IP address.
          • The network where this NIC resides must not have any other DHCP services.
        • Storage Path: Enter the local directory for PXE deployment images.
        • Deployment Server IP: Enter the deployment server IP address.
        • SSH Port: Default: 22.
        • Username: Default: root. You can enter a regular user.
        • Password: Enter corresponding user password.
        • DHCP Start IP: Used for traversing IP ranges of DHCP services.
        • DHCP End IP: Used for traversing IP ranges of DHCP services.
          Note: If not specified, the system will detect and filter used IP address as IP ranges according to this NIC IP addresses.

        If you select Existing Deployment Server, select a deployment server.

  6. Review the configuration and click OK.

Deployment Server Management

Procedure

  1. In the navigation pane, choose Inventory > Bare Metal Management.
  2. Select the target bare metal cluster.
  3. On the bare metal cluster Overview details page, you can check the configuration information of the attached deployment server.
  4. On the bare metal cluster details page, click Actions.
    • To attach a deployment server, choose Attach Deployment Server.
    • To reconnect a deployment server, choose Reconnect Deployment Server.
    • To detach the deployment server from the bare metal cluster, choose Detach Deployment server.

Delete a Bare Metal Cluster

Procedure

  1. In the navigation pane, choose Inventory > Bare Metal Management.
  2. Select the target bare metal cluster.
  3. On the bare metal cluster details page, click Actions > Delete.

Results

Deleting bare metal clusters will delete all bare metal chassis and bare metal instances in the cluster. Proceed with caution.

Bare Metal Chassis

Add a Bare Metal Chassis

Manually Add a Bare Metal Chassis

Add single or multiple bare metal chassis by specifying an IPMI address or IPMI range.

Before you begin

Make sure bare metal chassis are connected according to the planned network topology. For more information, see Preparation.

Procedure

  1. In the navigation pane, choose Inventory > Bare Metal Management.
  2. Right-click the target bare metal cluster and choose Add Bare Metal Chassis.
  3. In the Select Bare Metal Chassis Addition Type dialog, select Manual Addition.
  4. Click Next.
  5. In the Add Bare Metal Chassis dialog, set the following parameters:
    • Name: Set a name for the bare metal chassis.
    • Description: Optional. Enter a description.
    • Bare Metal Cluster: Select the target bare metal cluster where the bare metal chassis reside.
    • Addition Method: Choose a method to add IPMI addresses. Options include IPMI address and IPMI range.
    • IPMI Address/Range: Enter an IPMI address or the start and end IP of an IPMI range.
    • Port: Enter the IPMI port. Default: 623.
    • Username: Enter the IPMI username.
    • Password: Enter the IPMI password.
    • Reboot Bare Metal Chassis: Choose whether to reboot the bare metal chassis to automatically obtain the hardware information. Default: unselected.
  6. Review the configuration and click OK.

Import a Bare Metal Chassis from a Template

Use a CSV configuration file. Enter bare metal chassis information in the specified format and upload the file to import bare metal chassis.

Before you begin

  • Make sure bare metal chassis are connected according to the planned network topology. For more information, see Preparation.
  • The template includes a header row and an example row. Delete or overwrite the example row when editing.
  • Parameters marked with * are required.
  • You can enter a single IPMI address or IPMI range.

    For IP ranges, use commas to separate addresses and use ^ to exclude a range. Example: 127.0.0.1-127.0.0.10,^127.0.0.2-127.0.0.3

  • Bare metal reboot option:
    • Auto-reboot to obtain hardware information: Enter YES/Yes/yes/Y/y.
    • Manual reboot: Enter NO/No/no/N/n or leave blank.

Procedure

  1. In the navigation pane, choose Inventory > Bare Metal Management.
  2. Right-click the target bare metal cluster and choose Add Bare Metal Chassis.
  3. In the Select Bare Metal Chassis Addition Type dialog, select Template Import.
  4. Click Next.
  5. In the Add Bare Metal Chassis dialog, set the following parameters:
    • Template: Click Download Template and fill in bare metal chassis configuration according to the required format.
    • Upload Template File: Upload the file.
  6. Click OK.

Bare Metal Chassis Status Management

Bare metal chassis have the following deployment status, status, and power status:
Deployment Status Description
Unknown Hardware Info The system failed to collect the hardware information of the bare metal chassis.
Note:
  • Possible cause: You did not select the reboot bare metal chassis to obtain hardware information checkbox when adding the bare metal chassis.
  • Solution: Manually reboot the bare metal chassis or obtain hardware information.
PXE Booting The deployment server (PXE server) is remotely instructing the bare metal chassis to boot from the PXE NIC and assigning a dynamic IP.
PXE Boot Failed The bare metal chassis failed to boot from the PXE NIC.
Note: Check these requirements:
  • Make sure no other DHCP services exist in the deployment network.
  • Make sure PXE is enabled in BIOS for the NIC connected to the deployment network.

    For some models, make sure the PXE NIC is the first boot NIC or disable PXE on all NICs with higher boot priority.

  • Confirm the bare metal chassis boot mode is set to Legacy.
Available The bare metal chassis is ready for creating bare metal instances.
Allocated The bare metal chassis has been used to create a bare metal instance.
Rebooting The bare metal chassis is rebooting.
Status Power Status
Status includes:
  • Enabled
  • Disabled
Power status includes:
  • Power on
  • Rebooting
  • Power off

Access a Bare Metal Chassis

Procedure

  1. In the navigation pane, choose Inventory > Bare Metal Management.
  2. Select the target bare metal chassis.
  3. On the bare metal chassis details page, click Launch Console.
    The system redirects to the IPMI management interface of the bare metal chassis.
  4. On the IPMI management interface, enter the configured IPMI username and password to log in.

Delete a Bare Metal Chassis

Procedure

  1. In the navigation pane, choose Inventory > Bare Metal Management.
  2. Select the target bare metal chassis.
  3. On the bare metal chassis details page, click Actions > Delete.

Results

Note: Deleting bare metal chassis will also delete bare metal instances created from these bare metal chassis. Proceed with caution.

Bare Metal Instance

New Bare Metal Instance

Procedure

  1. In the navigation pane, choose Inventory > Bare Metal Management.
  2. Select the target bare metal chassis.
  3. On the bare metal chassis details page, click Actions > New Bare Metal Instance.
  4. In the New Bare Metal Instance dialog, set the following parameters to complete the basic information:
    • Name: Set a name for the bare metal instance.
    • Description: Optional. Enter a description.
    • Bare Metal Chassis: Displays the bare metal chassis.
    • Platform: Only Linux is supported.
    • Image: Select an image for installing the OS.
      Note:
      • ISO format only.
      • You need to upload the image to the standalone image storage in advance.
      • Supports both custom platform OS and mainstream Linux distributions, including RHEL/CentOS series, Debian/Ubuntu series, and SUSE/openSUSE series.
    • Bare Metal Template: Select a bare metal template to quickly generate pre-configured files for unattended batch OS installation. For more information, see Bare Metal Template.
    • Auto Overwrite Data: Choose whether to enable automatic data overwrite.
      Note:
      • When enabled, the original data will be automatically overwritten when bare metal instances are deployed.
      • Otherwise, the installation of operating systems may pause. You need to access the console to manually configure disks.
  5. Click Next.
  6. Set the following parameters to complete system and network configurations:

    You can configure system and network information for bare metal instances either individually or in batches.

    • Operating System: Displays the selected OS.
    • Username: Set a username. For batch configuration, default username is root.
    • Password: Set a password.
    • Network Device: Configure a business network for the bare metal instance.
      • Device Type: Choose NIC or NIC Bond.
      • NIC Bond Name: Set a name for the NIC bond, when selecting NIC bond as the device type.
      • NIC Bond Type: Select bond mode when selecting NIC bond as the device type. Options include Mode 1 (Active-Backup) and Mode 4 (LACP).
      • NIC: Select an NIC.
      • Distributed Port Group: Select a distributed port group.
  7. Review the configuration and click OK.

Bare Metal Instance Status Management

Bare metal instances have the following state and deployment status:
State Deployment Status
State includes:
  • Created
  • Powering on
  • Running
  • Stopped
  • Rebooting
  • Deleted
  • Error
  • Unknown
Deployment status includes:
  • Unprovisioned
  • Provisioning
  • Deployed

Delete a Bare Metal Instance

Before you begin

(Optional) The platform provides deletion protection for bare metal instances. You can define how resources are deleted by customizing the deletion policy in system parameters. By default, the platform adopts a never delete policy for bare metal instances. Deleted resources are first moved to the recycle bin and retained until you manually expunge them. For more information, see System Parameters.

Procedure

  1. In the navigation pane, choose Inventory > Bare Metal Management.
  2. Select the target bare metal instance.
  3. On the bare metal instance details page, click Actions > Move to Recycle Bin.
    To delete multiple bare metal instances at once, go to the Bare Metal Management tab of the data center details page. Select the bare metal instances that you want to delete, then click Bulk Action > Move to Recycle Bin.
    The delete button label changes based on the Bare Metal Instance Deletion Policy. When the deletion policy is set to immediate deletion, the button appears as "Delete". When the deletion policy is set to never delete, the button appears as "Move to Recycle Bin".
  4. In the confirmation dialog, acknowledge the risk and click OK.

Results

Deleting a bare metal instance also powers off related bare metal chassis, which might affect your business continuity. Proceed with caution.