proxmox-dietpi-installer
proxmox-dietpi-installer copied to clipboard
A Proxmox Helper Script to install DietPi in Proxmox

Proxmox DietPi Installer
A Proxmox Helper Script to install DietPi in Proxmox 8.
How to Use
There are two ways to install DietPi VM in Proxmox:
- Use the one-liner installer directly from GitHub.
- Download the script directly.
All commands should be run in the Proxmox console.
One-liner Installer
Run the following command to install DietPi VM directly from GitHub:
bash <(curl -sSfL https://raw.githubusercontent.com/dazeb/proxmox-dietpi-installer/main/dietpi-install.sh)
Download the Script
You can download the script to your Proxmox host by cloning the repo or using wget.
Clone the Repository
git clone https://github.com/dazeb/proxmox-dietpi-installer.git
Navigate into the folder, make the file executable, then run the script:
cd proxmox-dietpi-installer
chmod +x dietpi-install.sh
./dietpi-install.sh
Download Script Using wget
wget https://raw.githubusercontent.com/dazeb/proxmox-dietpi-installer/main/dietpi-install.sh
Make the file executable, then run the script:
chmod +x dietpi-install.sh
./dietpi-install.sh
Installation Prompts
The installer will ask for the following information:
- Where to import the VM disk
- How much RAM to allocate (default 2GB)
- The number of processor cores (default 2 Cores)
The rest is automatic. Be sure to open the DietPi VM console once the installer finishes and complete the initial startup then you can shutdown and add changes eg, increasing cores, RAM, etc.
What the Script Does
The dietpi-install.sh script performs the following steps:
- Prompts for User Input: Asks for the storage location name.
- Installs Required Packages: Installs
xz-utilsif it is not already installed. - Gets the Next Available VMID: Retrieves the next available VMID from Proxmox.
- Downloads and Decompresses the DietPi Image: Downloads the specified DietPi image and decompresses it.
- Imports the Disk Image: Imports the decompressed disk image into the specified storage.
- Configures the VM: Sets the VM's CPU cores, RAM, SCSI hardware, network, and disk settings.
- Sets VM Metadata: Sets the VM's name and description.
- Starts the VM: Starts the newly created VM.
Compatibility
Tested and confirmed working with Proxmox 8.x.
Developers
Developed by Darren Bennett & MichaIng
More Helper Scripts
For more helper scripts like this, check out tteck's Proxmox Helper Scripts