How to Install DietPi on Proxmox Server: A Step-by-Step Guide

If you’re looking to run DietPi on your Proxmox server, you’re in the right place! This lightweight, optimized Linux distribution is perfect for a range of applications and is easy to set up on Proxmox. In this guide, we’ll walk you through downloading the DietPi image, decompressing it, and configuring it as a virtual machine in Proxmox. Let’s dive in!


What is DietPi?

DietPi is a lightweight, Debian-based Linux distribution designed to be fast and efficient. It’s ideal for single-board computers, virtual machines, and low-resource systems. With its streamlined design, it’s a perfect choice for Proxmox environments.


Prerequisites

Before we begin, make sure you have the following:

  1. A working Proxmox server.
  2. SSH access or direct access to your Proxmox host.
  3. Basic command-line knowledge.

Steps to Install DietPi on Proxmox

1. Download the DietPi Image

Start by downloading the DietPi image for Proxmox using the following command:

curl -O https://dietpi.com/downloads/images/DietPi_Proxmox-x86_64-Bookworm.qcow2.xz

This will fetch the latest DietPi image in .qcow2.xz format.

2. Decompress the Image

Before importing the image into Proxmox, decompress it using the xz-utils package. Install the package and decompress the image:

apt install xz-utils  
xz -d DietPi_Proxmox-x86_64-Bookworm.qcow2.xz

Once decompressed, you’ll have a .qcow2 file ready for use.

3. Import the Image into Proxmox

Now, import the DietPi image into Proxmox. First, assign an ID for your new VM (e.g., 108), then run:

ID=108
qm importdisk "$ID" DietPi_Proxmox-x86_64-Bookworm.qcow2 local-zfs

4. Configure the VM Disk and Boot Settings

Next, configure the VM to use the imported disk and set it as the boot device:

qm set "$ID" --scsi0 "local-zfs:vm-$ID-disk-0"
qm set "$ID" --boot order=scsi0

At this point, your DietPi VM is ready to boot.


Reference

For additional details, visit the official DietPi Proxmox Documentation.


Conclusion

Installing DietPi on Proxmox is a straightforward process that combines the best of both platforms. With its lightweight and optimized performance, DietPi is a perfect addition to your Proxmox environment for running various applications. Follow this guide, and you’ll have DietPi up and running in no time!

Junaid Ahmed
Junaid Ahmed

Junaid Ahmed is a Cloud Infrastructure and Identity Management expert with 10+ years of experience specializing in Azure Entra ID, ADFS, Hybrid Identity, and Azure Infrastructure Management. He has a proven track record of leading secure identity solutions, deploying high-value security projects, and troubleshooting complex Azure issues for global clients. Junaid excels in enhancing system performance, facilitating seamless collaboration across organizations, and delivering expert guidance on cloud migrations and infrastructure optimization. He seeks to leverage his expertise in a challenging Cloud Solution Architect role to drive success through innovative cloud solutions.

Articles: 30

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress Appliance - Powered by TurnKey Linux