<div dir="ltr"><div><br></div><div>Hello guys,</div><div><br></div><div>this drives me insane. I am trying to pass romfile of my GPU for UEFI boot </div><div><br></div><div>This is an error I am getting :<br></div><div><br></div><div><div>[root@brutus-coreos opt]# virsh start winos1</div><div>error: Failed to start domain winos1</div><div>error: internal error: early end of file from monitor: possible problem:</div><div>2016-02-07T16:56:09.358285Z qemu-system-x86_64: -device vfio-pci,host=01:00.0,id=hostdev0,bus=pci.0,addr=0x6,romfile=/opt/MSI.R9380.4096.150713.rom: failed to find romfile "/opt/MSI.R9380.4096.150713.</div></div><div><br></div><div><br></div><div>The file is there , even owned by qemu</div><div><br></div><div><div>[root@brutus-coreos opt]# cd /opt</div><div>[root@brutus-coreos opt]# ls -lsa</div><div>total 136</div><div>  4 drwxr-xr-x.  2 root root   4096 Feb  7 17:53 .</div><div>  4 dr-xr-xr-x. 18 root root   4096 Feb  4 18:58 ..</div><div>128 -rw-rw-r--.  1 qemu qemu 131072 Feb  7 17:53 MSI.R9380.4096.150713.rom</div></div><div><br></div><div>I have tried to put it into /var/lib/libvirt/images or /usr/share/qemu , but it ends with the same error.</div><div><br></div><div>This is my libvirt XML<br></div><div><br></div><div><div>[david@brutus-coreos ~]$ sudo virsh dumpxml winos1</div><div>[sudo] password for david: </div><div><domain type='kvm'></div><div>  <name>winos1</name></div><div>  <uuid>64dfaf21-e556-4e0c-bfc9-676f5fcf3e06</uuid></div><div>  <memory unit='KiB'>15360000</memory></div><div>  <currentMemory unit='KiB'>15360000</currentMemory></div><div>  <vcpu placement='static'>8</vcpu></div><div>  <os></div><div>    <type arch='x86_64' machine='pc-i440fx-2.4'>hvm</type></div><div>    <loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader></div><div>    <nvram>/var/lib/libvirt/qemu/nvram/winos1_VARS.fd</nvram></div><div>    <boot dev='hd'/></div><div>  </os></div><div>  <features></div><div>    <acpi/></div><div>    <apic/></div><div>    <hyperv></div><div>      <relaxed state='on'/></div><div>      <vapic state='on'/></div><div>      <spinlocks state='on' retries='8191'/></div><div>    </hyperv></div><div>    <vmport state='off'/></div><div>  </features></div><div>  <cpu mode='host-passthrough'></div><div>    <topology sockets='1' cores='4' threads='2'/></div><div>  </cpu></div><div>  <clock offset='localtime'></div><div>    <timer name='rtc' tickpolicy='catchup'/></div><div>    <timer name='pit' tickpolicy='delay'/></div><div>    <timer name='hpet' present='no'/></div><div>    <timer name='hypervclock' present='yes'/></div><div>  </clock></div><div>  <on_poweroff>destroy</on_poweroff></div><div>  <on_reboot>restart</on_reboot></div><div>  <on_crash>restart</on_crash></div><div>  <pm></div><div>    <suspend-to-mem enabled='no'/></div><div>    <suspend-to-disk enabled='no'/></div><div>  </pm></div><div>  <devices></div><div>    <emulator>/usr/bin/qemu-kvm</emulator></div><div>    <disk type='file' device='disk'></div><div>      <driver name='qemu' type='raw'/></div><div>      <source file='/dev/ssd/winos1'/></div><div>      <target dev='vda' bus='virtio'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/></div><div>    </disk></div><div>    <disk type='file' device='disk'></div><div>      <driver name='qemu' type='raw'/></div><div>      <source file='/dev/hdd/windata1'/></div><div>      <target dev='vdb' bus='virtio'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x0d' function='0x0'/></div><div>    </disk></div><div>    <controller type='usb' index='0' model='nec-xhci'></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></div><div>    </controller></div><div>    <controller type='sata' index='0'></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/></div><div>    </controller></div><div>    <controller type='pci' index='0' model='pci-root'/></div><div>    <controller type='virtio-serial' index='0'></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/></div><div>    </controller></div><div>    <interface type='direct'></div><div>      <mac address='52:54:00:31:bc:b8'/></div><div>      <source dev='enp0s31f6' mode='bridge'/></div><div>      <model type='virtio'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/></div><div>    </interface></div><div>    <hostdev mode='subsystem' type='pci' managed='yes'></div><div>      <source></div><div>        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/></div><div>      </source></div><div>      <rom file='/opt/MSI.R9380.4096.150713.rom'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/></div><div>    </hostdev></div><div>    <hostdev mode='subsystem' type='pci' managed='yes'></div><div>      <source></div><div>        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/></div><div>      </source></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/></div><div>    </hostdev></div><div>    <hostdev mode='subsystem' type='pci' managed='yes'></div><div>      <source></div><div>        <address domain='0x0000' bus='0x00' slot='0x14' function='0x0'/></div><div>      </source></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/></div><div>    </hostdev></div><div>    <hostdev mode='subsystem' type='pci' managed='yes'></div><div>      <source></div><div>        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/></div><div>      </source></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/></div><div>    </hostdev></div><div>    <memballoon model='virtio'></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/></div><div>    </memballoon></div><div>    <rng model='virtio'></div><div>      <backend model='random'>/dev/random</backend></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'/></div><div>    </rng></div><div>    <panic></div><div>      <address type='isa' iobase='0x505'/></div><div>    </panic></div><div>  </devices></div><div></domain></div></div><div><br></div><div>Any help would be appreciated</div><div><br></div><div><br></div><div><br></div><div><br></div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div>David Hlacik</div><div> </div><div>+420-777-307-745 | <a href="mailto:david@hlacik.cz" target="_blank">david@hlacik.cz</a></div><div><br></div><div dir="ltr"><a href="http://cz.linkedin.com/in/hlacik" target="_blank"><img src="https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png" alt=" View David Hlacik's profile on LinkedIn"></a><br></div></div></div></div></div>
</div>