Building DietPi QEMU Arm for fast dev --then --- export for raspi sdcard load

Hey Folks, tinkering around with Dietpi, love it thus far. Wanted to leverage my proxmox env to build and dev on a dietpi image. Tho I want to be able to quickly export that same img to various versions of ARM raspi’s sitting at my desk. I am following this general path on reddit.
https://www.reddit.com/r/Proxmox/comments/ed2ldo/installing_and_launching_an_arm_vm_from_proxmox/

But there is no ISO ;(

you are looking for an RPI iso that could be sed on Proxmox?

So developing a project on a proxmox provides more power, speed etc in the development effort. My intent is to build a customized dietPi image… develop test etc. Then export to sdcard to then test functionality on real raspi HW. Make sense ?

I also am no stranger to seeing about building an .iso out of the .img.xz file. But didn’t know if others had done this already with success.

579 / 5.000
hi shdobxr,
if you want to run DietPi as a VM on the RPi, you have to do the following:
Install Proxmox on the RPi, preferably on Rpi5, see here:

or here:
https://www.bachmann-lan.de/proxmox-8-auf-dem-raspberry-pi-4-installieren/

install debian as a VM with aarm64/aarch64 iso as a minimal system.
Setting up as an EFI system with 2 GB RAM, select for CPU “host-cpu” with 4 cores

convert the debian to DietPi with the “Other Device script”, use “Generic Device” and
setup your netinterface on first.

I’m using DietiPiOS as VM on a RPi5 with usb-ssd disks. It run very well.
Using DietPiOS with omv7 in a VM as a fileserver is possible too. VMs complete Backup or Restore is very easy and quickly.

@Ludger.Kuehm question of OP was not to run Proxmox/Pimox on RPi device. It’s more the other way around, to run RPI arm-based images on a x86 hardware :wink:

1 Like

While yes one can install Pimox on the Pi, it was as how @Joulinar mentioned. I want to emulate Arm Cortex on my Proxmox x86_64 cluster, so I can develop, then export a tweaked DietPi image onto an sdcard for booting whichever Pi hardware I wanted to test.

I ran into another blocker for my project, in that, there is no support for LUKS on DietPi. So this is kind of a downer. DietPi clicks all of the right boxes for a “thin” implementation platform, but I need to protect the data volume, and modification of the boot volume.

At least to my experience, simulating ARM on x86 is running quite slow.

Theoretically it should be possible to use LUKS same way as on plain RPI OS.

Please take no offense, many things are theoretical. But it would be great to have a tried tested luks setup out of the box. I am human I make mistakes, which guide are you referring to here @Joulinar DietPi-Drive_Manager | Add dm-crypt/LUKS support · Issue #3377 · MichaIng/DietPi · GitHub?

This one? GitHub - keks24/raspberry-pi-luks: [mirror] encrypt the "root" partition of the raspberry pi stock image "raspberry pi os lite" ??

Guide from keks24 is s couple of years old. Not sure if this is working still.

Following seems to be more up-to-date LUKS Encrypt 🔐 Raspberry PI 🍓🥧 - DEV Community

Something you would need to test

1 Like

Hi,
have you try the kvm64 or qemu64 cpu for emulaton?

Proxmox can emulate intel,AMD or QEMU (virtual) CPUs.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.