https://github.com/dazeb/proxmox-dietpi-installer
A Proxmox Helper Script to install DietPi in Proxmox
https://github.com/dazeb/proxmox-dietpi-installer
dietpi proxmox virtualization
Last synced: 7 months ago
JSON representation
A Proxmox Helper Script to install DietPi in Proxmox
- Host: GitHub
- URL: https://github.com/dazeb/proxmox-dietpi-installer
- Owner: dazeb
- License: gpl-3.0
- Created: 2023-01-21T22:32:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T12:42:03.000Z (9 months ago)
- Last Synced: 2025-02-27T08:34:13.915Z (7 months ago)
- Topics: dietpi, proxmox, virtualization
- Language: Shell
- Homepage:
- Size: 71.3 KB
- Stars: 85
- Watchers: 5
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# 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:
1. Use the one-liner installer directly from GitHub.
2. 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:
```sh
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
```sh
git clone https://github.com/dazeb/proxmox-dietpi-installer.git
```Navigate into the folder, make the file executable, then run the script:
```sh
cd proxmox-dietpi-installer
chmod +x dietpi-install.sh
./dietpi-install.sh
```#### Download Script Using `wget`
```sh
wget https://raw.githubusercontent.com/dazeb/proxmox-dietpi-installer/main/dietpi-install.sh
```Make the file executable, then run the script:
```sh
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:
1. **Prompts for User Input**: Asks for the storage location name.
2. **Installs Required Packages**: Installs `xz-utils` if it is not already installed.
3. **Gets the Next Available VMID**: Retrieves the next available VMID from Proxmox.
4. **Downloads and Decompresses the DietPi Image**: Downloads the specified DietPi image and decompresses it.
5. **Imports the Disk Image**: Imports the decompressed disk image into the specified storage.
6. **Configures the VM**: Sets the VM's CPU cores, RAM, SCSI hardware, network, and disk settings.
7. **Sets VM Metadata**: Sets the VM's name and description.
8. **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](https://tteck.github.io/Proxmox/)