VM will not boot with IOMMU for nvidia GPU on Ubuntu 22.04 #6
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
RAM: 32GB (reduced to 2048)
NUMA enabled
Hotplug CPU/Mem enabled
Added for CPU:
/lib/udev/rules.d/80-hotplug-cpu.rules
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
According to documentation, nothing else needs to be added for hot memory.
Seeing this on boot up of the VM:
Oct 01 08:04:49 myhost QEMU[1019150]: kvm: VFIO_MAP_DMA failed: Invalid argument
Oct 01 08:04:49 myhost QEMU[1019150]: kvm: vfio_container_dma_map(0x5ae448831540, 0x3ffc00000000, 0x400000000, 0x706d10000000) = -22 (Invalid argument)
Oct 01 08:04:49 myhost QEMU[1019150]: kvm: VFIO_MAP_DMA failed: Invalid argument
Oct 01 08:04:49 myhost QEMU[1019150]: kvm: vfio_container_dma_map(0x5ae448831540, 0x400000000000, 0x2000000, 0x70715e000000) = -22 (Invalid argument)
Oct 01 08:04:49 myhost QEMU[1019150]: kvm: kvm_set_user_memory_region: KVM_SET_USER_MEMORY_REGION failed, slot=10, start=0x400000000000, size=0x2000000: Invalid argument
Oct 01 08:04:49 myhost QEMU[1019150]: kvm_set_phys_mem: error registering slot: Invalid argument
For IOMMU to work, you must add a PCI device
If you remove this device, the VM boots just fine and the above errors go away.
The text was updated successfully, but these errors were encountered: