canonical / charm-sysconfig

A subordinate charm to apply system settings like grub configurations or systemd configurations.
Apache License 2.0
0 stars 5 forks source link

Add support for GPU passthrough #28

Closed dashmage closed 9 months ago

dashmage commented 9 months ago

To enable gpu passthrough operator needs to pass two parameters to the kernel that are not currently supported by the charm.

vfio-pci.ids

and

module_blacklist

They both need to be added to GRUB_CMDLINE_LINUX_DEFAULT


Imported from Launchpad using lp2gh.

dashmage commented 9 months ago

(by andreashamacher) This can be achieved with existing methods. configure the sysconfig charm via grub-config-flags e.g. GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT nvme_core.multipath=0 console=tty0 modprobe.blacklist=nouveau modprobe.blacklist=nvidiafb iommu=pt vfio_iommu_type1.allow_unsafe_interrupts=1 pci-stub.ids=10de:20b0 vfio-pci.ids=10de:20b0 console=ttyS1"

also in case this is in conjunction with openstack the nova-compute charm has a config-parameter pci-passthrough-whitelist which is required to be set to make gpu passthrough work

Changing Status to "Invalid"