Advertisement
Guest User

Untitled

a guest
Feb 21st, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. sudo cp /usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd /tmp/my_vars.fd
  4.  
  5. echo "Exporting PulseAudio driver"
  6. export QEMU_AUDIO_DRV="pa"
  7.  
  8. echo "Starting QEMU"
  9. sudo \
  10. QEMU_AUDIO_DRV=pa qemu-system-x86_64 \
  11. -serial none \
  12. -parallel none \
  13. -nodefaults \
  14. -nodefconfig \
  15. -enable-kvm \
  16. -name win10 \
  17. -soundhw hda \
  18. -cpu host,kvm=off,check \
  19. -smp sockets=1,cores=4,threads=1 \
  20. -m 12288 \
  21. -device ich9-usb-uhci3,id=uhci \
  22. -device usb-ehci,id=ehci \
  23. -device nec-usb-xhci,id=xhci \
  24. -rtc base=localtime \
  25. -vga none \
  26. -vnc none \
  27. -drive if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd \
  28. -drive if=pflash,format=raw,file=/tmp/my_vars.fd \
  29. -netdev user,id=network0 -device e1000,netdev=network0 \
  30. -usb -usbdevice host:046d:c31c \
  31. -usb -usbdevice host:1532:001f \
  32. -device vfio-pci,host=01:00.0,multifunction=on \
  33. -device vfio-pci,host=01:00.1 \
  34. -device virtio-scsi-pci,id=scsi \
  35. -drive if=virtio,id=drive0,file=/media/mordekk/storage1/Qemu_StoragePool/win.img,format=raw,cache=none \
  36.  
  37.  
  38. echo Done. Qemu stopped
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement