[Guide] DietPi on ProxMox

Guides and tutorials for various stuff. Posted by DietPi users.
Post Reply
Posts: 7
Joined: Wed Jan 06, 2021 8:38 pm

[Guide] DietPi on ProxMox

Post by eyduh »


I just wanted to share my experience with setting up a DietPi on a ProxMox box. (that's fun to say!)

Proxmox Virtual Environment


Ok! So you have setup proxmox and connected through the webinterace at [your.prox.mox.ip]:8006
Now we want to setup a VM with dietpi, the process of which is outline as such:
  • Upload installer ISO
  • Setup qemu/kvm
  • Install DietPi
  • Reboot VM
  • Finish install
Step 1: Get familiar with interface & upload ISO
This was my first ProxMox and I spent some time at first wondering how I didn't have any disk space. What happens through a standard install is that the ProxMox installer uses LVM and makes one Physical Volume of the whole boot drive and then makes one Logical Volume Group with three Logical Volumes on it:

When you open up the web interface you will see something like this:

On the left you have a drop down menu with a tree menu below. Make sure you are in Server View, and click local (pve). If you names you proxmox something other than pve it will have that in brackets instead.

Then select ISO Images:
Image and upload the DietPi Native PC UEFI iso.

2. Create the Virtual Machine (qemu/kvm)

Click "Create VM"

Give it a name.

Select which OS to install with the ISO you just uploaded.

Select Graphic Card: SPICE or VNC depending on preference.

In the same menu point the install to local-lvm which is the "data" partition mentioned earlier.
You can also pass through a physical SSD, but this is outside of this guide's scope.

Set the Machine to q35:

Hard Disk: If you want to give it a separate data drive (to move dietpi_userdata) you can add that here. You can also do that later and just go "Next"

I did this particular install with ony one CPU but would recommend more if possible. I am not a superpro with proxmox yet but from what I know it treats cores as cores, meaning the number you set here is not the numbers of threads you want to give it.

Give it some RAM, preferable more than standard 2048 but whatver you can afford.

Leave the network settings as is.

Confirm and Start after created:

Wiieeee! you have a virtual machine ready for DietPi:

Wait for a little bit and go into the server list on the left again, then select your DietPi and click "Console" to connect through the web interface:
Select either VGA or KMS (if you want HW passthrough with GPUs etc go for KMS. To know more checkout: https://wiki.archlinux.org/index.php/Ke ... de_setting

Then some clonezilla magic happens at the end of which the VM will shut down.
Select ISO:
Select BOOT/ROOT drive:
Clonezilla magic:

Reboot VM by clicking start above the console window.
That's a familiar look:

And voila!

You have a virtual dietpi on proxmox!
I would finish the dietpi install and then do a baclkup and/or snapshot before moving ahead with anything as this saves you the trouble to do these steps in the future.

Next project is this one inverted:

Proxmox on DietPi!
Posts: 172
Joined: Thu Jan 12, 2017 9:23 pm

Re: [Guide] DietPi on ProxMox

Post by baz123 »

That looks interesting. I tried this a while back but failed miserably.

I'll have to try again although most of my 'servers' on Proxmox are running in LXC containers.
User avatar
Posts: 739
Joined: Thu Jul 20, 2017 8:55 am

Re: [Guide] DietPi on ProxMox

Post by WarHawk »

Very cool!!!!

I bought a newish to me Dell i5 box to create a proxmox virtual server environment...but it got hijacked by my kids...LOL

I have several OrangePi and DietPi boxes up doing practically nothing...would LOVE to setup proxmox inside a working distro!
Posts: 23
Joined: Sat Feb 20, 2021 12:02 am

Re: [Guide] DietPi on ProxMox

Post by lightsout »

Thanks for the write-up. I am currently running dietpi in a VM on a windows machine. Recently got a tiny PC with an i5 and running proxmox on it, will eventually transfer dietpi over to it, but did some tests with this guide and got dietpi running great.

I need to figure out the whole reverse proxy thing so I can access multiple apps on my network with a domian. Right now I am just opening ports so 80 and 443 and dedicated to the IP of the dietpi VM, works for that VM but can't use 443 for any other VM at the moment.
User avatar
Posts: 5127
Joined: Sat Nov 16, 2019 12:49 am

Re: [Guide] DietPi on ProxMox

Post by Joulinar »

well this is more a question on setting up a revers proxy and not really related to ProxMox, VM or DietPi ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: [Guide] DietPi on ProxMox

Post by MichaIng »

Great guide. Something for our install docs, I think: https://dietpi.com/docs/install/ :)
Posts: 5
Joined: Wed Dec 11, 2019 7:04 pm

Re: [Guide] DietPi on ProxMox

Post by ldg346 »

Thanks a lot for this guide! Good work

Have you ever tried resizing a attached hard disk in proxmox?

I'm just trying to accomplish this, on the proxmox side it's not a problem, but i can't get it to work inside DietPi.
Can't even resize the drive with reformating it inside DietPi, which obviously wouldn't be very helpful anyway, but still.. ^^

Is it even possible..?!
Posts: 6
Joined: Thu May 27, 2021 9:01 pm

Re: [Guide] DietPi on ProxMox, where is dietpi.txt?

Post by papasmurf »

I installed DietPi as a VM on ProxMox too. That was pretty easy.
But I wonder how I can customize the installation beforehand. For the Raspberry Pi I could change the dietpi.txt file. But how do I do that on the ISO??
Post Reply