Skip to content

Instantly share code, notes, and snippets.

@rgolangh
Created October 30, 2022 17:32
Show Gist options
  • Save rgolangh/1d5329cbbd659c655e9e364716c20bba to your computer and use it in GitHub Desktop.
Save rgolangh/1d5329cbbd659c655e9e364716c20bba to your computer and use it in GitHub Desktop.
A makefile to spin rhivos 9 vm
SHELL := /bin/bash
IMG = rhivos9-x86_64.qcow
run-vm:
qemu-kvm \
-m 8G \
-cpu host \
-smp sockets=2,cores=2 \
-machine q35 \
-nographic \
-drive file=$(IMG) \
-netdev user,id=n1 \
-device virtio-net,netdev=n1 \
-device virtio-rng-pci \
-bios /usr/share/edk2/ovmf/OVMF.inteltdx.fd \
-name rhivos9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment