Skip to content

Installing Proxmox VE on bare metal — the production-ready procedure

A production install of Proxmox VE — partitioning, repository selection, post-install hardening, and the verifications an MSP runs before the first guest boots.

Proxmox VE is a Debian-based KVM hypervisor with LXC, ZFS, a clustering layer, and a web UI bundled in. It is the most common “I want a small fleet of VMs without dealing with VMware” choice. This article is the install we run before a Proxmox node is allowed to host the first guest: ISO install with thought-through partitioning, repository fix, post-install hardening, and the smoke tests an MSP signs off against.

How to verify

Before you put the ISO on a USB stick, confirm the target host has the prerequisites — virtualization extensions enabled, an IPMI/BMC for headless access, and disks that will give you the layout you want.

# From a Linux workstation, verify the ISO
sha256sum proxmox-ve_8.x.iso
# Compare to the published value at https://www.proxmox.com/en/downloads

# On the candidate host (boot rescue or live media first)
egrep -c '(vmx|svm)' /proc/cpuinfo
lsblk -o NAME,SIZE,ROTA,MODEL
ipmitool mc info 2>/dev/null || echo "no IPMI; plan accordingly"

The lsblk output drives the partitioning decision — ZFS RAID-1 on two SSDs is the default we land on for small hosts; ZFS RAID-10 on four for larger ones. Don’t put data and OS on the same pool without thought.

What’s happening

The Proxmox VE ISO is a customized Debian installer. It lays down a Debian base, the kernel, KVM/QEMU, LXC, ZFS-on-Linux (or LVM if you choose), the cluster filesystem (pmxcfs — a FUSE filesystem backed by SQLite and synced via corosync), and the web UI (pveproxy plus the PHP-like Perl backend). On first boot, the box is a single-node Proxmox cluster of one, ready to be joined to peers via Proxmox cluster with corosync.

The default install adds the Proxmox enterprise apt repository, which requires a paid subscription. The first thing every production install does is swap that for the no-subscription repository — same packages, with the trade-off that you don’t get notified of breaking changes ahead of time.

The procedure

  1. Write the ISO, boot it, choose the install target. On the partitioning screen, pick ZFS RAID-1 if you have two matched disks; choose ext4 only if you have a single disk and accept the no-redundancy outcome. Set hdsize to less than the full disk — leaving 50-100 GiB unallocated is what lets you do online disk replacement later if a member fails.

  2. Network and hostname. Pick a fully-qualified hostname (pve01.dc1.example.com) on the management network. Use a static IP for the management interface; Proxmox does not enjoy DHCP for the host. The web UI binds to port 8006 on every interface — plan how you’ll restrict it later.

  3. First boot — fix the apt repositories. The pve-enterprise list will spam errors; either subscribe or swap to the community repo:

    # Disable the enterprise repo
    sudo sed -i 's/^/# /' /etc/apt/sources.list.d/pve-enterprise.list
    
    # Add the no-subscription repo
    echo 'deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription' | \
      sudo tee /etc/apt/sources.list.d/pve-no-sub.list
    
    # Also the no-sub Ceph repo if you plan to use Ceph
    sudo apt update && sudo apt full-upgrade -y
    sudo reboot
  4. Suppress the subscription nag (cosmetic, but every operator asks). Add a small patch script that runs after pve-manager package upgrades — there are well-known one-liners; document that you did it.

  5. Pick a storage layout for guests. The install creates a local storage (ISO/template/backup on the root) and either local-lvm (if you picked LVM) or local-zfs (if ZFS). On a multi-disk host, add a second pool for guest disks so OS and guest data have separate failure domains:

    # ZFS example — second pair of mirrored disks for guests
    sudo zpool create -o ashift=12 vmpool mirror /dev/disk/by-id/wwn-... /dev/disk/by-id/wwn-...
    pvesm add zfspool vmpool --pool vmpool --content images,rootdir
    pvesm status
  6. Networking — bond + VLAN bridge, not just a flat bridge. Production hosts almost always have two NICs and want VLAN trunking. The Proxmox web UI builds it; the resulting /etc/network/interfaces should look like:

    auto bond0
    iface bond0 inet manual
        bond-slaves eno1 eno2
        bond-miimon 100
        bond-mode 802.3ad
        bond-xmit-hash-policy layer2+3
    
    auto vmbr0
    iface vmbr0 inet static
        address 10.0.10.21/24
        gateway 10.0.10.1
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 10-50
  7. Lock down the web UI. Bind pveproxy to the management network only, fronting it with a firewall rule. Add TLS via Let’s Encrypt or your internal PKI. Set up an authentication realm — local PAM works, LDAP/AD integrates cleanly. Create a non-root operator account; reserve root@pam for emergency.

  8. Smoke test. Create a small Debian or Ubuntu VM via the web UI, ensure it boots, ensure cloud-init seeding works (you set up a cloud-init image in step 5), ensure qm migrate to a second node works once the cluster is formed.

Common pitfalls

  • Booting the ISO on a host with secure boot enabled can fail silently; check firmware before troubleshooting the installer.
  • The default partitioning eats the whole disk if you don’t change hdsize — replacing a disk months later is awkward when there’s no slack on the new device.
  • The pve-enterprise apt errors on every apt update are an annoyance, not a bug — the install is designed to remind you to subscribe; address it on day one.
  • Leaving root@pam reachable from the internet with password auth is how most public Proxmox hosts get compromised; restrict by firewall, use 2FA, and prefer SSH key auth on the underlying Debian.
  • ZFS on a host with less than 16 GiB RAM is feasible but tight — the ARC needs RAM, and the OOM killer doesn’t understand ZFS’s memory accounting; set zfs_arc_max explicitly.

Stack Harbor stands up Proxmox nodes from a documented build sheet — the ZFS layout, the network bond, the repo fix, the firewall rules, the operator users, the backup job to a Proxmox Backup Server target. The point is that any Proxmox host can be rebuilt from scratch in under an hour. Clients running ad-hoc Proxmox installs get that operating model when they move onto Managed Operations.