Prerequisites
Before enabling IOMMU, make sure you have:
- SSH access to your VPS
- Root or sudo privileges
- Hardware that supports IOMMU (most VPS do NOT support this)
⚠️ IOMMU is rarely available on virtualized VPS. This guide is for dedicated servers or VPS with hardware passthrough support.
Step 1: Check if IOMMU is Already Enabled
Connect to your VPS:
ssh hxroot@YOUR_SERVER_IP -p 22
dmesg | grep -e DMAR -e IOMMU
Step 2: Enable IOMMU in GRUB
Edit GRUB configuration:
sudo nano /etc/default/grub
Find the line GRUB_CMDLINE_LINUX_DEFAULT and add:
For Intel CPUs:
intel_iommu=on
For AMD CPUs:
amd_iommu=on
Example:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on"
Step 3: Update GRUB and Reboot
sudo update-grub
sudo reboot
Step 4: Verify IOMMU is Enabled
After reboot, check again:
dmesg | grep -e DMAR -e IOMMU
You should see messages confirming IOMMU is active.
Check IOMMU Groups for PCI Passthrough
find /sys/kernel/iommu_groups/ -type l
✅ IOMMU enabled if hardware supports it.