Jump to content
  • [7.0.0-beta.2] VM XML error after switching to GPU passthrough and back to virtual.


    enJOyIT
    • Solved Minor

     I played a bit around with VM and GPU passthrough. When I try to switch back to virtuaI get this error:

    image.png.cf67118d61a0783e1d979f04be7c53fe.png

     

    I had choosen AMD Raphael before and when I start the VM the whole host GUI was unresponsive so I had to do a hard reboot, because "reboot" via cmd didn't work as well (stucks at unmounting drives). I think that should never happen...

     

    image.png.e4e8122002194cd12e1454ebf5fd82fd.png

     

    My VM-xml:

     

    <?xml version='1.0' encoding='UTF-8'?>
    <domain type='kvm'>
      <name>Video</name>
      <uuid>44a7927b-8d15-b11c-7957-0b95882dfc5c</uuid>
      <metadata>
        <vmtemplate xmlns="unraid" name="Windows 11" icon="windows11.png" os="windowstpm" webui="" storage="default"/>
      </metadata>
      <memory unit='KiB'>8388608</memory>
      <currentMemory unit='KiB'>8388608</currentMemory>
      <memoryBacking>
        <nosharepages/>
      </memoryBacking>
      <vcpu placement='static'>5</vcpu>
      <cputune>
        <vcpupin vcpu='0' cpuset='0'/>
        <vcpupin vcpu='1' cpuset='12'/>
        <vcpupin vcpu='2' cpuset='28'/>
        <vcpupin vcpu='3' cpuset='14'/>
        <vcpupin vcpu='4' cpuset='30'/>
      </cputune>
      <os>
        <type arch='x86_64' machine='pc-i440fx-8.2'>hvm</type>
        <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi-tpm.fd</loader>
        <nvram>/etc/libvirt/qemu/nvram/44a7927b-8d15-b11c-7957-0b95882dfc5c_VARS-pure-efi-tpm.fd</nvram>
      </os>
      <features>
        <acpi/>
        <apic/>
        <hyperv mode='custom'>
          <relaxed state='on'/>
          <vapic state='on'/>
          <spinlocks state='on' retries='8191'/>
          <vpindex state='on'/>
          <synic state='on'/>
          <stimer state='on'/>
          <vendor_id state='on' value='none'/>
        </hyperv>
      </features>
      <cpu mode='host-passthrough' check='none' migratable='on'>
        <topology sockets='1' dies='1' clusters='1' cores='5' threads='1'/>
        <cache mode='passthrough'/>
        <feature policy='require' name='topoext'/>
      </cpu>
      <clock offset='localtime'>
        <timer name='hpet' present='no'/>
        <timer name='hypervclock' present='yes'/>
      </clock>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>restart</on_crash>
      <devices>
        <emulator>/usr/local/sbin/qemu</emulator>
        <disk type='file' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source file='/mnt/vm/domains/win-video/vdisk1.img'/>
          <target dev='hdc' bus='virtio'/>
          <serial>vdisk1</serial>
          <boot order='1'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x18' function='0x0'/>
        </disk>
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw'/>
          <source file='/mnt/user/isos/virtio-win-0.1.248-1.iso'/>
          <target dev='hdb' bus='sata'/>
          <readonly/>
          <address type='drive' controller='0' bus='0' target='0' unit='1'/>
        </disk>
        <controller type='pci' index='0' model='pci-root'/>
        <controller type='pci' index='1' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='1'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
        </controller>
        <controller type='pci' index='2' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='2'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
        </controller>
        <controller type='pci' index='3' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='3'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
        </controller>
        <controller type='pci' index='4' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='4'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
        </controller>
        <controller type='pci' index='5' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='5'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
        </controller>
        <controller type='pci' index='6' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='6'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
        </controller>
        <controller type='pci' index='7' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='7'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
        </controller>
        <controller type='pci' index='8' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='8'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
        </controller>
        <controller type='pci' index='9' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='9'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
        </controller>
        <controller type='pci' index='10' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='10'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'/>
        </controller>
        <controller type='pci' index='11' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='11'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0d' function='0x0'/>
        </controller>
        <controller type='pci' index='12' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='12'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0e' function='0x0'/>
        </controller>
        <controller type='pci' index='13' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='13'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0f' function='0x0'/>
        </controller>
        <controller type='pci' index='14' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='14'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x10' function='0x0'/>
        </controller>
        <controller type='pci' index='15' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='15'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x11' function='0x0'/>
        </controller>
        <controller type='pci' index='16' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='16'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x12' function='0x0'/>
        </controller>
        <controller type='pci' index='17' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='17'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x13' function='0x0'/>
        </controller>
        <controller type='pci' index='18' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='18'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x14' function='0x0'/>
        </controller>
        <controller type='pci' index='19' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='19'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x15' function='0x0'/>
        </controller>
        <controller type='pci' index='20' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='20'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x16' function='0x0'/>
        </controller>
        <controller type='pci' index='21' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='21'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x17' function='0x0'/>
        </controller>
        <controller type='pci' index='22' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='22'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x18' function='0x0'/>
        </controller>
        <controller type='pci' index='23' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='23'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x19' function='0x0'/>
        </controller>
        <controller type='pci' index='24' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='24'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x1a' function='0x0'/>
        </controller>
        <controller type='pci' index='25' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='25'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
        </controller>
        <controller type='pci' index='26' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='26'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x1c' function='0x0'/>
        </controller>
        <controller type='pci' index='27' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='27'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x0'/>
        </controller>
        <controller type='pci' index='28' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='28'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
        </controller>
        <controller type='pci' index='29' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='29'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x0'/>
        </controller>
        <controller type='pci' index='30' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='30'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
        </controller>
        <controller type='pci' index='31' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='31'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x02' function='0x0'/>
        </controller>
        <controller type='pci' index='32' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='32'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x03' function='0x0'/>
        </controller>
        <controller type='pci' index='33' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='33'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x04' function='0x0'/>
        </controller>
        <controller type='pci' index='34' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='34'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x05' function='0x0'/>
        </controller>
        <controller type='pci' index='35' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='35'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x06' function='0x0'/>
        </controller>
        <controller type='pci' index='36' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='36'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x07' function='0x0'/>
        </controller>
        <controller type='pci' index='37' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='37'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x08' function='0x0'/>
        </controller>
        <controller type='pci' index='38' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='38'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x09' function='0x0'/>
        </controller>
        <controller type='pci' index='39' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='39'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x0a' function='0x0'/>
        </controller>
        <controller type='pci' index='40' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='40'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x0b' function='0x0'/>
        </controller>
        <controller type='pci' index='41' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='41'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x0c' function='0x0'/>
        </controller>
        <controller type='pci' index='42' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='42'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x0d' function='0x0'/>
        </controller>
        <controller type='pci' index='43' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='43'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x0e' function='0x0'/>
        </controller>
        <controller type='pci' index='44' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='44'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x0f' function='0x0'/>
        </controller>
        <controller type='pci' index='45' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='45'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x10' function='0x0'/>
        </controller>
        <controller type='pci' index='46' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='46'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x11' function='0x0'/>
        </controller>
        <controller type='pci' index='47' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='47'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x12' function='0x0'/>
        </controller>
        <controller type='pci' index='48' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='48'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x13' function='0x0'/>
        </controller>
        <controller type='pci' index='49' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='49'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x14' function='0x0'/>
        </controller>
        <controller type='sata' index='0'>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x16' function='0x0'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x17' function='0x0'/>
        </controller>
        <controller type='usb' index='0' model='ich9-ehci1'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci1'>
          <master startport='0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci2'>
          <master startport='2'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci3'>
          <master startport='4'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
        </controller>
        <interface type='direct' trustGuestRxFilters='yes'>
          <mac address='ce:7e:9d:f7:87:35'/>
          <source dev='vhost0' mode='bridge'/>
          <model type='virtio-net'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x15' function='0x0'/>
        </interface>
        <serial type='pty'>
          <target type='isa-serial' port='0'>
            <model name='isa-serial'/>
          </target>
        </serial>
        <console type='pty'>
          <target type='serial' port='0'/>
        </console>
        <channel type='unix'>
          <target type='virtio' name='org.qemu.guest_agent.0'/>
          <address type='virtio-serial' controller='0' bus='0' port='1'/>
        </channel>
        <input type='mouse' bus='ps2'/>
        <input type='keyboard' bus='ps2'/>
        <tpm model='tpm-tis'>
          <backend type='emulator' version='2.0' persistent_state='yes'/>
        </tpm>
        <audio id='1' type='none'/>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
          </source>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x19' function='0x0'/>
        </hostdev>
        <memballoon model='none'/>
      </devices>
    </domain>

     




    User Feedback

    Recommended Comments

     I played a bit around with VM and GPU passthrough. When I try to switch back to virtuaI get this error:

     

    Can was made to fix an issue of changing from a GPU back to virtual. This sets video to use these pci settings.

     

    <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>

     

    You seem to have a lot of pci controllers in the xml. Do other VMs have as many?

     

    Could you post diagnostics?

    • Like 1
    Link to comment

    removed these pci devices. I don't know where did they come from...

     

    It's working now!

     

    thank you!

    • Like 1
    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...