Show HN: Trivial script to spin up a Debian MIPS|PPC|arm|x86|x64 VM
gist.github.com
gist.github.com
The script uses libvirt to automate the process of creating a new kvm VM, and emulates CPU architecture via qemu (arm, aarch64, ppc, risc, etc).
The VMs run pretty nicely on Debian - including insane boot times and direct kernel boot.
I'm not sure if MacOS supports kvm or not. A quick google search yields results to emulate MacOS, though :)
The real jackpot still remains out there: a tool with which to actually create those images. Having that would be awesome.
I use tool like vmdb2 to generate entirely new Debian VM images in under three minutes: I have more than a dozen images for my regular Debian development needs (various distributions, various specializations such as buildd-specific environments, etc.).
However, unfortunately vmdb2 only supports i386 and amd64 so far.
There are a ton of tools for automatically building Debian systems [1], some of which can generate bootable images, however they all seem to focus on i386/amd64.
Fully Automated Installation (FAI) in combination with your gist could be something that works. FAI is used to generate most of the Debian images for the cloud providers. So most of the tooling should already be in place.
If you get that to run, I can't say that you will make a lot of people happy, but you will definitely make a few people very very happy :-)
In any case, help yourself!
A minimal debootstrap-like installation with only the bare minimum configuration is ideal for that, it ensures that nothing from my own environment bleeds into the build/test environment.
I've run into all sorts of issues on non-amd64 platforms, and debugging on porter boxes is sometimes cumbersome. Most importantly, however, is getting access to one. For Debian contributors, it's easy, but most upstreams aren't Debian contributors.
Unless I'm mistaken, I can now at least point them to one of the images you generate, and they should be able to run it with very little effort.
See https://benou.fr/www/ben/using-docker-as-chroot-on-steroids....
I just checked for Debian 10 for mips64le, ppc64le and arm64v8 targets.