Refactored the code to make it more maintainable.
- Redid the code for the cloud to be able to specify subnets, with the default based on bridge number. It now adds a bridge every time you run it. - The creating if the VM now prompts you for a bridge to select if there is more than one, and prompts you to select storage if there is more than 1 - The No Subcriber nag removal will now last through Proxmox updates
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Script: check-iommu-enabled.sh
|
||||
# Goal: Check if IOMMU are Enabled in your system
|
||||
# Goal: Check if IOMMU is enabled on your system
|
||||
#
|
||||
# Author: Gabriel Luchina
|
||||
# https://luchina.com.br
|
||||
# 20220128T1112
|
||||
|
||||
if [ `dmesg | grep -e DMAR -e IOMMU | wc -l` -gt 0 ]
|
||||
then
|
||||
# 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 "Check file /etc/default/grub contains 'intel_iommu=on' in 'GRUB_CMDLINE_LINUX_DEFAULT' line"
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user