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
- Host: GitHub
- URL: https://github.com/sonodima/ymmv-fedora36-gpu-pt
- Owner: sonodima
- Created: 2022-05-26T07:01:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T08:32:21.000Z (almost 3 years ago)
- Last Synced: 2025-02-03T12:21:52.125Z (4 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```