This repository contains two scripts:
- hetzner-debian12-zfs-setup.sh: Installs Debian 12 with ZFS as the root file system on a Hetzner VPS.
- proxmox_install.sh: Installs Proxmox Virtual Environment (VE) on Debian 12.
Script: hetzner-debian12-zfs-setup.sh
Description: This script automates the setup of Debian 12 with ZFS root on Hetzner VPS. It prepares ZFS pools, partitions disks, and installs Debian 12 on the root ZFS filesystem.
- In the Hetzner rescue system:
- Set the OS to
Linux
. - Add your SSH key.
- Click "Activate rescue system"
- Set the OS to
- SSH into the console after reboot and run the script:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/b-milescu/ai-ops/refs/heads/main/hetzner-debian12-zfs-setup.sh)"
- Follow prompts to configure:
- Hostname
- ZFS ARC cache size
- Disk selections for ZFS pools
- Swap size and free tail space
- Root password
- Encryption options for the root pool
Note: Run the script in a screen
session to prevent disconnections:
screen -dmS zfs
screen -r zfs
Scripts: proxmox_install_part1.sh
and proxmox_install_part2.sh
Description: The will install installs Proxmox VE on Debian 12, adding Proxmox repositories, installing necessary packages, and configuring the environment.
- SSH into your Debian 12 server.
- Run the first script:
After reboot run the second script:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/b-milescu/ai-ops/refs/heads/main/proxmox_install_part1.sh)"
bash -c "$(curl -fsSL https://raw.githubusercontent.com/b-milescu/ai-ops/refs/heads/main/proxmox_install_part2.sh)"
- The scripts will:
- Add Proxmox repository and update the system.
- Install the Proxmox kernel and required packages (Proxmox VE, Postfix, Open-iSCSI, and Chrony).
- Reboot automatically after major installation steps.
- Data Loss: Running
hetzner-debian12-zfs-setup.sh
will erase all data on the selected disk. - Internet Connection: Both scripts require an active internet connection to download packages.