Riggen_HomeLab_PlanForIT_4 - itnett/FTD02H-N GitHub Wiki
Here is a step-by-step installation guide for setting up your Proxmox environment on your hardware, based on the plans we discussed earlier. This guide will walk you through the BIOS configuration, initial Proxmox installation, disk setup, and network configuration to optimize your lab environment.
1. BIOS Configuration:
- 
Enter BIOS Setup:
- Power on your system and press the 
DELkey repeatedly to enter the BIOS setup screen. 
 - Power on your system and press the 
 - 
Enable UEFI Boot Mode:
- Go to the 
Boottab and set the boot mode toUEFIto ensure compatibility with modern operating systems like Proxmox. 
 - Go to the 
 - 
Configure M.2 Settings:
- Navigate to 
Advanced > PCI Subsystem Settings. - Ensure the M.2 slot is set to 
PCIe mode(this is for your NVMe SSD). 
 - Navigate to 
 - 
Set Boot Priority:
- Go to 
Boot > Boot Priority Orderand set the USB drive with the Proxmox ISO as the first boot device. 
 - Go to 
 - 
Enable Virtualization:
- Go to 
Advanced > CPU Configurationand enableIntel Virtualization Technology(VT-x) andIntel VT-dif available. 
 - Go to 
 - 
Save Changes and Exit:
- Press 
F10to save and exit the BIOS. 
 - Press 
 
2. Install Proxmox VE:
- 
Boot from USB:
- Insert the USB drive containing the Proxmox VE ISO and boot from it. The system will start the Proxmox installer.
 
 - 
Select Install Proxmox VE:
- Choose 
Install Proxmox VEfrom the boot menu. 
 - Choose 
 - 
Agree to the License Agreement:
- Read and accept the license terms.
 
 - 
Choose the Target Hard Disk:
- Select your 1TB M.2 NVMe SSD for the installation.
 - Custom Partitioning:
- Opt for 
Advanced Optionsduring the installation to create custom partitions:- EFI Partition: 512 MiB
 - LVM Partition for Proxmox: Allocate 120 GiB to Proxmox installation.
 - L2ARC Cache: Create a 50 GiB partition for the L2ARC cache.
 - SLOG Partition: Create a 25 GiB partition for the SLOG.
 - Swap Partition: Allocate 16 GiB for swap space.
 
 
 - Opt for 
 
 - 
Configure Network:
- Set the management network interface (typically 
vmbr0):- IP Address: Assign a static IP (e.g., 
192.168.0.100). - Gateway: Set your default gateway (e.g., 
192.168.0.1). - DNS Server: Set the DNS server (e.g., 
8.8.8.8). 
 - IP Address: Assign a static IP (e.g., 
 
 - Set the management network interface (typically 
 - 
Complete Installation:
- Set the root password and email address for administrative purposes.
 - Confirm installation and allow the system to complete.
 
 
3. Disk Configuration in Proxmox:
- 
Set Up ZFS Pools:
- After installation, access the Proxmox web interface by navigating to 
https://<your-proxmox-ip>:8006. 
 - After installation, access the Proxmox web interface by navigating to 
 - 
Create ZFS Pools for SSDs:
- zpool_vm:
- Use 
2x 1.8 TB SSDsin a ZFS RAID1 (mirror) configuration for VM storage. - Allocate only 50% of each SSD for the 
zpool_vmto leave space for future uses. 
 - Use 
 - zpool_image:
- Use the 
500 GB SSDas a ZFS pool dedicated for ISOs, templates, and backup images. 
 - Use the 
 
 - zpool_vm:
 - 
Set Up L2ARC and SLOG:
- Assign the 
L2ARCandSLOGpartitions on the M.2 SSD to the ZFS pools:zpool_vm→ L2ARC: 50 GiB, SLOG: 25 GiB.
 - Configure these via the Proxmox command line or web interface under 
Datacenter > Storage. 
 - Assign the 
 
4. Network Configuration:
- 
Set Up Network Bridges:
- Use the Proxmox GUI or SSH to configure additional network bridges:
 - vmbr0:
- Attached to the onboard Ethernet port, used for management and internet access (
192.168.0.100/24). 
 - Attached to the onboard Ethernet port, used for management and internet access (
 - vmbr1, vmbr2, vmbr3:
- Use for pfSense WAN/LAN interfaces and other VLANs as per your lab requirements.
 
 
 - 
Configure VLANs:
- Use 
pfSenseVMs to set up and manage VLANs, providing isolation and network segmentation. 
 - Use 
 
5. Backup Configuration:
- 
Backup Proxmox to SATA Pool:
- Create a simple backup script or use the Proxmox backup utility to periodically back up your Proxmox configuration to the 4TB SATA pool.
 - Store ISO images and templates also on the 
zpool_image. 
 - 
Create Bootable Backup:
- Install a minimal Debian or Proxmox system on the 2x 4TB SATA drives. This allows for a backup bootable environment in case the M.2 SSD fails.
 
 
6. Optimize Proxmox Configuration:
- 
Memory and Swap Usage:
- Ensure proper memory allocation settings in 
/etc/vz/vz.confor using the Proxmox web GUI. - Enable swap usage on the M.2 SSD partition (16 GiB swap).
 
 - Ensure proper memory allocation settings in 
 - 
Over-Provisioning of Memory:
- Use Proxmox’s overcommit features to allocate more virtual memory than physically available, optimizing for your workloads.
 
 
7. Post-Installation Tasks:
- 
Update Proxmox:
- Run 
apt update && apt full-upgradeto bring Proxmox and its components to the latest version. 
 - Run 
 - 
Install Additional Tools:
- Add useful packages like 
iftop,htop, andzfsutils-linux. 
 - Add useful packages like 
 
Summary Table for Disk Partitioning:
| Disk | Usage | Partition Size | Purpose | 
|---|---|---|---|
| M.2 NVMe 1TB | EFI Partition | 512 MiB | Boot partition | 
| LVM for Proxmox OS | 120 GiB | Proxmox installation | |
| L2ARC Cache (zpool_vm) | 50 GiB | ZFS L2ARC for VM storage pool | |
| SLOG (zpool_vm) | 25 GiB | ZFS SLOG for VM storage pool | |
| Swap | 16 GiB | Swap space | |
| Unpartitioned space | ~788 GiB | Reserved for future use or expansion | |
| 2x 1.8 TB SSD | ZFS Pool (zpool_vm) | 
50% of each SSD | Mirror for VM storage (RAID1) | 
| 500 GB SSD | ZFS Pool (zpool_image) | 
500 GB | Storage for ISO images, templates, backups | 
This configuration ensures maximum flexibility, performance, and future-proofing while making full use of your existing hardware. Follow these steps, and you'll have your Proxmox lab environment up and running with optimal settings.