8 Commits
dev ... main

Author SHA1 Message Date
Thorsten Spille
a11c458eb2 Merge pull request #31 from bashclub/dev
Dev
2025-09-15 19:14:40 +02:00
Thorsten Spille
305987a6f9 Fix no-subscription-hack 2025-07-28 13:48:56 +02:00
Thorsten Spille
cbef6ed38b optimized no subscription hack 2025-07-21 23:49:39 +02:00
Thorsten Spille
c6bc651b34 Mutliple fixexs and enhancements 2025-07-21 23:44:42 +02:00
Thorsten Spille
e0e9b49bf9 Merge pull request #27 from bashclub/dev
Update postinstall
2024-12-15 16:14:49 +01:00
Thorsten Spille
f271c7716b Merge pull request #25 from bashclub/dev
Update postinstall
2024-06-24 15:30:49 +02:00
Thorsten Spille
0b14d9c2c3 Update README.md
Fix for release
2024-06-23 21:44:52 +02:00
Thorsten Spille
603d1f6bc8 Merge pull request #24 from bashclub/dev
proxmox 8.2 postinstaller
2024-06-23 21:22:44 +02:00

View File

@@ -1,30 +1,50 @@
# proxmox-zfs-postinstall
This script installs and configures basic tools for running a Proxmox Server.
Following settings are made:
- Install and configure zfs-auto-snapshot
- Switch pve-enterprise/pve-no-subscription/pvetest repo
- Switch ceph repo between quincy/reef and enterprise/no-subscription/test or remove it
- Disable "No subscription message" in webinterface in no-subscription mode
- Add pve-enterprise subscription key
This script installs and configures essential and advanced tools for a new Proxmox Server (Version 8+), with ZFS storage. All settings are made interactively via Dialog/Whiptail.
> [!IMPORTANT]
> Please download the updated version of this script and re-run, if your Proxmox WebUI doesn't show up after update to 8.4.5 or 9.0.0 beta
## Features
- Configure ZFS ARC Cache (optimizes RAM usage for ZFS)
- Configure vm.swappiness (kernel swap behavior)
- Install and configure zfs-auto-snapshot (automatic ZFS snapshots, individually configurable)
- Switch between pve-enterprise, pve-no-subscription, pvetest repositories
- Switch Ceph repo between quincy/reef and enterprise/no-subscription/test or remove it
- Disable "No subscription message" in web interface (for no-subscription)
- Add pve-enterprise subscription key (optional)
- Update system to the latest version
- Install common tools
- Install common tools (curl, git, htop, etc.)
- Install Proxmox SDN Extensions
- Configure automatic backup of /etc Folder
- Configure locales
- SSH server hardening
- Configure automatic backup of /etc folder (ZFS + cron)
- Configure locales (language and region settings)
- SSH server hardening (new host keys, restrictive algorithms, disable root login with password)
- Install checkzfs
- Install bashclub-zsync
- Install virtio-win ISO (including automatic cleanup of old versions)
- Create zfspool storage for swap disks if not exists
- Adjust default volblocksize for Proxmox zfspool storage
- Configure proxmox mail delivery with postfix
- Daily check (and download) for new stable virtio-win iso and prune old (unused) versions
- Adjust default volblocksize for Proxmox zfspool storages
- Configure Proxmox mail delivery and notifications (SMTP, Auth, TLS/StartTLS)
- Remove old virtio-win-updater
- Set content of proxmox storage "local" (remove ability to save backups)
- Enable autotrim on all supported ZFS pools
- Enable autoexpand on all ZFS pools
## Workflow
- The script guides you step by step through all important configurations.
- All settings are queried interactively and can be customized.
- After the summary, all selected options are automatically applied.
## Requirements
- Proxmox VE 8.x (tested with Bookworm)
- Root privileges required
- Internet connection for package installation
# Usage
Just download and execute the script, all settings are made interactively.
```
wget -O ./postinstall --no-cache https://github.com/bashclub/proxmox-zfs-postinstall/raw/dev/postinstall
wget -O ./postinstall --no-cache https://github.com/bashclub/proxmox-zfs-postinstall/raw/main/postinstall
bash ./postinstall
```