e42.uk Circle Device

 

Quick Reference

Quick VMs with QEMU (UEFI Version)

Quick VMs with QEMU (UEFI Version)

This is a revision of the old page about making quick VMs for QEMU, it will include some BIOS stuff because some of the resources require it but mostly this is an attempt to demonstrate simple VM creation using QEMU without GUI tools that hide the details.

Creating an Image

To create an image file for your VM to use as a disk drive:

qemu-img create -f raw root.img.raw 64G

Or use a different format, qcow2 is probably the best bet:

qemu-img create -f qcow2 root.img.qcow2 64G

Installing the Operating System

I have written some scripts that are a rip-off from the sourcehut builds.sr.ht repository builders. These are really great scripts :-).

Downloading an Image

Images can be downloaded from the web, see VirtualBox to QEMU for more detail be careful of your security!

Converting an Image

Quick Links: Techie Stuff | General | Personal | Quick Reference