Skip to content

Instantly share code, notes, and snippets.

@Midnoclose
Last active April 18, 2024 19:54
Show Gist options
  • Save Midnoclose/96941097453a8461a4d8b047b66e77ac to your computer and use it in GitHub Desktop.
Save Midnoclose/96941097453a8461a4d8b047b66e77ac to your computer and use it in GitHub Desktop.
ZealOS QEMU VM script
#!/bin/sh
# Attach the following line to the arguments to mount the install disc
# -cdrom ZealOS-boot.iso
[ -f Zeal.qcow2 ] || qemu-img create -f qcow2 Zeal.qcow2 20G
qemu-system-x86_64 \
-machine q35,kernel_irqchip=off \
-boot c \
-hda Zeal.qcow2 \
-nic user,model=virtio-net-pci \
-m 2G \
-smp $(nproc) \
-soundhw pcspk \
-accel kvm \
-rtc base=localtime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment