You are not logged in.

#1 2023-05-26 07:40:29

mrmagic21
Member
Registered: 2023-05-26
Posts: 1

How do I passthrough a PCIe network card to an Arch VM?

Hey all, doing a first time Arch install in KVM; I'm running Kubuntu 22.04.2 on my machine and I have an Asus PCE AC88 3100 network card because my room in my house doesn't have an ethernet port. The card works natively on Kubuntu but I have no internet connection on my arch VM. I am using NAT on this VM. I tried setting up the VM again and this time adding a PCI host controller in KVM, and selected my wlo1 which is the wireless interface that connects to the internet on the host machine. When I tried to start the VM it gives me an error message that says:

Unable to complete install: 'internal error: qemu unexpectedly closed the monitor: 2023-05-26T07:36:26.400145Z qemu-system-x86_64: -device vfio-pci,host=0000:21:00.0,id=hostdev0,bus=pci.5,addr=0x0: vfio 0000:21:00.0: group 15 is not viable
Please ensure all devices within the iommu_group are bound to their vfio bus driver.'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
    installer.start_install(guest, meter=meter)
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 695, in start_install
    domain = self._create_guest(
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 637, in _create_guest
    domain = self.conn.createXML(initial_xml or final_xml, 0)
  File "/usr/lib/python3/dist-packages/libvirt.py", line 4400, in createXML
    raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2023-05-26T07:36:26.400145Z qemu-system-x86_64: -device vfio-pci,host=0000:21:00.0,id=hostdev0,bus=pci.5,addr=0x0: vfio

I only have experience setting up Linux VM's on windows and I just switched to using Linux as my daily driver OS so I've never ran into this before. I think I may need to do a PCIe passthrough but I'm not sure if that is the case, and if so I can only find information on passing through a GPU to a VM. Any insight as to how to solve this would be greatly appreciated!

Offline

#2 2023-05-26 08:15:11

seth
Member
Registered: 2012-09-03
Posts: 50,002

Re: How do I passthrough a PCIe network card to an Arch VM?

Please use [code][/code] tags. Edit your post in this regard.

Please ensure all devices within the iommu_group are bound to their vfio bus driver.

lscpi -tvnn

And probably try to put the card into a different PCI slot.

Online

Board footer

Powered by FluxBB