Hello,
I did make this script to passthrough my Geforce FX1600 with proxmox 7.4
I did a fresh installation launched the script, restored my VM Windows 10, but the VM starts but no display.
Do you know why with the latest version of Proxmox the config doesn't work, what did change ? Many Thanks
I did make this script to passthrough my Geforce FX1600 with proxmox 7.4
I did a fresh installation launched the script, restored my VM Windows 10, but the VM starts but no display.
Do you know why with the latest version of Proxmox the config doesn't work, what did change ? Many Thanks
Code:
#!/bin/bash
# Vérifier si l'utilisateur est root
if [[ $EUID -ne 0 ]]; then
echo "Ce script doit être exécuté en tant que root."
exit 1
fi
# Modifier /etc/default/grub
echo "Modification de /etc/default/grub..."
sed -i 's|^GRUB_CMDLINE_LINUX_DEFAULT=.*|GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt initcall_blacklist=sysfb_init"|' /etc/default/grub
# Modifier /etc/modules
echo "Ajout des modules VFIO à /etc/modules..."
cat <<EOT >> /etc/modules
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
EOT
# Appliquer la mise à jour de GRUB
echo "Mise à jour de GRUB..."
update-grub
# Configurer VFIO dans /etc/modprobe.d/vfio.conf
echo "Configuration de VFIO dans /etc/modprobe.d/vfio.conf..."
echo "options vfio-pci ids=10de:1f82,10de:10fa disable_vga=1" > /etc/modprobe.d/vfio.conf
# Mise à jour de l'initramfs
echo "Mise à jour de l'initramfs..."
update-initramfs -u
# Blacklister les pilotes GPU dans /etc/modprobe.d/blacklist.conf
echo "Ajout des pilotes GPU à la liste noire..."
cat <<EOT >> /etc/modprobe.d/blacklist.conf
blacklist nvidia
blacklist nouveau
blacklist radeon
blacklist i2c_nvidia_gpu
blacklist nvidiafb
EOT