An open API service indexing awesome lists of open source software.

https://github.com/sonodima/ymmv-fedora36-gpu-pt

YMMV Fedora 36 GPU Passthrough For Kids
https://github.com/sonodima/ymmv-fedora36-gpu-pt

Last synced: about 2 months ago
JSON representation

YMMV Fedora 36 GPU Passthrough For Kids

Awesome Lists containing this project

README

        

# YMMV Fedora 36 GPU Passthrough For Kids

This is as easy as VFIO GPU passthrough gets.

Note that this is not a generic configuration, and comes with deal-breaking drawbacks if you don't own the same hardware config used in this guide.

## Hardware Configuration

- INTEL CPU _(with integrated graphics, or alternatively a secondary AMD gpu)_
- NVIDIA GPU _(that is going to be passed through to the VM)_

## Setup

### Configuring Kernel Args

- Blacklist NVIDIA _(nouveau)_ drivers
- Enable IOMMU

```sh
sudo grubby --args="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau rd.driver.pre=vfio-pci iommu=pt intel_iommu=on kvm.ignore_msrs=1 allow_unsafe_interrupts=1" --update-kernel=/boot/vmlinuz-$(uname -r)
```

### Adding VFIO Kernel Drivers

```sh
sudo echo 'add_drivers+=" vfio vfio_iommu_type1 vfio_pci vfio_virqfd "' >> /etc/dracut.conf.d/local.conf
sudo dracut -f --kver $(uname -r)
```

### Installing Virtualization Packages

```sh
sudo dnf install @virtualization
sudo systemctl start libvirtd
sudo systemctl enable libvirtd
```

### Reboot!

```sh
sudo reboot
```

## Extras

### Installing Cockpit WebUI

> The Web interface is available at localhost:9090

```sh
sudo dnf install cockpit
sudo dnf install cockpit-machines
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --add-service=cockpit
sudo firewall-cmd --add-service=cockpit --permanent
```