Skip to content

Instantly share code, notes, and snippets.

@brendenyule
Created July 22, 2016 03:18
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 brendenyule/17159fc35d4d94c38895e8c1035c935f to your computer and use it in GitHub Desktop.
Save brendenyule/17159fc35d4d94c38895e8c1035c935f to your computer and use it in GitHub Desktop.
#!/bin/sh
export QEMU_AUDIO_DRV=alsa
DISKIMG=~/virtio-win.iso
WIN7IMG=~/Downloads/Win10_1511_2_English_x64.iso
VIRTIMG=~/win10.img
sudo qemu-system-x86_64 --enable-kvm -drive file=${DISKIMG},if=virtio -m 2048 \
-net nic,model=virtio -net user -cdrom ${WIN7IMG} \
-drive file=${VIRTIMG},index=3,media=cdrom \
-rtc base=localtime,clock=host -smp cores=2 \
-usbdevice tablet -soundhw ac97 -cpu host -vga vmware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment