Skip to content

Instantly share code, notes, and snippets.

@ms747
Last active November 13, 2019 08:39
Show Gist options
  • Save ms747/22887aeb3ebd62cc57b21457bd0a1c9a to your computer and use it in GitHub Desktop.
Save ms747/22887aeb3ebd62cc57b21457bd0a1c9a to your computer and use it in GitHub Desktop.
#!/bin/bash
sed -i.orginal "s/quiet/quiet intel_iommu=on/g" /etc/default/grub 2>/dev/null
update-grub
cp /etc/modules /etc/modules.original
echo "vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd" >> /etc/modules
echo "find /sys/kernel/iommu_groups/ -type l" >> /root/checkhdd.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment