Modprobe vfio-pci not working inside VM, what do I do wrong?

1.6k views Asked by At

I have been trying to load the vfio-pci module into the kernel using the "modprobe vfio-pci" command with no success.

I am a newbie when it comes to low level programming, so I suspect I might be doing something wrong.

What I tried:

  1. sudo modprobe vfio-pci // nothing shown in lsmod about vfio

  2. modprobe vfio enable_unsafe_noiommu_mode=1 // still, nothing shown in lsmod

  3. Added iommu=on as kernel parameter // i am not sure if this is more of a dpdk matter though

Why am I doing this?

I am trying to use DPDK, so I need to load that module as shown here.

Environment:

I have tried this inside virtual machines built in VirtualBox, VMWare, Qemu. It did not work in any of them. The host is Ubuntu 20.04 and the Guest is Ubuntu 20.04 as well.

CPU information: print-screen.

edit1: forgot to mention, both modinfo vfio-pci and modinfo vfio display information about those modules, so i guess they are not missing.

0

There are 0 answers