clayfreeman / gpu-passthrough

A GPU passthrough tutorial using libvirt and KVM on GNU/Linux
https://clayfreeman.github.io/gpu-passthrough/
Other
90 stars 14 forks source link

TroubleShooting with the Tesla M40 24GB #9

Open Myrkie opened 1 year ago

Myrkie commented 1 year ago

just a note in the future when using a GPU with a larger than normal VRAM size such as my experience with the NVIDIA TESLA M40 24GB which has a 24GB Vram size, QEMU will give you an error code 12 in the windows operating system, this can be fixed by following the libvirt documentation for adding launch arguments for the VM QEMU command-line passthrough, also make sure to enable "Above 4G decoding / Resizable Bar" in your systems bare metal bios

ive also had issues with the script for dumping the GPU Rom for it as it doesn't have /rom accessible to the file system I had better luck using a rom already dumped by someone on the techpowerup you can also dump it yourself using NVFlash also provided by techpowerup, the GPU has no video output as its a datacenter card but the rom is still required or else you will get a code 10 error.

Command that worked for me by Laszlo Ersek

  <domain
   type='kvm'
   xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
    <qemu:commandline>
      <qemu:arg value='-fw_cfg'/>
      <qemu:arg value='opt/ovmf/X-PciMmio64Mb,string=65536'/>
    </qemu:commandline>
  </domain>