Skip to content

Instantly share code, notes, and snippets.

@doug65536
Created February 16, 2019 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doug65536/8db869c4586065fc30b2d8e3cfd922cf to your computer and use it in GitHub Desktop.
Save doug65536/8db869c4586065fc30b2d8e3cfd922cf to your computer and use it in GitHub Desktop.
#!/bin/bash
QEMU_AUDIO_DRV=pa QEMU_PA_SAMPLES=8192 \
QEMU_AUDIO_TIMER_PERIOD=99 \
QEMU_PA_SERVER=/run/user/1000/pulse/native \
qemu-system-x86_64 \
-machine q35 \
-display sdl \
-nic user,model=virtio-net-pci \
-enable-kvm -vga virtio \
-device qemu-xhci \
-device usb-tablet \
-smp 4 \
-m 6G \
-cpu kvm64 \
-soundhw ac97 \
-drive file=---whatever---.img,if=virtio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment