PVE创建Ubuntu/Debian12虚拟机使用SRIOV核显

Debian12安装SRIOV显卡驱动

https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.7.0-amd64-netinst.iso

apt install -y git dkms vainfo intel-media-va-driver sudo

nano /etc/apt/sources.list
deb http://deb.debian.org/debian bookworm-backports main contrib non-free
apt update
apt install -y linux-image-6.10.11+bpo-amd64 linux-headers-6.10.11+bpo-amd64 firmware-linux 
sudo reboot

git clone https://github.com/strongtz/i915-sriov-dkms.git /root/i915-sriov-dkms
cd /root/i915-sriov-dkms
sudo dkms add .
sudo dkms install -m i915-sriov-dkms -v 2024.09.21 --force
nano /etc/default/grub
i915.enable_guc=3

sudo update-grub


dmesg | grep i915
vainfo

lspci
lspci -s 06:10.0 -k

Ubuntu24.04 LTS安装SRIOV显卡驱动

https://cn.ubuntu.com/download/server/thank-you?version=24.04.1&architecture=amd64

apt install -y linux-headers-6.8.0-41-generic linux-headers-6.8.0-41 linux-image-6.8.0-41-generic linux-modules-6.8.0-41-generic linux-tools-6.8.0-41-generic linux-modules-extra-6.8.0-41-generic 

echo -e '#!/bin/sh\necho "Overriding default linux-check-removal script!"\nexit 0' | sudo tee /usr/bin/linux-check-removal
chmod +x /usr/bin/linux-check-removal

mkdir -p /lib/firmware/i915
cd /lib/firmware/i915
wget https://github.com/intel-gpu/intel-gpu-firmware/raw/main/firmware/mtl_gsc_102.0.0.1511.bin -O /lib/firmware/i915/mtl_gsc_102.0.0.1511.bin
wget https://github.com/intel-gpu/intel-gpu-firmware/raw/main/firmware/mtl_guc_70.6.4.bin -O /lib/firmware/i915/mtl_guc_70.6.4.bin
wget https://github.com/intel-gpu/intel-gpu-firmware/raw/main/firmware/mtl_huc_8.4.3_gsc.bin -O /lib/firmware/i915/mtl_huc_8.4.3_gsc.bin

nano /etc/default/grub
GRUB_DEFAULT="1>2"
echo "options i915 force_probe=7d55 enable_guc=3" | sudo tee -a /etc/modprobe.d/i915.conf
update-grub
update-initramfs -u
reboot

apt install build-* dkms -y
git clone https://github.com/strongtz/i915-sriov-dkms
cd cd i915-sriov-dkms/
dkms add .
dkms install -m i915-sriov-dkms -v $(cat VERSION) --force
reboot
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容