Inspired from a lot of Youtuber’s on how to deploy a Proxmox server, here is some notes either shameless copied from youtube or something I need in my environment.
I like to install Proxmox on a set of mirrored ZFS drives. Dont use cheap USB sticks. Although a high quality USB stick should be capable to run Proxmox. Maybe a SATA-Dom SSD on a stick kinda thing. Proxmox uses its boot drive to a lot of writes and reads. ESXi is more USB stick friendly because it runs everything in RAM.
- Switch Proxmox from Enterprise license to Unstable community license.
- Edit /etc/apt/sources.list and add the nosubscription repository:
- deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
deb http://ftp.debian.org/debian bookworm main contrib
deb http://ftp.debian.org/debian bookworm-updates main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
# security updates
deb http://security.debian.org/debian-security bookworm-security main contrib
Edit /etc/apt/sources.list.d/pve-enterprise.list.dpkg-dist to:
# deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
Run apt-get update
followed by apt dist-upgrade
Reboot the host by using shutdown -r now
Install pve-headers
apt install pve-headers-$(uname -r)
Fix the following error in terminal:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TERMINAL = "iTerm2",
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Run
dpkg-reconfigure locales
Select at least one locale, and rebuild that. In my case I just choose:
C.UTF-8 da_DK da_DK.UTF-8 en_DK en_DK.ISO-8859-15 en_DK.UTF-8 en_US en_US.ISO-8859-15 en_US.UTF-8
And next I choose en_US.UTF-8 as the default locale.
The following guide is copied from this reddit post
(Guide) Installing Proxmox Root on ZFS with different capacity drives
Purpose of this post:
- To provide an easy to find simple guide for people surfing the web
- To receive feedback from the community, since I’m by no means an expert
Guide:
- Install Proxmox on the lowest capacity disk on zfs (RAID0)
- Copy the partition table, reissue GUIDs and attach the ZFS partition
# sgdisk <existing boot disk> -R <new disk>
# sgdisk -G <new disk>
# zpool attach -f rpool <existing zfs partition> <new zfs partition>
- Before continuing make sure the resilvering process has finished
# zpool status -v
- Run the following commands
# proxmox-boot-tool format <new disk's ESP>
# proxmox-boot-tool init <new disk's ESP>
You’ve now successfully added a partition to the zfs rpool
The pool will be RAID 1 mirrored
Additional information:
- The process is very similar to replacing a bootable device
- I recommended reading about the Proxmox partitioning scheme
- Information about zpool attach and how it transforms the raidz configuration
Example:
# sgdisk /dev/sda -R /dev/sdb
# sgdisk -G /dev/sdb
# zpool attach -f rpool /dev/disk/by-id/ata-Samsung_SSD_860_PRO_256GB_42654364K-part3 /dev/disk/by-id/ata-Samsung_SSD_860_PRO_1TB_65433654R-part3
# zpool status -v
# proxmox-boot-tool format /dev/sdb2
# proxmox-boot-tool init /dev/sdb2
Be First to Comment