Prerequisites

Download images

See Download Images section

OVMF

OVMF is a port of Intel’s Tianocore firmware to the qemu virtual machine.

Ubuntu

sudo apt-get install qemu-kvm ovmf

Fedora:

sudo dnf install qemu-kvm edk2-ovmf

Download the x86_64 image from the command line

wget -r -nd --no-parent -A "redpesk*" 'https://download.redpesk.bzh/redpesk-devel/releases/33/images/minimal/x86_64/latest'
unxz redpesk*.raw.xz

Launch qemu-system-x86_64

IMAGE_NAME=$(ls redpesk*.raw)
# For Ubuntu
OVMF="/usr/share/qemu/OVMF.fd"
# Uncomment/change for Fedora
#OVMF="/usr/share/OVMF/OVMF_CODE.fd"
PORT_SSH=3333

qemu-system-x86_64 \
    -hda $IMAGE_NAME \
    -enable-kvm -m 2048 \
    -cpu kvm64 \
    -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt \
    -vga virtio \
    -show-cursor \
    -device virtio-rng-pci \
    -serial mon:stdio \
    -serial null \
    -soundhw hda \
    -net nic \
    -net user,hostfwd=tcp::$PORT_SSH-:22 \
    -bios $OVMF

Wait! It is booting…

Default root password is root.

SSH

PORT_SSH=3333
ssh -p $PORT_SSH root@localhost