LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   libvirt qemu override (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/libvirt-qemu-override-4175723031/)

VictoriaPe 03-14-2023 07:42 AM

libvirt qemu override
 
I followed the Arch linux guide for Intel GVT-g and I was able to run Fedora as a guest using the virtual GPU. I cannot however use libvirt qemu override in my xml. I have tried virsh edit and the xml editor in virt-manager but the configuration fails to be validated and it's deleted. This is what I want to add
Code:

qemu:override>
    <qemu:device alias="hostdev0">
      <qemu:frontend>
        <qemu:property name="x-igd-opregion" type="bool" value="true"/>
        <qemu:property name="romfile" type="string" value="/vbios_gvt_uefi.rom"/>
        <qemu:property name="driver" type="string" value="vfio-pci-nohotplug"/>
      </qemu:frontend>
    </qemu:device>
  </qemu:override>


If I use <qemu:commandline> it works.

Code:

<qemu:commandline>
    <qemu:arg value="-set"/>
    <qemu:arg value="device.hostdev0.romfile=/vbios_gvt_uefi.rom"/>
    <qemu:arg value="-set"/>
    <qemu:arg value="device.hostdev0.driver=vfio-pci-nohotplug"/>
    <qemu:arg value="-set"/>
    <qemu:arg value="device.hostdev0.x-igd-opregion=on"/>
  </qemu:commandline>

Is it a bug? I am using libvirt 8.0 on linux Mint 21. Do you know a place where I can post libvirt specific questions?

VictoriaPe 03-14-2023 07:52 AM

I have found out that qemu override is available only from version 8.2. Problem solved.


All times are GMT -5. The time now is 04:10 PM.