You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
I attempted to change a RHEL 7.9 machine to a Nitro-based instance type and it wasn't able to boot.
After restoring to the previous instance type, I ran nitro_check_script.sh, and got the following output:
------------------------------------------------
OK NVMe Module is installed and available on your instance
OK ENA Module with version 2.0.3K is installed and available on your instance
OK fstab file looks fine and does not contain any device names.
------------------------------------------------
However, the nvme module is not loaded in the initrd; the following command produces no output:
lsinitrd | grep nvme
I came up with a potential fix:
diff --git a/nitro_check_script.sh b/nitro_check_script_fix.sh
index 8147602..371bb5c 100755
--- a/nitro_check_script.sh+++ b/nitro_check_script_fix.sh@@ -131,7 +131,7 @@ if [ `id -u` -ne 0 ]; then # Checks
exit 1
fi
-(grep 'nvme' /boot/System.map-$(uname -r)) > /dev/null 2>&1+(grep '\[nvme\]' /boot/System.map-$(uname -r)) > /dev/null 2>&1
if [ $? -ne 0 ]
then
# NVMe modules is not built into the kernel
When running my modified script, I get this output:
------------------------------------------------
OK NVMe Module is installed and available on your instance
ERROR NVMe Module is not loaded in the initramfs image.
- Please run the following command on your instance to recreate initramfs:
# sudo dracut -f -v
OK ENA Module with version 2.0.3K is installed and available on your instance
OK fstab file looks fine and does not contain any device names.
------------------------------------------------
The text was updated successfully, but these errors were encountered:
Modifying the grep command did solve the problem of grep matching against nvmem but it didn't fix the issue. As you can see, the nvme kernel module is there:
The code which checks if the
nvme
module is build into the kernel matches onnvmem
, which seems to be a separate kernel component.aws-support-tools/EC2/NitroInstanceChecks/nitro_check_script.sh
Line 134 in e001c86
I attempted to change a RHEL 7.9 machine to a Nitro-based instance type and it wasn't able to boot.
After restoring to the previous instance type, I ran
nitro_check_script.sh
, and got the following output:However, the nvme module is not loaded in the initrd; the following command produces no output:
I came up with a potential fix:
When running my modified script, I get this output:
The text was updated successfully, but these errors were encountered: