meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| vm:proxmox [2020/04/22 11:50] – niziak | vm:proxmox [2025/02/07 20:09] (current) – niziak | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Upgrading ===== | ||
| + | |||
| + | Always upgrade with '' | ||
| + | <code bash>apt update && apt dist-upgrade</ | ||
| + | |||
| ===== Installation ===== | ===== Installation ===== | ||
| + | * BIOS: | ||
| + | * Enable VT | ||
| + | * Enable IOMMU | ||
| * Choose ZFS | * Choose ZFS | ||
| * Leave some free space on HDD for swap partition | * Leave some free space on HDD for swap partition | ||
| - | * Click " | + | * Click " |
| + | * Installer 6.1-2 BUG: On system with 2x 2TB HDDs, Proxmox installer on ZFS RAID1 propose only '' | ||
| * Do not create swap on ZFS zvol! | * Do not create swap on ZFS zvol! | ||
| * reboot | * reboot | ||
| * manually configure | * manually configure | ||
| + | * check if it is still necessary. Perhaps enabling '' | ||
| * https:// | * https:// | ||
| + | |||
| + | ==== issues ==== | ||
| + | |||
| + | === initramfs === | ||
| + | Proxmox installed on ZFS RADI1. After reboot, Proxmox boots into initramfs. | ||
| + | From initramfs console: | ||
| + | <code bash> | ||
| + | zfs list | ||
| + | Try running '/ | ||
| + | </ | ||
| + | REASON: no root cmdline, because UEFI boot was used instead of grub loader. | ||
| + | SOLUTION: force legacy boot in BIOS | ||
| + | OR TRY: | ||
| + | <code bash> | ||
| + | echo -n " rootdelay=5" | ||
| + | pve-efiboot-tool refresh | ||
| + | </ | ||
| + | |||
| + | === initramfs === | ||
| + | |||
| + | REASON: ZFS invoked too soon: [[https:// | ||
| + | <code bash> | ||
| + | modprobe zfs | ||
| + | zpool import -N -f rpool | ||
| + | exit | ||
| + | </ | ||
| + | |||
| | | ||
| ==== post-installation tips ==== | ==== post-installation tips ==== | ||
| + | * set MAC address prefix: `Datacenter` -> `Options`. Locally Administered Address Ranges are: < | ||
| + | x6-xx-xx-xx-xx-xx | ||
| + | xA-xx-xx-xx-xx-xx | ||
| + | xE-xx-xx-xx-xx-xx | ||
| + | </ | ||
| + | * Speedup migrations to set unencrypted network traffic (in secured networks!): <file / | ||
| + | migration: network=first_cluster_host_ip/ | ||
| * disable subscription repo:\\ <code bash>sed -i.bak 's|deb https:// | * disable subscription repo:\\ <code bash>sed -i.bak 's|deb https:// | ||
| * add no subscription repo: <code bash> | * add no subscription repo: <code bash> | ||
| - | * upgrade | + | * <code bash> |
| - | * SMART disk monitoring\\ <file | /etc/smard.conf> | + | * <code bash> |
| + | * <code bash> | ||
| + | * add Debian '' | ||
| + | * <code bash>apt install intel-microcode amd64-microcode</ | ||
| + | * Update grub config: <file | / | ||
| + | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
| + | </ | ||
| + | * SMART disk monitoring\\ <file | /etc/smartd.conf> | ||
| # | # | ||
| DEVICESCAN -a -o on -S on -s (S/ | DEVICESCAN -a -o on -S on -s (S/ | ||
| - | </ | + | </file>< |
| * More here: [[https:// | * More here: [[https:// | ||
| - | * (NOT NEEDED) | + | * Activate ZFS e-mail notification [[https:// |
| + | * <code bash> | ||
| * Use own internal CA signed cert for Web UI: [[https:// | * Use own internal CA signed cert for Web UI: [[https:// | ||
| * For clustering Proxmox is using own self signed certs! Do not replace them! | * For clustering Proxmox is using own self signed certs! Do not replace them! | ||
| - | + | * Postfix relay:< | |
| + | wget https:// | ||
| + | bash ez_proxmox_mail_configurator.sh | ||
| + | </ | ||
| + | * Assign admin permissions: | ||
| + | * For HDDs storage, limit Proxmox operation speed to 100000KiB: <code bash> | ||
| + | * repeat in for '' | ||
| + | * to remove limit: <code bash> | ||
| + | * For HDDs storage - force volume big block size. OpenZFS default was 8k. With OpenZFS 2.2 it was changed to 16k. But to reduce fragmentation and HDD seeks - set it to 128k <code bash> | ||
| + | * Enable IOMMU | ||
| + | * in `GRUB_CMDLINE_LINUX_DEFAULT` and add kernel parameter `intel_iommu=on` or `amd_iommu=on` | ||
| + | * <file / | ||
| + | vfio | ||
| + | vfio_iommu_type1 | ||
| + | vfio_pci | ||
| + | vfio_virqfd | ||
| + | </ | ||