mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2025-12-06 11:48:45 +00:00
Compare commits
8 Commits
dev
...
a11c458eb2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a11c458eb2 | ||
|
|
305987a6f9 | ||
|
|
cbef6ed38b | ||
|
|
c6bc651b34 | ||
|
|
e0e9b49bf9 | ||
|
|
f271c7716b | ||
|
|
0b14d9c2c3 | ||
|
|
603d1f6bc8 |
50
README.md
50
README.md
@@ -1,30 +1,50 @@
|
|||||||
# proxmox-zfs-postinstall
|
# proxmox-zfs-postinstall
|
||||||
|
|
||||||
This script installs and configures basic tools for running a Proxmox Server.
|
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.
|
||||||
Following settings are made:
|
|
||||||
- Install and configure zfs-auto-snapshot
|
> [!IMPORTANT]
|
||||||
- Switch pve-enterprise/pve-no-subscription/pvetest repo
|
> 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
|
||||||
- Switch ceph repo between quincy/reef and enterprise/no-subscription/test or remove it
|
|
||||||
- Disable "No subscription message" in webinterface in no-subscription mode
|
## Features
|
||||||
- Add pve-enterprise subscription key
|
- 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
|
- Update system to the latest version
|
||||||
- Install common tools
|
- Install common tools (curl, git, htop, etc.)
|
||||||
- Install Proxmox SDN Extensions
|
- Install Proxmox SDN Extensions
|
||||||
- Configure automatic backup of /etc Folder
|
- Configure automatic backup of /etc folder (ZFS + cron)
|
||||||
- Configure locales
|
- Configure locales (language and region settings)
|
||||||
- SSH server hardening
|
- SSH server hardening (new host keys, restrictive algorithms, disable root login with password)
|
||||||
- Install checkzfs
|
- Install checkzfs
|
||||||
- Install bashclub-zsync
|
- Install bashclub-zsync
|
||||||
|
- Install virtio-win ISO (including automatic cleanup of old versions)
|
||||||
- Create zfspool storage for swap disks if not exists
|
- Create zfspool storage for swap disks if not exists
|
||||||
- Adjust default volblocksize for Proxmox zfspool storage
|
- Adjust default volblocksize for Proxmox zfspool storages
|
||||||
- Configure proxmox mail delivery with postfix
|
- Configure Proxmox mail delivery and notifications (SMTP, Auth, TLS/StartTLS)
|
||||||
- Daily check (and download) for new stable virtio-win iso and prune old (unused) versions
|
- 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
|
# Usage
|
||||||
|
|
||||||
Just download and execute the script, all settings are made interactively.
|
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
|
bash ./postinstall
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user