[Guide] DietPi on ProxMox

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

[Guide] DietPi on ProxMox

Post by eyduh »

Hi,

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

[Pre-requisites]
Proxmox Virtual Environment

[Guide]

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:
Boot
Root
Data

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

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.
Image

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

2. Create the Virtual Machine (qemu/kvm)

Click "Create VM"
Image

Give it a name.
Image

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

Select Graphic Card: SPICE or VNC depending on preference.
Select BIOS: OVMF (UEFI)
Image

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.
Image

Set the Machine to q35:
Image

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"
Image

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.
Image

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

Leave the network settings as is.
Image

Confirm and Start after created:
Image

Wiieeee! you have a virtual machine ready for DietPi:
Image
Image

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:
Image
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.
Image
Select ISO:
Image
Select BOOT/ROOT drive:
Image
Clonezilla magic:
Image
Waiting...
Image

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

And voila!
Image

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!
baz123
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
WarHawk
Posts: 724
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!
lightsout
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
Joulinar
Posts: 4502
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
MichaIng
Site Admin
Posts: 2914
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/ :)
Post Reply