Skip to content

Instantly share code, notes, and snippets.

@ericcurtin
Created March 16, 2023 14:39
Show Gist options
  • Save ericcurtin/cff6748e538f32a367c5fcabdb0559d6 to your computer and use it in GitHub Desktop.
Save ericcurtin/cff6748e538f32a367c5fcabdb0559d6 to your computer and use it in GitHub Desktop.
qemu
/usr/bin/qemu-system-x86_64 -drive file=/usr/share/OVMF/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=/usr/share/OVMF/OVMF_VARS.fd,if=pflash,format=raw,unit=1,snapshot=on,readonly=off -smp 8 -m 4G -machine q35 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt -device virtio-net-pci,netdev=n0,mac=FE:f2:b8:06:5c:24 -netdev user,id=n0,net=10.0.2.0/24,hostfwd=tcp::2222-:22 -nographic -drive file=auto-osbuild-qemu-autosd9-minimal-ostree-x86_64-762289313.2cacd0c8.qcow2,index=0,media=disk,format=qcow2,if=virtio,snapshot=off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment