Skip to content

Instantly share code, notes, and snippets.

@nelsonjchen
Last active January 3, 2018 03:35
Show Gist options
  • Save nelsonjchen/28322e33d9abbb217bbb648ca86745a9 to your computer and use it in GitHub Desktop.
Save nelsonjchen/28322e33d9abbb217bbb648ca86745a9 to your computer and use it in GitHub Desktop.
#!/bin/sh
OPTS=""
OPTS="$OPTS -enable-kvm"
OPTS="$OPTS -cpu host,kvm=off,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time"
OPTS="$OPTS -machine type=pc-i440fx-2.1,accel=kvm"
OPTS="$OPTS -m 8G"
OPTS="$OPTS -cdrom win10.iso"
OPTS="$OPTS -vnc :1"
OPTS="$OPTS -device usb-ehci,id=ehci"
OPTS="$OPTS -device usb-tablet"
OPTS="$OPTS -hda windisk.qcow2"
OPTS="$OPTS -smp 4"
qemu-system-x86_64 $OPTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment