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.

Prerequisites

  • 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.

Archives

Download Document Archives

Download

Already filled the basic info?Click here.

Enter at least 2 characters.
Cannot be empty.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

An email with a verification code will be sent to you. Make sure the address you provided is valid and correct.

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.
同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
ZStack Training and Certification
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
Request Trial
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Submit successfully.

We'll connect soon.

Thank you for using ZStack products and services.