I have a laptop PC setup in a muxless/optimus way with an intel
i7-7700HQ and an NVIDIA 1050Ti.
I've tried following this guide you can find here:
*Note:* I'm unsure if I was able to install the *patch firmwares*
correctly, specially because the tar files are no more.
I've followed the guide and I was able to read up until qemu startup
I made a launch script (see attachment) which is based on the one
suggested in the guide with some changes and adaptations based on what I
have found on the internet.
Currently, the VM starts and asks to press any key to install from CD.
Right after pressing any key, I get:
Which I fail to understand properly. It seems like I'm missing
configuration data but I don't understand what such configuration data
is. The "Status:" number didn't help either. I only found help related
to that for people not being able to boot windows.
As for the files mentioned in the script,
/usr/share/OVMF/OVMF_CODE.fd : [See the guide; the file is there]
WindowsVM.img: |qemu-img create -f raw WindowsVM.img 100G
|WIN_VARS.fd: [See the guide]
When I start QEMU, I do get the warning: (qemu) qemu-system-x86_64:
vfio-pci: Cannot read device rom at 0000:01:00.0
That's where the NVIDIA GPU is connected to. This warning happens at
times and not very consistent.
[1.619524] bbswitch: disabling discrete graphics
[1.639032] pci 0000:01:00.0: Refused to change power state, currently in D0
[2.354952] vfio-pci 0000:01:00.0: enabling device (0000 -> 0003)
[3.379141] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x1e@0x258
[3.379168] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[4.678656] vfio-pci 0000:01:00.0: Invalid PCI ROM header signature:
expecting 0xaa55, got 0xffff
[16.079068] bbswitch: disabling discrete graphics
[16.098593] pci 0000:01:00.0: Refused to change power state, currently in D0
Please help me successfully passing NVIDIA through to the VM. I'm quite
low on ideas