Unraid更新至6.11.5后虚拟机安装WIN10直通核显后内存被显存大量占用的解决方式

warning: 这篇文章距离上次修改已过740天,其中的内容可能已经有所变动。

unraid更新至6.11后,之前处理显存的方式失效了,需要采用新的方式。
关闭虚拟机后使用高级XML模式编辑虚拟机,
将第二行修改为:

<domain xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' type='kvm'> 

然后在后面插入

<qemu:override>
 <qemu:device alias="hostdev0">
  <qemu:frontend>
   <qemu:property name="x-igd-opregion" type="bool" value="true"/>
   <qemu:property name='x-igd-gms' type='unsigned' value='1'/>
  </qemu:frontend>
  </qemu:device>
</qemu:override>

点击 更新 保存更新后启动虚拟机。恢复到正常的内存占用。

2023年3月25日更新去虚拟化代码

 <qemu:commandline>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='host,-hypervisor,+kvm_pv_unhalt,+kvm_pv_eoi,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,kvm=off,hv_vendor_id=intel'/>
 </qemu:commandline>
none
最后修改于:2023年03月25日 04:18