Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- You will need to creat some files manualy.
- 1. Create vfio-pci-override.sh in /sbin with the following content:
- #!/bin/sh
- DEVS="0000:02:00.0 0000:02:00.1"
- for DEV in $DEVS; do
- echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
- done
- modprobe -i vfio-pci
- 2. Create file vga_hook in /usr/share/initramfs-tools/hooks/ with the following content:
- #!/bin/sh
- PREREQ=""
- prereqs()
- {
- echo "$PREREQ"
- }
- case $1 in
- prereqs)
- prereqs
- exit 0
- ;;
- esac
- . /usr/share/initramfs-tools/hook-functions
- copy_exec /sbin/vfio-pci-override.sh /sbin
- 3. Make both files executable:
- $ sudo chmod +x /sbin/vfio-pci-override.sh
- $ sudo chmod +x /usr/share/initramfs-tools/hooks/vga_hook
- 4. Add the following in modprobe.d/local.conf in place of the "options vfio-pci ids=xxx" line if present and remove the boot options from grub cmd line "vfio-pci.ids=10de:13c0,10de:0fbb".
- install vfio-pci /sbin/vfio-pci-override-vga.sh
- 5. Rebuild your initramfs:
- $ sudo update-initramfs -u
- 6. Reboot and proffit.
- P.S. The line DEVS in vfio-pci-override.sh is for your current setup from the lspci -vnk you posted before. You can check for success of the update-initramfs by:
- $ sudo lsinitramfs -l /boot/initrd.img-xxx |grep vfio-pci-override-vga.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement