Advertisement
Guest User

modified config

a guest
Dec 24th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. # User.
  2. USER=colt
  3.  
  4. # Path to VBIOS, IMG, Windows ISO, Virtio iso, ...
  5. IMAGES=/home/$USER/vm
  6.  
  7. # IOMMU groups for passed devices.
  8. IOMMU_GPU="0c:00.0"
  9. IOMMU_GPU_AUDIO="0c:00.1"
  10. IOMMU_USB="11:00.3"
  11.  
  12. # Virsh devices, only needed if you use virsh.
  13. VIRSH_GPU=pci_0000_0c_00_0
  14. VIRSH_GPU_AUDIO=pci_0000_0c_00_1
  15. VIRSH_USB=pci_0000_11_00_3
  16.  
  17. # PCI BUS ID for binding/unbinding devices.
  18. videoid="1002 67df"
  19. audioid="1002 aaf0"
  20. usbid="1022 145c"
  21.  
  22. videobusid=0000:$IOMMU_GPU
  23. audiobusid=0000:$IOMMU_GPU_AUDIO
  24. usbbusid="0000:$IOMMU_USB"
  25.  
  26. # Images needed for QEMU.
  27. VBIOS=$IMAGES/RX5804GB_original.rom
  28. IMG=$IMAGES/windows.raw
  29. VIRTIO=$IMAGES/virtio-win.iso
  30. ISO=$IMAGES/en_windows_10_enterprise_2016_ltsb_x64_dvd_9059483.iso
  31. #$IMAGES/win10.iso
  32. #HDD=/dev/sdx
  33. OVMF=/usr/share/ovmf/x64/OVMF_CODE.fd
  34.  
  35. # QEMU options
  36. RAM=12G
  37. CORES=12
  38.  
  39. # To run QEMU as user you need to allow more RAM to be locked by an user.
  40. ULIMIT=$(ulimit -a | grep "max locked memory" | awk '{print $6}')
  41.  
  42. # Variable used to change the Frame Buffer resolution. Not needed.
  43. RES="1920 1080"
  44.  
  45.  
  46. echo "video id: "$videoid
  47. echo "video bus id: "$videobusid
  48. echo "audio id: "$audioid
  49. echo "audio bus id: "$audiobusid
  50. echo "usb id: "$usbid
  51. echo "usb bus id: "$usbbusid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement