Advertisement
Guest User

QEMU / HTC Vive

a guest
May 15th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Detach intel usb 3.0 hub
  4. virsh nodedev-detach pci_0000_00_14_0
  5.  
  6. #Turn off center monitor
  7. xrandr --output DP2 --off
  8.  
  9. #Use OVMF
  10. cp /usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd /tmp/my_vars.fd
  11.  
  12. #Audio settings
  13. QEMU_PA_SAMPLES=128 QEMU_AUDIO_DRV=pa
  14.  
  15. #Run VM
  16. qemu-system-x86_64 \
  17. -enable-kvm \
  18. -m 8196 \
  19. -smp cores=4,threads=2 \
  20. -cpu host,kvm=off \
  21. -vga none \
  22. -soundhw hda \
  23. -usb -usbdevice host:046e:5500 \
  24. -usb -usbdevice host:046d:c066 \
  25. -device usb-ehci,id=ehci \
  26. -device usb-host,id=asix,bus=ehci.0,vendorid=0x0b95,productid=0x7720 \
  27. -device vfio-pci,host=01:00.0,multifunction=on \
  28. -device vfio-pci,host=01:00.1 \
  29. -device vfio-pci,host=00:14.0 \
  30. -drive if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd \
  31. -drive if=pflash,format=raw,file=/tmp/my_vars.fd \
  32. -device virtio-scsi-pci,id=scsi \
  33. -drive file=/home/username/VMs/vm_win10_x64.img,id=disk,format=qcow2,if=none,cache=writeback -device scsi-hd,drive=disk \
  34. -drive file=/mnt/Local_A1/VMs/Steam/steam.img,id=disk2,format=qcow2,if=none,cache=writeback -device scsi-hd,drive=disk2 #\
  35.  
  36. #Turn center monitor back on
  37. xrandr --output DP2 --mode "1920x1200" --rate 60 --right-of DP1
  38.  
  39. #Reattach intel usb 3.0 hub
  40. virsh nodedev-reattach pci_0000_00_14_0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement