Is it possible to export .img file from virtual machine?

Like described in the title, I am trying to find a way to export the whole file system from the virtaul machine(VMware or virtualbox) to a .img file, which can be used to write into a SD card for a real raspberry pi. I want to do this because the virtual machines have the very convinient snapshot backup feature which the real Pi don’t have. If anyone can give me some advices?

Hi,

no, different processor architecture.

VM is a i386 64bit. RPi are ARMv6 / ARMv7 processor architecture and have different specific instruction set.

Hi k-plan,
Thanks for your reply. So it there any better way to make incremental backup for RPi without Cope and Write the whole SD card image everytime?
Best,
dragon

Hi,

Is this something you are looking for?

DietPi-Backup

cu
k-plan

Thanks, I will try it.

I have tried this DietPi-Backup. So dose it maintain only one latest version of backup rather than all the history backups?

So dose it maintain only one latest version of backup rather than all the history backups?

Maintains the most recent backup only. Uses Rsync to create a incremental backup.

can i export the .img file from virtual box
my development machine is macbook air m2 > arm64
i want to run the .img file on rasppi 4 model b

Nope

anyway to just run dietpi on my machine.

and another questions

my intent is to make a .deb application
I am using electronJS for its development
and if i compile on my machine, it ain’t working on dietpi
so I am developing on my machine and compiling the final build like .deb file on a rasp pi 4
but compiling there is very very much time consuming

so i was thinking if i can emulate dietpi on my macbook and compile there.

Depending on the tools you are using you can cross-compile for other architectures.

For example electron builder has this option, but it comes also with some restrictions:

https://www.electron.build/multi-platform-build.html

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