QEMU Internals (2021)
airbus-seclab.github.io
airbus-seclab.github.io
A frontend for QEMU which makes it usable for normal people
(1) Download a Fedora image (or any one of the images that `virt-builder` supports: `virt-builder --list | less`)
$> virt-builder fedora-36 --format qcow2 \
-o vm1.qcow2 --root-password secret
(2) Import the image to libvirt: $> sudo virt-install --name vm1 --ram 4096 \
--disk path=/var/lib/libvirt/images/vm1.qcow2,format=qcow2 \
--nographics --os-variant fedora-36 --import
Then you can do various operations via `virsh` (the shell tool). Start a VM, and see the boot process on the serial console: $ sudo virsh start --console
Create a snapshot: $ sudo virsh snapshot-create-as vm1 snap1 "Clean Fedora 1"
With this kind of snapshot (called "internal snapshots"), the original and its delta, i.e. the snapshot, are stored in a single disk image file; this is convenient for moving it across machines. This only works with QCOW2 images. To revert to the snapshot: $ sudo virsh snapshot-revert vm1 snap1
And so on[b].[a] https://libguestfs.org/virt-builder.1.html
[b] https://developer.fedoraproject.org/tools/virt-builder/about...
Last time I tried setting up libvirt/libguestfs on my work Mac M1 I ran into various problems and gave up. This was somewhere around April 2022.
Be aware though, it was easy to crash M1 with default qemu settings few months ago.
I didn't set too much RAM, definitely less than 8GB.
https://github.com/virt-manager/virt-manager/blob/main/INSTA...
Nonetheless, it is a pretty nice tool
Biggest problem for me is that it seems every solution for running a VM on Apple Silicon puts a big ding in the otherwise insane battery life. I'd love to have a Linux VM "at the ready" similar to WSL2 but there doesn't seem to be a great way to achieve this.
QEMU Internals - https://news.ycombinator.com/item?id=26941744 - April 2021 (33 comments)