Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. #!/bin/bash
  2. QEMU_PA_SAMPLES=128 QEMU_AUDIO_DRV=pa SDL_VIDEO_X11_DGAMOUSE=0
  3.  
  4. #synergys
  5.  
  6. sudo qemu-system-x86_64 \
  7. -enable-kvm \
  8. -M q35 \
  9. -m 4096 \
  10. -cpu host \
  11. -net none \
  12. -rtc base=localtime \
  13. -smp 4,sockets=1,cores=4,threads=1 \
  14. -netdev tap,ifname=tap0,id=tap0 \
  15. -drive if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-with-csm.fd \
  16. -drive if=pflash,format=raw,file=/mnt/hdd/qemu/OVMF_VARS.fd \
  17. -drive file='/mnt/hdd/qemu/qemu-vfio-win.img',id=disk,format=raw,cache=none \
  18. -drive file='/mnt/hdd/qemu/virtio.iso',id=cdrom,format=raw,readonly=on \
  19. -drive file='/mnt/hdd/qemu/windows8.iso',id=cdrom2,format=raw,readonly=on \
  20. -device ioh3420,addr=02.0,multifunction=on,port=1,chassis=1,id=root.0 \
  21. -device ioh3420,addr=04.0,multifunction=on,port=1,chassis=2,id=root.1 \
  22. -device ioh3420,addr=06.0,multifunction=on,port=1,chassis=3,id=root.2 \
  23. -device qxl-vga,bus=root.2,addr=02.0 \
  24. -device virtio-blk-pci,bus=root.2,addr=03.0,drive=disk \
  25. -device virtio-scsi-pci,bus=root.2,addr=04.0 \
  26. -device scsi-cd,drive=cdrom \
  27. -device scsi-cd,drive=cdrom2 \
  28. -device ich9-intel-hda,bus=root.2,addr=00.0,id=sound0 \
  29. -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 \
  30. -device virtio-net-pci,netdev=tap0,bus=root.2,addr=01.0 \
  31. -device vfio-pci,host=01:00.0,bus=root.0,addr=00.0,multifunction=on,x-vga=off,romfile=/mnt/hdd/qemu/image2_uefi.rom \
  32. -device vfio-pci,host=01:00.1,bus=root.0,addr=00.1 \
  33. -device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=off,romfile=/mnt/hdd/qemu/image_uefi.rom \
  34. -device vfio-pci,host=02:00.1,bus=root.1,addr=00.1 \
  35. -vga none
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement