A Proxmox Helper Script to install DietPi in Proxmox 8.
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.
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)
You can download the script to your Proxmox host by cloning the repo or using wget
.
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
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
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.
The dietpi-install.sh
script performs the following steps:
- Prompts for User Input: Asks for the storage location name.
- Installs Required Packages: Installs
xz-utils
if 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.
Tested and confirmed working with Proxmox 8.x.
Developed by Darren Bennett & MichaIng
For more helper scripts like this, check out tteck's Proxmox Helper Scripts