mirror of
https://github.com/luchina-gabriel/OSX-PROXMOX.git
synced 2026-09-25 20:47:01 +00:00
21 lines
488 B
Bash
Executable File
21 lines
488 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Script: check-iommu-enabled.sh
|
|
# Goal: Check if IOMMU is enabled on your system
|
|
#
|
|
# Author: Gabriel Luchina
|
|
# https://luchina.com.br
|
|
# 20260827T1431
|
|
|
|
# Check for IOMMU or DMAR messages in dmesg
|
|
iommu_check=$(dmesg | grep -E 'DMAR|IOMMU')
|
|
|
|
if [ -n "$iommu_check" ]; then
|
|
echo "IOMMU Enabled"
|
|
else
|
|
echo "IOMMU NOT Enabled"
|
|
echo "Ensure 'intel_iommu=on' or 'amd_iommu=on' is present in the 'GRUB_CMDLINE_LINUX_DEFAULT' line of /etc/default/grub"
|
|
exit 1
|
|
fi
|
|
|