Advertisement
Querzion

Masterfighterr - XML EDITING

Apr 5th, 2023
849
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.98 KB | Source Code | 0 0
  1. REPLACE <domain> WITH THIS
  2.  
  3. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  4.  
  5. RUN THIS IN THE SAME DIRECTORY name-files FOLDER IS IN
  6.  
  7. sudo cp -r name-files/ /etc/libvirt/hooks/qemu.d/name
  8.  
  9. PUT THIS BELOW <sound>
  10.  
  11. <audio id="1" type="jack">
  12. <input clientName="name" connectPorts="input-name"/>
  13. <output clientName="name" connectPorts="output-name"/>
  14. </audio>
  15.  
  16. HOW <qemu:commandline> SHOULD LOOK, DONT ADD LAST PART UNTIL EVERYTHING ELSE IS FINISHED
  17.  
  18. <qemu:commandline>
  19. <qemu:env name="PIPEWIRE_RUNTIME_DIR" value="/run/user/1000"/>
  20. <qemu:env name="PIPEWIRE_LATENCY" value="512/48000"/>
  21. <qemu:arg value='-overcommit'/>
  22. <qemu:arg value='cpu-pm=on'/>
  23. </qemu:commandline>
  24.  
  25. ADD BELOW <current memory> LINE
  26.   <memoryBacking>
  27.   <hugepages/>
  28. </memoryBacking>
  29.  
  30. ADD TO <hyperv> SECTION
  31.  
  32. <vpindex state="on"/>
  33. <synic state="on"/>
  34. <stimer state="on"/>
  35. <reset state="on"/>
  36. <frequencies state="on"/>
  37. <vendor_id state="on" value="randomid"/>
  38.  
  39. THIS GOES BELOW <vcpu> LINE
  40.  
  41.   <iothreads>1</iothreads>
  42.   <cputune>
  43.     <vcpupin vcpu="0" cpuset="6"/>
  44.     <vcpupin vcpu="1" cpuset="18"/>
  45.     <vcpupin vcpu="2" cpuset="7"/>
  46.     <vcpupin vcpu="3" cpuset="19"/>
  47.     <vcpupin vcpu="4" cpuset="8"/>
  48.     <vcpupin vcpu="5" cpuset="20"/>
  49.     <vcpupin vcpu="6" cpuset="9"/>
  50.     <vcpupin vcpu="7" cpuset="21"/>
  51.     <vcpupin vcpu="8" cpuset="10"/>
  52.     <vcpupin vcpu="9" cpuset="22"/>
  53.     <vcpupin vcpu="10" cpuset="11"/>
  54.     <vcpupin vcpu="11" cpuset="23"/>
  55.     <emulatorpin cpuset="0-5,12-17"/>
  56.     <iothreadpin iothread="1" cpuset="0-5,12-17"/>
  57.   </cputune>
  58.  
  59. THIS GOES BELOW <cpu mode="host-passthrough" check="none" migratable="on"> LINE
  60.  
  61. <cache mode="passthrough"/>
  62. <feature policy="require" name="topoext"/>
  63.  
  64. THIS GOES IN looking-glass-host.ini IN WINDOWS (O N L Y  N V I D I A!!!)
  65.  
  66. [app]
  67. capture=NVFBC
  68.  
  69. RUN THIS AFTER EXTRACTING IddSampleDriver TO THE C:\ DIRECTORY!
  70.  
  71. .\certmgr.exe /add IddSampleDriver.cer /s /r localMachine root
  72.  
  73. ADD THIS A F T E R LOOKING GLASS AND GPU DRIVERS ARE WORKING!!!
  74.  
  75. THIS GOES IN .bashrc
  76.  
  77. alias spice='looking-glass-client -F -f /dev/kvmfr0'
  78.  
  79. THIS GOES IN /etc/modprobe.d/kvmfr.conf
  80.  
  81. #KVMFR Looking Glass Module
  82. options kvmfr static_size_mb=128
  83.  
  84. THIS GOES IN /etc/udev/rules.d/99-kvmfr.rules
  85.  
  86. SUBSYSTEM=="kvmfr", OWNER="<YOURUSERNAME>", GROUP="kvm", MODE="0660"
  87.  
  88. <qemu:arg value='-device'/>
  89.   <qemu:arg value='ivshmem-plain,id=shmem0,memdev=looking-glass'/>
  90.   <qemu:arg value='-object'/>
  91.   <qemu:arg value='memory-backend-file,id=looking-glass,mem-path=/dev/kvmfr0,size=128M,share=yes'/>
  92.  
  93. DON'T FORGET TO ADD THIS TO YOUR /etc/libvirt/qemu.conf!'
  94.  
  95. find this section and uncomment it:
  96. #cgroup_device_acl = [
  97. #    "/dev/null", "/dev/full", "/dev/zero",
  98. #    "/dev/random", "/dev/urandom",
  99. #    "/dev/ptmx", "/dev/kvm"
  100. #]
  101.  
  102. Add "/dev/kvmfr0" at the end of it, it should look like this
  103.  
  104. cgroup_device_acl = [
  105.     "/dev/null", "/dev/full", "/dev/zero",
  106.     "/dev/random", "/dev/urandom",
  107.     "/dev/ptmx", "/dev/kvm", "/dev/kvmfr0"
  108. ]
  109.  
  110.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement