Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #!/bin/bash
  2. sudo -A cp /usr/share/ovmf/x64/OVMF_VARS.fd /tmp/OVMF_VARS.fd
  3.  
  4. sudo -A qemu-system-x86_64 \
  5. -soundhw ac97 \
  6. -smp sockets=1,cores=4,threads=2 -m 12000 \
  7. -cpu host,kvm=off -enable-kvm \
  8. -device vfio-pci,host=03:00.0,id=hostdev1,multifunction=on \
  9. -device vfio-pci,host=03:00.1,id=hostdev2 \
  10. -drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF_CODE.fd \
  11. -drive if=pflash,format=raw,file=/tmp/OVMF_VARS.fd \
  12. -drive file=/home/phisch/qemu/images/windows.qcow2,index=0,media=disk,discard=on \
  13. -usb -device usb-host,vendorid=0x046d,productid=0xc539 \
  14. -device ivshmem-plain,memdev=ivshmem \
  15. -display gtk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement