From 0f0bcce6d2edd27bd88b91b99e6f1b77fd8282c9 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Tue, 18 Aug 2026 20:25:55 +0200 Subject: [PATCH] docs: remove apt repo fixes and rely on proxmox helper script --- BOOTSTRAP.md | 12 ++++++++---- opentofu/host-layer/main.tf | 7 ------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md index c675a2e..b323994 100644 --- a/BOOTSTRAP.md +++ b/BOOTSTRAP.md @@ -6,14 +6,18 @@ This repository is designed to be fully automated once bootstrapped. We separate ## 1. Apply the Host Layer -The `host-layer` automatically configures hardware-specific requirements on your fresh Proxmox install (such as setting up the ZFS pool, disabling NIC offloading for stability, and fixing apt repositories). +Before deploying VMs, you need to prepare the Proxmox host. -1. Clone this repository to your laptop. -2. Run the host-layer apply script using Docker (requires Docker installed): +1. **Run Proxmox Post-Install Script**: Log into your fresh Proxmox node's shell and run the community `proxmox-ve-helper` post-install script to fix the APT repositories and remove the nag screen: + ```bash + bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/post-pve-install.sh)" + ``` +2. Clone this repository to your laptop. +3. Run the host-layer apply script using Docker (requires Docker installed). The script will automatically configure the remaining hardware-specific requirements (like the ZFS pool, NIC offloading for stability, and the laptop lid switch): ```bash ./scripts/apply-host-layer.sh ``` -3. OpenTofu will prompt you for variables like the target `node_ip`, your `ssh_user`, and the `data_disk_id` (e.g. `nvme-eui...`) to format as ZFS. +4. OpenTofu will prompt you for variables like the target `node_ip`, your `ssh_user`, and the `data_disk_id` (e.g. `nvme-eui...`) to format as ZFS. ## 2. Prepare the Golden Image diff --git a/opentofu/host-layer/main.tf b/opentofu/host-layer/main.tf index b12c11b..681858e 100644 --- a/opentofu/host-layer/main.tf +++ b/opentofu/host-layer/main.tf @@ -22,13 +22,6 @@ resource "null_resource" "bare_metal_setup" { inline = [ "set -euo pipefail", - "echo '==> Applying post-pve-install fixes (fixing repos)...'", - "rm -f /etc/apt/sources.list.d/pve-enterprise.list", - "echo 'deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription' > /etc/apt/sources.list.d/pve-no-subscription.list", - - "echo '==> Disabling the No Valid Subscription nag screen...'", - "sed -i.bak \"s/data.status !== 'Active'/false/g\" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js", - "systemctl restart pveproxy", "echo '==> Setting laptop lid switch to ignore (prevents sleeping when closed)...'", "sed -i 's/^#\\?HandleLidSwitch=.*/HandleLidSwitch=ignore/' /etc/systemd/logind.conf",