I just upgraded to Debian kernel 6.1.0-33-amd64
last night and when I rebooted into the new kernel, my Incus virtual machines using PCI passthrough NICs are not able to start and throw a VFIO_MAP_DMA
error. Rebooting back into 6.1.0-32-amd64
resolves the issue.
Any ideas?
# incus --version
6.11
# uname -a
Linux 6.1.0-33-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.133-1 (2025-04-10) x86_64 GNU/Linux
# incus start router
Error: Failed setting up device via monitor: Failed setting up device "eth0": Failed adding NIC device: vfio 0000:02:00.1: failed to setup container for group 14: memory listener initialization failed: Region pc.rom: vfio_container_dma_map(0x561cdf6e3740, 0xc0000, 0x20000, 0x7f1fb7a00000) = -12 (Cannot allocate memory)
Try `incus info --show-log router` for more info
# incus info --show-log router
Name: router
Description:
Status: STOPPED
Type: virtual-machine
Architecture: x86_64
Created: 2024/01/16 20:05 UTC
Last Used: 2025/03/16 08:09 UTC
Log:
VFIO_MAP_DMA failed: Cannot allocate memory
# incus profile show router
config:
boot.autostart: "true"
boot.autostart.delay: "60"
boot.autostart.priority: "4"
boot.stop.priority: "2"
limits.cpu: 3-3
limits.cpu.priority: "10"
limits.disk.priority: "10"
limits.memory: 4GiB
limits.memory.enforce: soft
limits.memory.swap: "false"
security.secureboot: "false"
description: Soft Router
devices:
eth0:
name: eth0
nictype: physical
parent: eno2
type: nic
eth1:
name: eth1
nictype: physical
parent: eno3
type: nic
eth2:
name: eth2
nictype: physical
parent: eno4
type: nic
root:
path: /
pool: default
type: disk
name: router
used_by:
- /1.0/instances/router