filmov
tv
Single GPU Passthrough Tutorial - KVM/VFIO

Показать описание
The world's first and world's best video tutorial on single gpu passthrough. Play video games in a Windows VM running on Linux
# LINKS #
# Chapters and Links and Commands by Timestamp#
0:00 Intro
1:14 Update your OS
sudo dnf update
1:37 Installing nvidia drivers
lspci -nnk
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
2:37 Install UNIGINE Valley
cd ~/Downloads
chmod a+x UnigineValley
cd Unigine_Valley-1.0
./valley
4:00 Benchmark Results (on Host)
4:16 UEFI/BIOS Settings
Enable "Virtualization" and "VT-d"
4:49 Install Stuff
sudo dnf groupinstall --withoptional virtualization
5:10 Configure Linux
sudo vi /etc/sysconfig/grub
Content to add: intel_iommu=on iommu=pt
add_driver+=" vfio vfio_iommu_type1 vfio_pci vfio_virqfd "
sudo dracut -f --kver `uname -r`
6:24 Verify Linux Setup
lsmod | grep kvm
dmesg | grep -i iommu
cat /proc/cmdline
lspci -nnk
7:30 Downloads
7:46 Create the VM
9:30 Installing Windows
10:00 Virtual Disk Performance
11:39 VM Network Connection
11:55 Remote Display
ip addr
13:42 Install Hook Helper
sudo mkdir -p /etc/libvirt/hooks
sudo chmod +x /etc/libvirt/hooks/qemu
sudo service libvirtd restart
11:14 Writing the Hook Scripts
mkdir -p /etc/libvirt/hooks/qemu.d/win10-vm1-singlegpu/prepare/begin
mkdir -p /etc/libvirt/hooks/qemu.d/win10-vm1-singlegpu/release/end
14:50 Customize Hook Scripts
lspci -nnk
15:45 Test and Fix Hook Scripts
sudo systemctl start sshd
/etc/libvirt/hooks/qemu.d/win10-vm1-singlegpu/prepare/begin
lsmod | grep nv
sudo rmmod nvidia_drm
sudo rmmod nvidia_uvm
sudo rmmod nvidia_modeset
sudo rmmod nvidia
18:53 Add GPU to the VM
19:34 Install GPU Drivers
20:04 Mouse and Keyboard
20:40 Install UNIGINE Valley
21:43 Benchmark Results (on Guest)
21:55 Closing Thoughts
22:27 Bonus Message
# External Links #
# Corrections #
If you're having trouble connecting to the VNC on another computer, try disabling firewalld with the command: systemctl stop firewalld
# My Links #
you can find my other creative endeavors at:
# LINKS #
# Chapters and Links and Commands by Timestamp#
0:00 Intro
1:14 Update your OS
sudo dnf update
1:37 Installing nvidia drivers
lspci -nnk
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
2:37 Install UNIGINE Valley
cd ~/Downloads
chmod a+x UnigineValley
cd Unigine_Valley-1.0
./valley
4:00 Benchmark Results (on Host)
4:16 UEFI/BIOS Settings
Enable "Virtualization" and "VT-d"
4:49 Install Stuff
sudo dnf groupinstall --withoptional virtualization
5:10 Configure Linux
sudo vi /etc/sysconfig/grub
Content to add: intel_iommu=on iommu=pt
add_driver+=" vfio vfio_iommu_type1 vfio_pci vfio_virqfd "
sudo dracut -f --kver `uname -r`
6:24 Verify Linux Setup
lsmod | grep kvm
dmesg | grep -i iommu
cat /proc/cmdline
lspci -nnk
7:30 Downloads
7:46 Create the VM
9:30 Installing Windows
10:00 Virtual Disk Performance
11:39 VM Network Connection
11:55 Remote Display
ip addr
13:42 Install Hook Helper
sudo mkdir -p /etc/libvirt/hooks
sudo chmod +x /etc/libvirt/hooks/qemu
sudo service libvirtd restart
11:14 Writing the Hook Scripts
mkdir -p /etc/libvirt/hooks/qemu.d/win10-vm1-singlegpu/prepare/begin
mkdir -p /etc/libvirt/hooks/qemu.d/win10-vm1-singlegpu/release/end
14:50 Customize Hook Scripts
lspci -nnk
15:45 Test and Fix Hook Scripts
sudo systemctl start sshd
/etc/libvirt/hooks/qemu.d/win10-vm1-singlegpu/prepare/begin
lsmod | grep nv
sudo rmmod nvidia_drm
sudo rmmod nvidia_uvm
sudo rmmod nvidia_modeset
sudo rmmod nvidia
18:53 Add GPU to the VM
19:34 Install GPU Drivers
20:04 Mouse and Keyboard
20:40 Install UNIGINE Valley
21:43 Benchmark Results (on Guest)
21:55 Closing Thoughts
22:27 Bonus Message
# External Links #
# Corrections #
If you're having trouble connecting to the VNC on another computer, try disabling firewalld with the command: systemctl stop firewalld
# My Links #
you can find my other creative endeavors at:
Комментарии