Skip to content

Instantly share code, notes, and snippets.

@dasJ
Created November 3, 2015 18:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasJ/4e806e74e3039e92f240 to your computer and use it in GitHub Desktop.
Save dasJ/4e806e74e3039e92f240 to your computer and use it in GitHub Desktop.
Qemu FrozenDroid
qemu-system-x86_64 \
-enable-kvm -M q35 -localtime -usb -name Windows `# General options` \
-monitor /dev/tty -nographic -vga none -serial none `# Graphic options` \
-cpu host,kvm=off -smp 1,sockets=1,cores=1,threads=1 `# CPU Options` \
-m 1024 `# Memory` \
-bios /usr/share/qemu/bios.bin `# BIOS` \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 `# PCIe Bus` \
-device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on `# Graphics card` \
-device vfio-pci,host=02:00.1,bus=root.1,addr=00.1 `# Graphics card sound` \
-soundhw hda `# Sound` \
-device virtio-scsi-pci,id=scsi `# SCSI controller` \
-drive file=/dev/sdd,id=hdd,format=raw,if=none -device scsi-hd,drive=hdd `# Add your own disk/image file/...` \
-net nic,model=virtio -net bridge,br=br0 `# External networking. Change to your own bridge` \
-usbdevice host:03f0:0024 `# Add your own stuff here` \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment