Installing Harvester on Bare Metal
local graph
Chapter 4: Installing Harvester On Bare Metal
Section titled “Chapter 4: Installing Harvester On Bare Metal”Installing Harvester on bare metal is where all the planning turns into something real. This is the point where abstract capacity numbers, hardware datasheets, and network diagrams become a working hyperconverged platform that can host your production workloads. To get reliable results, you need a disciplined approach that covers hardware readiness, firmware configuration, network design, and a clear choice between interactive and automated installation methods.
Harvester is packaged as a bootable appliance ISO that installs an immutable SLE Micro based operating system with the Harvester stack on top. You can deploy it by booting from ISO or USB, or by using PXE and iPXE for automated network installation. The same installer engine is used in each case, and it reads a configuration file that describes how to provision the node and how to join or create a cluster.
This section will walk through how to prepare bare metal hosts so that the installer runs cleanly, how to perform the interactive ISO based installation and bootstrap the first cluster node, how to scale out with automated installation via config files and PXE, and how to handle air gapped deployments where internet access is constrained or completely absent. By the end, you should have a mental model of what happens at each step and a set of reliable patterns you can apply on your own hardware.
4.1: Preparing Bare Metal Hosts, Firmware And Network For Harvester
Section titled “4.1: Preparing Bare Metal Hosts, Firmware And Network For Harvester”Good Harvester installations start with hardware and firmware that meet the product’s expectations. The official requirements for current Harvester releases specify x86_64 or ARM64 CPUs with hardware virtualization support, 8 cores minimum for development and testing and 16 or more cores for production, 32 GB RAM minimum and 64 GB or more for production, and at least 250 GB of local disk per node, with 500 GB to 1 TB recommended. Disk performance requirements are explicit as well, with a recommendation of at least 5000 random IOPS per disk on SSD or NVMe, and 10 Gbps networking for production clusters, with VLAN capable switching for multi network topologies.
These figures are not generous. They are aligned with what Harvester and Longhorn actually need in practice. A management node runs etcd, the Kubernetes control plane, and Harvester controllers, all of which benefit from CPU and memory headroom and fast storage. Under sizing any of these makes the installer unhappy and the running cluster worse. The installer includes preflight checks that validate these requirements, and if you run below the recommended minimums, you will see warnings during installation or a hard failure if checks are set to be strict.
At the firmware level, hardware assisted virtualization must be enabled. On Intel platforms that means VT x and usually VT d for IOMMU support. On AMD, it means SVM and related IOMMU options. These settings live under CPU or security sections of server BIOS menus depending on the vendor, and they are not always enabled by default. Documentation and vendor guides for enabling virtualization in BIOS and UEFI all converge on the same pattern: boot into firmware setup, find virtualization related settings, enable them for both CPU and IOMMU features, save, and reboot.
UEFI firmware is the standard for modern servers, and Harvester supports UEFI and secure boot. However, a Harvester knowledge base article describes a specific scenario where secure boot can prevent the ISO from booting because of SBAT revocations that block older shim bootloaders. In those cases, the recommended workaround is to disable secure boot, install Harvester, then re enable secure boot so that the installed system, which contains a newer shim can boot successfully. The main takeaway is that you should verify UEFI boot order and secure boot behavior with your Harvester ISO before you start mass provisioning.
Storage controllers need attention as well. Harvester and Longhorn prefer direct access to local disks. Many support matrices state that only local disks or hardware RAID are officially supported, and that software RAID stacks layered under the OS are not. In practice, this means configuring RAID controllers in HBA or JBOD mode when possible, or using simple RAID1 or RAID10 volumes for the system disk while exposing additional disks as individual volumes for Longhorn. You should avoid complex RAID levels that hide disk health conditions or add unpredictable write caching behavior, because Longhorn expects relatively transparent block devices.
On the network side, Harvester expects at least 1 Gbps Ethernet for test environments and 10 Gbps for production, with VLAN capable switches and trunking support. Before you start installing, you should have a clear plan for: which NICs on each host will carry management traffic, which will carry VM traffic, which VLANs will be used for these purposes, which IP ranges and subnets are assigned to each VLAN, which default gateway and DNS servers will be used, and what NTP servers will provide time synchronization.
Harvester relies heavily on correct time. Air gapped documentation emphasizes the need for a reliable NTP server because Kubernetes and etcd are sensitive to large clock skews between nodes. If time is wrong or drifts, you will hit confusing certificate errors, pod scheduling problems, or even etcd data consistency issues. Configure NTP in your firmware where supported, and also configure it in the Harvester configuration file so that the OS uses the same trusted sources.
One of the most common sources of frustration during installation is misconfigured network boot or management interfaces. If you plan to use PXE or UEFI HTTP boot later, make sure your NIC firmware is updated and that the correct boot options are enabled. SUSE PXE documentation for Harvester describes using iPXE and UEFI HTTP boot where the NIC firmware directly downloads an iPXE binary over HTTP rather than relying on legacy PXE. This approach is more flexible but depends on firmware support.
Finally, prepare the operating environment around the servers. You should have a workstation that can download the Harvester ISO and verify its checksum, a management network that can reach IPMI or BMC interfaces on the servers, and access to the out of band console. You will use that console for the very first installs, even if you later standardize on unattended PXE. Validated firmware, sufficient hardware resources, a clear disk plan, and a defined network scheme give you a stable platform on which the installer can do its job without unpleasant surprises.
4.2: Interactive Install Using ISO Or USB And First Cluster Bootstrap
Section titled “4.2: Interactive Install Using ISO Or USB And First Cluster Bootstrap”The interactive ISO based installation is the most approachable way to get Harvester running, particularly for the first node of a new cluster. Harvester ships as a bootable appliance ISO, and official installation instructions present a straightforward flow. You download the ISO, write it to a USB stick or mount it via a virtual media interface in your BMC, boot the server, and select the Harvester Installer entry from the boot menu.
Before you boot servers in a data center, validate your ISO on a workstation. Corrupt images or half finished downloads cause confusing installer failures, and checking the checksum is trivial.
# Verify ISO checksum on an admin workstationsha256sum harvester-v1.6.0-amd64.iso
# Compare the output with the SHA256 value published on the Harvester release page# If they match, write the ISO to a USB device (double check the device path)sudo dd if=harvester-v1.6.0-amd64.iso of=/dev/sdX bs=4M status=progress oflag=directsyncOnce the ISO is available as a boot device, power on the server, enter the boot menu if needed, and select the appropriate optical, USB, or virtual media device. The Harvester boot menu appears and you choose the installer entry. After the kernel and initrd load, the harvester-installer program starts on the console.
The interactive installer walks through several screens. The exact layout changes slightly between releases, but the flow is consistent. First, the installer performs preflight checks. These validate CPU core counts, memory size, disk presence, and network connectivity. If hardware does not meet production requirements, you may be allowed to proceed with warnings, or the install may stop, depending on parameters. The installer documentation notes that these checks run in both ISO and PXE installs, and that automatic installs can optionally skip them with a kernel parameter.
Next, you choose whether this node will create a new Harvester cluster or join an existing one. For the very first node you must choose create. The installer will ask for a cluster virtual IP address that will serve as the main entry point for the Harvester UI and API. It will also collect a strong password for the admin user and may prompt for SSH keys for the rancher OS user if you want direct shell access later.
Disk selection is a crucial step. You choose which disk to use as the system disk where SLE Micro and Harvester will be installed. On systems with multiple disks, you can select a separate data disk that Longhorn will use for storage. If you leave this blank, Longhorn may use the system disk, something that is acceptable in small labs but not recommended for production. Network selection follows, where you pick the management interface, configure DHCP or static IP settings, and provide DNS and default gateway details. The installer UI mirrors the configuration keys in the Harvester configuration file, so once you have done an interactive install, the structure of automated config files will feel familiar.
Even during an interactive installation you can provide a configuration file to seed many of these values. The Harvester configuration documentation shows that you can attach a config.yaml via virtual media or a secondary ISO and let the installer prepopulate settings such as hostname, DNS, NTP servers, install device, management interface, and addons. The installer still shows you the fields, but you start from a known baseline rather than a blank form, which reduces errors.
After you confirm the configuration, the installer writes the OS image to the system disk, configures the bootloader, sets up RKE2 and Longhorn, preloads container images, and reboots into the new Harvester environment. On first boot, the console shows the node hostname, management IP address, and the URL of the Harvester UI.
At this point, you have a single node Harvester cluster. For labs, a single node may be acceptable, and the documentation includes a specific path for deploying a single node cluster with clear warnings about its limitations. For anything that should survive host failures, you need to add at least two more nodes so that etcd can reach quorum and Longhorn can schedule replicas on multiple machines.
Adding more nodes interactively follows the same pattern. You boot the ISO, run the installer, and this time select the option to join an existing cluster. The installer will ask for the server_url of the cluster, usually https://
Even if your long term goal is a fully automated PXE based install, it is worth doing the very first node interactively. That run exposes you to the installer’s assumptions and helps you confirm that your hardware, firmware, and network are all in a good state. Many operators start with a single interactive installation, then extract the resulting configuration into a config.yaml file that becomes the template for unattended installs. There are test cases and community guides that describe ways to capture or generate such config files based on an existing installation.
4.3: Automated Install Using Config Files And PXE Or Network Boot
Section titled “4.3: Automated Install Using Config Files And PXE Or Network Boot”Once you are happy with the manual flow, it is natural to automate Harvester installation so that adding new nodes or clusters does not involve clicking through installer screens. Harvester is built for this. The same harvester-installer program that powers ISO installs can run in automatic mode using a YAML configuration file that describes OS settings, install devices, networking, cluster mode, and optional addons. When you boot via PXE or UEFI HTTP with specific kernel parameters, the installer skips the interactive UI, downloads the config file, applies it, and provisions the node.
The core of automated installation is the Harvester configuration file. The official documentation provides a detailed example that shows the overall structure. Here is a simplified version that captures the elements you will use almost every time.
scheme_version: 1server_url: https://10.50.0.100:443token: "myclustersecret"os: hostname: hv-node-01 ssh_authorized_keys: - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFEXAMPLEKEY admin@laptop" dns_nameservers: - 10.50.0.10 - 10.50.0.11 ntp_servers: - 0.suse.pool.ntp.org - 1.suse.pool.ntp.org labels: topology.kubernetes.io/zone: zone-ainstall: mode: create device: /dev/nvme0n1 data_disk: /dev/nvme1n1 force_efi: true vip: 10.50.0.100 vip_mode: static management_interface: method: static interfaces: - name: ens5f0 hwAddr: "3C:52:82:AA:BB:CC" ip: 10.50.0.11 subnet_mask: 255.255.255.0 gateway: 10.50.0.1 cluster_pod_cidr: 10.52.0.0/16 cluster_service_cidr: 10.53.0.0/16 silent: true poweroff: falsesystem_settings: auto-disk-provision-paths: "/dev/nvme1n1"This file instructs the installer to create a new cluster, install onto /dev/nvme0n1, use /dev/nvme1n1 as the first Longhorn data disk, configure a static management IP on a given interface, set cluster network CIDRs, and set up a static VIP for the API and UI. SSH keys, DNS, NTP, and node labels are applied at the OS level. The full configuration reference includes many more options, such as module loading, sysctls, additional file writes, after install commands, HTTP proxy variables, and optional addons like monitoring and logging.
In ISO based installs, you can place this configuration on a separate volume and point the installer at it. For full automation, you usually host the config file on an HTTP server and tell the PXE boot process where to find it. The harvester-installer repository and PXE installation documentation explain how this works. When you boot via PXE, you pass harvester.install.automatic=true on the kernel command line and provide harvester.install.config_url=http://…/config.yaml. The installer retrieves that file, validates it, runs preflight checks, and then provisions the node without presenting the interactive UI.
The recommended approach for network boot is to use iPXE or UEFI HTTP boot. On the iPXE side, you serve the kernel and initrd from an HTTP server and provide an iPXE script that sets the correct kernel parameters. The official PXE documentation gives a canonical script that looks like this in create mode.
#!ipxeset harvester_version v1.6.0kernel harvester-${harvester_version}-vmlinuz \ initrd=harvester-${harvester_version}-initrd \ ip=dhcp net.ifnames=1 rd.cos.disable rd.noverifyssl \ console=tty1 \ root=live:http://10.100.0.10/harvester/rootfs.squashfs \ harvester.install.automatic=true \ harvester.install.mode=create \ harvester.install.config_url=http://10.100.0.10/harvester/config-create.yamlinitrd harvester-${harvester_version}-initrdbootThe key elements here are the root=live: parameter that points to the root filesystem, the harvester.install.automatic=true flag that suppresses the interactive UI, and the harvester.install.config_url that points to your configuration file. The harvester.install.mode parameter can be set to create or join, and kernel parameters override anything defined in the configuration file if both are present.
A typical automated install architecture uses a DHCP server that hands out addresses and points clients at an iPXE or UEFI HTTP entry point, a TFTP or HTTP server that serves the initial bootloader and iPXE binary, an HTTP server that hosts kernel, initrd, root filesystem, and config files, and optionally a management system like MAAS, Foreman, or a custom automation stack that writes out config files dynamically. SUSE documentation includes Kea and ISC DHCP examples that map specific MAC addresses to different config URLs, so you can define which nodes install in create mode and which in join mode.
You can also mount the Harvester ISO and a second ISO containing a config.yaml file directly via a BMC for automation without PXE. A Harvester discussion in the Rancher Slack archives describes a pattern where a Redfish driven provisioning system attaches the Harvester ISO and an image containing cidata style config, then boots the host and lets Harvester read the configuration from that image during installation. This approach is attractive in environments where PXE is politically or technically difficult to introduce.
When using automated installs, pay particular attention to the token and server_url values. The token acts as a cluster secret or node token, and all nodes joining the same cluster must use a matching value. If these fields are wrong, nodes will install successfully but then fail to register with the cluster. The configuration reference calls out the exact semantics of tokens, and tools such as Rancher and Harvester UI expose the correct join token for you to reuse.
Another field that deserves deliberate attention is addons. Harvester can automatically install additional components such as monitoring and logging based on config content. Enabling these in the configuration file means that newly installed clusters start with those capabilities from day one, rather than relying on manual post installation steps. For regulated environments, capturing these choices in version controlled configuration files makes audit and repeatability much easier.
With a tested configuration file, a working PXE or UEFI HTTP setup, and a straightforward iPXE script, new Harvester nodes become a matter of powering on hardware and letting automation finish the job. That consistency is critical when you operate dozens or hundreds of nodes across data centers or edge locations.
4.4: Air Gapped Installation And Image Management
Section titled “4.4: Air Gapped Installation And Image Management”Air gapped environments raise the stakes for installation and image management because you cannot rely on public container registries or external time and name services. Harvester addresses part of this challenge by bundling all components needed to install and run the core platform into the ISO itself. Official documentation notes that the Harvester ISO contains all packages required to make the cluster work in an air gapped environment.
That does not mean the problem is solved entirely. Harvester itself may operate without external network access, but guest Kubernetes clusters or additional integrations such as Rancher, CSI drivers, and UI extensions often require images that are not baked into the ISO. The air gapped guide calls this out explicitly. A guest RKE2 cluster created via the Harvester node driver runs inside VMs and must pull its own images either from the internet or a private registry that you manage. The guide advises administrators to track RKE2 releases and pre pull required images into their private registry, aligning Harvester cloud provider and CSI driver versions with those releases.
Harvester in an air gapped setup typically combines several elements. First, you deploy the Harvester cluster itself using ISO or PXE, with HTTP proxy settings configured either during installation or in the Harvester settings after the fact, if you are using an internal proxy to reach a limited set of internet endpoints. The air gapped guide describes how to set http-proxy, https-proxy, and no-proxy values in the Harvester UI, and notes that Harvester automatically extends no-proxy with internal addresses to keep internal traffic functioning correctly.
Second, you stand up one or more private container registries inside the air gapped network. Rancher documentation on air gapped installs explains in detail how to download images on an internet connected system, save them as tar files, move them into the air gapped environment, and push them to your private registry. The pattern is simple and works well with Harvester too. Pull the images you need, save them, transfer them, and load or push them where Harvester or guest clusters can find them.
The Harvester air gapped guide gives a concrete example for the Rancher agent image used when importing Harvester clusters into Rancher. The flow is to run docker pull and docker save on a system with internet access, copy the tar file into the air gapped network, then run docker load on a Harvester node so that the image is available locally when Rancher attempts to connect.
# On an internet connected hostdocker pull rancher/rancher-agent:v2.9.0docker save rancher/rancher-agent:v2.9.0 -o rancher-agent-v2.9.0.tar# Transfer the tar file into the air gapped networkscp rancher-agent-v2.9.0.tar rancher@harvester-node-01:/tmp
# On the Harvester node (inside the air gapped environment)ssh rancher@harvester-node-01sudo -ictr images import /tmp/rancher-agent-v2.9.0.tarOn recent Harvester and RKE2 versions, containerd is the runtime, so ctr images import or crictl images are appropriate commands rather than docker load. RKE2 private registry documentation describes how containerd reads registry configuration from /etc/rancher/rke2/registries.yaml, and this mechanism is available to Harvester as well.
You can configure registry mirrors and authentication by placing a registries.yaml file on each node or by using the os.write_files and related options in the Harvester configuration file. This allows Harvester components and guest clusters to pull from your internal registry under stable hostnames rather than reaching out to docker.io or other public endpoints.
# Example registries.yaml for RKE2 and Harvestermirrors: "registry.internal.example.com": endpoint: - "https://registry.internal.example.com"configs: "registry.internal.example.com": auth: username: "harvester-registry" password: "S3cur3P4ssw0rd" tls: cert_file: "/etc/rancher/rke2/certs/registry.crt" key_file: "/etc/rancher/rke2/certs/registry.key" ca_file: "/etc/rancher/rke2/certs/ca.crt"With this file in place and referenced by RKE2, any container images that use registry.internal.example.com as their registry hostname will be pulled from your internal registry using mutual TLS and authentication instead of going out to the internet.
Harvester also has to handle UI extensions and Rancher integration in air gapped environments. When Rancher is deployed without internet access, it cannot reach the standard UI plugin catalog that hosts the Harvester extension. The Harvester air gapped documentation describes a workaround where you pull the rancher/ui-plugin-catalog image, push it to your private registry, then configure Rancher to use that registry and image as its extension catalog. You complement this with a Kubernetes secret in the cattle-ui-plugin-system namespace to store registry credentials.
apiVersion: v1kind: Secretmetadata: name: harvester-ui-registry-cred namespace: cattle-ui-plugin-systemtype: kubernetes.io/dockerconfigjsondata: .dockerconfigjson: BASE64_ENCODED_DOCKER_CONFIG_JSONOnce this is configured, Rancher can load the Harvester UI extension from your private registry instead of from the internet, and you can continue to manage Harvester clusters visually in an air gapped setting.
Time management is another critical part of the picture. The air gapped documentation calls out the importance of internal NTP servers because no external time sources are available. You need to deploy at least one reliable NTP server inside the restricted network and configure all Harvester nodes, guest clusters, and supporting systems to use it. If you have multiple network segments, plan carefully so that NTP traffic is allowed across the necessary firewalls.
Finally, you should think about long term image lifecycle in an air gapped Harvester environment. The set of images bundled in a specific ISO version is static. As you upgrade Harvester and RKE2, you need to update your private registries accordingly, pruning old tags and adding new ones to avoid wasting storage and to stay aligned with supported versions. Rancher’s guidance on publishing images to private registries and maintaining version maps is useful here, and the Harvester support matrix shows which RKE2, CSI, and CCM versions pair correctly with each Harvester release.
Operating Harvester in an air gapped environment is absolutely feasible, but it requires you to treat image management, private registries, and internal services such as DNS and NTP as first class design elements. The payoff is control over exactly what runs in your environment and the ability to deploy a fully featured HCI platform in locations with strict network controls or no internet access at all.