Jump to content
wobblewoo

Cant Add NVIDEA 1070 to Windows VM

8 posts in this topic Last Reply

Recommended Posts

Hello. Im new and have just setup my first Windows Vm which works fine with VNC but as soon as i select my 1070 for passthrough i get this error:

 

internal error: qemu unexpectedly closed the monitor: 2020-02-13T16:56:08.622109Z qemu-system-x86_64: -device vfio-pci,host=0000:28:00.0,id=hostdev0,bus=pci.0,addr=0x5: vfio 0000:28:00.0: failed to setup container for group 16: Failed to set iommu for container: Operation not permitted

 

IOMMU group 16 is my graphics card.

IOMMU group 16:[10de:1b81] 28:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)

[10de:10f0] 28:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)

 

Can anyone help.

 

Thanks in advance

Share this post


Link to post

To clear out the obvious, have you also selected the audio device to be passed through to the VM?

Share this post


Link to post

Hello Squid. Yes i have. Ive also added a second sound card, the onboard sound too.

 

Ive tried removing the second and this didnt help.

 

 

Screen Shot 2020-02-13 at 18.06.37.png

Share this post


Link to post

For completeness, you should post the full diagnostics

Share this post


Link to post

Ive also tried editing the XML so the video and sound parts of the card are in the same virtual slot (with a custom BIOS), that doesn't work either.

 <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x28' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/user/isos/NVIDEA ROM/EVGA.GTX1070.8192.161103_1_edit.rom'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x28' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
    </hostdev>

 

Share this post


Link to post

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
Reply to this topic...

×   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.