Arch Linux PCIE Passthrough: Initramfs Hang

I've been following the Arch Wiki unto this point, and I've been unable to boot after adding the vfio modules to the init image.

My mkinitcpio.conf includes the following:

MODULES="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"
HOOKS="base udev autodetect modconf block keyboard encrypt1 encrypt2 encrypt3 encrypt4 encrypt5 encrypt6 lvm2 zfs filesystems"

The only relevant kernel parameter I've included at the point is:

intel_iommu=on

The boot debug logs are the following:

Entry "/dev/mapper/control" matches include prefix "/dev".
Entry "/dev/vfio" matches include prefix "/dev".
Entry "/dev/vfio/vfio" matches include prefix "/dev".
Running create action for entry d /dev/mapper
Created directory "/dev/mapper".
"/dev/mapper" has right mode 40755
Running create action for entry c /dev/mapper/control
Created char device node "/dev/mapper/control" 1:128.
"/dev/mapper/control" has right mode 20600
Running create action for entry d /dev/vfio
Created directory "/dev/vfio".
"/dev/vfio" has right mode 40755
Running create action for entry c /dev/vfio/vfio
Created char device node "/dev/vfio/vfio" 1:128.
"/dev/vfio/vfio" has right mode 20600
set children_max to 24
did not find dedicated cgroup: No medium found
starting version 229
hwdb.bin does not exist, please run udevadm hwdb --update
:: running early hook [lvm2]
Load module index
Created link configuration context.
timestamp of '/usr/lib/udev/rules.d' changed
Reading rules file: /usr/lib/udev/rules.d/10-dm.rules
Reading rules file: /usr/lib/udev/rules.d/11-dm.rules
Reading rules file: /usr/lib/udev/rules.d/11-dm-initramfs.rules
Reading rules file: /usr/lib/udev/rules.d/11-dm-lvm.rules
[    0.504718] VFIO - User Level meta-driver version: 0.3
Reading rules file: /usr/lib/udev/rules.d/13-dm-disk.rules
Reading rules file: /usr/lib/udev/rules.d/50-udev-default.rules

The boot does not preceed further. I haven't blacklisted any video drivers, though I also haven't installed any yet.

For completion's sake, the hardware is:
* i7-4790
* Asus Z97 Sabertooth Mark II
* Radeon R9 290

Thanks!

Are you trying to boot to a terminal or GUI? Do you get the state of booting on the terminal?

It hangs in the init disk, before any shell is invoked. No gui

Try having a look through the guide I wrote with help from the Tek Syndicate community to see if you missed anything https://gist.github.com/benjamingwynn/54480cc2ff8f14a9244854cacb4e640b

EDIT: I notice people are still clicking this link, so I’ve updated it to one that’s still up. I don’t know if the tutorial I wrote is still relevant, however.

1 Like

This is hella thorough. I'll give it to a go. Thanks!

No problem! It took a few days to write, but other members helped improve parts that were lacking and add stuff that was missing.

I hope it helps you :)