Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update VFIO to be bootc compliant #2150

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Conversation

HikariKnight
Copy link
Member

This will be kept as a draft in-case more changes are needed, but from what i can tell, dracut is being run as part of the build process so the vfio modules should be included into initramfs with the image with this inclusion.

the just recipes and the script for kvmfr has been updated to reflect this

also minor changes to heredocs in some recipes to make the just highlighting work for me in vscode when writing this.
I will be making a similar PR to Aurora with the same updates later.

It is a tool that lists pci devices and which groups they are in, and it lets you use flags to fine tune what you look for and what info you want.
@HikariKnight HikariKnight marked this pull request as ready for review January 22, 2025 09:05
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. dx Developer Experience Image specific labels Jan 22, 2025
@HikariKnight HikariKnight requested a review from m2Giles January 22, 2025 09:07
@@ -195,9 +195,6 @@ configure-vfio ACTION="":
echo "$VFIO_IDS"
VFIO_IDS_KARG="--delete-if-present=\"$VFIO_IDS\""
fi
echo "Removing dracut modules"
sudo rm /etc/dracut.conf.d/vfio.conf
rpm-ostree initramfs --enable
rpm-ostree kargs \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we still run kargs on a bootc-only system?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use it in bazzite, bootc just does not like the initramfs rebuilding and layering from my understanding.
but i can remove lact from my install and double check to be 100% sure

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just checked, can be used with kargs, just not layers and initramfs

options kvmfr static_size_mb=128
KVMFR_MODPROBE"
# Add kvmfr static size karg
rpm-ostree kargs --append-if-missing="kvmfr.static_size_mb=128"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the modprobe override here seems like what we should do with bootc, but maybe it just works?

Copy link
Member Author

@HikariKnight HikariKnight Jan 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably can and the looking-glass people would prefer it over using rpm-ostree kargs which is unique to fedora atomic, i am just following the change kyle did in bazzite to add the vfio modules to the image. :)

@HikariKnight HikariKnight marked this pull request as draft January 24, 2025 08:29
@HikariKnight
Copy link
Member Author

putting back to draft as i remembered there is a part i forgot to move over from bazzite, so will work on that later today or in the weekend hopefully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx Developer Experience Image specific size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants