systemd-boot Configuration

Enabling flags needed for Dual GPU Passthrough.

You should be familiar with systemd-boot to make these modifications, these are not copy and paste commands. You must read and adapt to your configuration.

Start by issuing the sudo bootctl list command in your terminal to view your configurations.

Example console output:

type: Boot Loader Specification Type #1 (.conf)
title: Arch Linux (linux) (default) (selected)
id: 2023-08-12_19-47-44_ linux.conf 
source: /boot/loader/entries/2023-08-12_19-47-44_1inux.conf
linux: /boot/vmlinuz-linux
initrd: /boot/initramfs-linux. img
options: zswap.enabled=0 rw rootfstype-ext4

type: Boot Loader Specification Tupe #1 (.conf)
title: Arch Linux (linux-fallback)
id: 2023-08-12_19-47-44_1inux-fallback.conf
source: /boot/loader/entries/2023-08-12_19-47-44_Iinux-fallback.conf
linux: /boot/vmlinuz-linux
initrd: /boot/initramfs-linux-fallback.ing
options: zswap.enabled=0 rw rootfstype-ext4

type: Automatic
title: Reboot Into Firmware Interface id: auto-reboot-to-firmware-setup
source: /sus/firmware/efi/efivars/LoaderEntries-4267b082-0a4c-41cf-b6c7-440b29668c4f

You’ll want to note the path of your default boot configuration file.

Start by using your favorite terminal text editor. In this example, we’ll be using nano.

An example using nano to edit the Arch Linux (Linux) (Default) entry.

sudo nano /boot/loader/entries/2023-08-12_19-47-44_1inux.conf

We’ll need to add our secondary GPU’s Device ID’s to following flag.

vfio-pci.ids=

Example usage:

vfio-pci.ids=10de:06cd,10de:0be5

Example modified entry:

title Arch Linux (Linux)
linux /vmlinuz-linux
initrd /initramfs-linux.img
options zswap.enabled=0 rw rootfstype-ext4 vfio-pci.ids=10de:06cd,10de:0be5 iommu=pt video=efifb:off

Once you’re done adding the flags to the options, save the file and reboot.

Once back, you can issue the following command to view currently booted arguments to verify it applied, and you’ve booted with said updated args.

cat /proc/cmdline

Example output

zswap.enabled=0 rw rootfstype-ext4 vfio-pci.ids=10de:06cd,10de:0be5 iommu=pt video=efifb:off

You can now continue to the next page.


DarwinKVM Docs Version 2.0.0~prerelease
Copyright © 2024 RoyalGraphX. Distributed by a BSD 3-Clause License.
Last Modified: Sat, 7 Sep 2024 18:00:00 CDT