AWS Security ChangesHomeSearch

AWS drs: Reorganize DRS Linux agent install errors into coded error entries

Service: drs · 2026-10-30 · Documentation low

File: drs/latest/userguide/agent-install-linux-errors.md

Summary

Restructures the DRS Linux agent installation troubleshooting page, replacing free-form 'Error:' headings with standardized DRS-INST-xxx error codes, adding new entries (e.g., DRS-INST-002/003/004/012/013/014/015/022/025/914-917), and moving environment errors (GLIBC, noexec /tmp, driver/kernel mismatch) into a separate section. Content is largely reorganized rather than newly authored.

Security assessment

The diff is a documentation restructuring of installation error messages into coded entries. It retains security-relevant guidance (SELinux context fix via restorecon, Secure Boot status check, noexec /tmp hardening note) but does not address any specific vulnerability, CVE, or incident; it documents operational/security hardening best practices.

Evidence

The `noexec` option on `/tmp` is a common security hardening measure. The `TMPDIR` alternative avoids modifying mount options.

Diff

diff --git a/drs/latest/userguide/agent-install-linux-errors.md b/drs/latest/userguide/agent-install-linux-errors.md
index aed88b7..049131a 100644
--- a//drs/latest/userguide/agent-install-linux-errors.md
+++ b//drs/latest/userguide/agent-install-linux-errors.md
@@ -7 +7 @@
-Error: Invalid disk path formatError: Kernel headers version mismatchError: GLIBC version not foundError: Unsupported Linux kernel versionError: gcc not foundError: Permission denied when loading kernel driverError: Failed to create system userError: Failed to map segment from shared objectError: Multipath disk detection failureError: PowerPath multipath detectedError: Driver compiled for a different kernelError: Agent driver build configuration failedError: Agent driver compilation failedError: SUSE kernel headers package not foundError: Oracle ASM Filter Driver requires a restartError: Invalid driver state location
+DRS-INST-002: Kernel headers link is brokenDRS-INST-003: Kernel headers not foundDRS-INST-004: gcc not foundDRS-INST-008: Unsupported Linux kernel versionDRS-INST-012: Oracle ASM Filter Driver requires a restartDRS-INST-013: Agent driver build configuration failedDRS-INST-014: Agent driver compilation failedDRS-INST-015: SUSE kernel headers package not foundDRS-INST-022: Failed to create system userDRS-INST-025: Permission denied when loading kernel driverDRS-INST-914: Invalid driver state locationDRS-INST-915: Invalid disk path formatDRS-INST-916: Multipath disk detection failureDRS-INST-917: PowerPath multipath detectedEnvironment errors
@@ -15 +15 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Invalid disk path format
+  * DRS-INST-002: Kernel headers link is broken
@@ -17 +17 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Kernel headers version mismatch
+  * DRS-INST-003: Kernel headers not found
@@ -19 +19 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: GLIBC version not found
+  * DRS-INST-004: gcc not found
@@ -21 +21 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Unsupported Linux kernel version
+  * DRS-INST-008: Unsupported Linux kernel version
@@ -23 +23 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: gcc not found
+  * DRS-INST-012: Oracle ASM Filter Driver requires a restart
@@ -25 +25 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Permission denied when loading kernel driver
+  * DRS-INST-013: Agent driver build configuration failed
@@ -27 +27 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Failed to create system user
+  * DRS-INST-014: Agent driver compilation failed
@@ -29 +29 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Failed to map segment from shared object
+  * DRS-INST-015: SUSE kernel headers package not found
@@ -31 +31 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Multipath disk detection failure
+  * DRS-INST-022: Failed to create system user
@@ -33 +33 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: PowerPath multipath detected
+  * DRS-INST-025: Permission denied when loading kernel driver
@@ -35 +35 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Driver compiled for a different kernel
+  * DRS-INST-914: Invalid driver state location
@@ -37 +37 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Agent driver build configuration failed
+  * DRS-INST-915: Invalid disk path format
@@ -39 +39 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Agent driver compilation failed
+  * DRS-INST-916: Multipath disk detection failure
@@ -41 +41 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: SUSE kernel headers package not found
+  * DRS-INST-917: PowerPath multipath detected
@@ -43 +43 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Oracle ASM Filter Driver requires a restart
+  * Environment errors
@@ -45 +44,0 @@ This topic covers errors that you might encounter during or after installing the
-  * Error: Invalid driver state location
@@ -48,0 +48 @@ This topic covers errors that you might encounter during or after installing the
+## DRS-INST-002: Kernel headers link is broken
@@ -50 +50 @@ This topic covers errors that you might encounter during or after installing the
-## Error: Invalid disk path format
+**Error message:** **`Error code: DRS-INST-002 - Kernel headers link is broken`**
@@ -52,14 +52 @@ This topic covers errors that you might encounter during or after installing the
-**Error message:** Installation fails when you specify disks to replicate.
-
-**Cause:** Apostrophes, brackets, or non-existent paths were used in the disk list.
-
-**Resolution:** Use comma-separated paths only. Do not include quotes, brackets, or spaces. For example:
-    
-    
-    /dev/sda,/dev/sdb
-
-## Error: Kernel headers version mismatch
-
-**Error message:** **`Cannot find kernel headers`** or the driver build fails during installation.
-
-**Cause:** The agent builds a kernel driver at install time. This requires `kernel-devel` (RHEL/CentOS/SUSE) or `linux-headers` (Debian/Ubuntu) matching the exact running kernel version.
+**Cause:** The kernel headers link for the running kernel points to a directory that does not exist. This can occur after a kernel update removes the old headers.
@@ -124 +111 @@ Multiple kernel-headers versions can coexist safely. Installing new headers does
-## Error: GLIBC version not found
+## DRS-INST-003: Kernel headers not found
@@ -126 +113 @@ Multiple kernel-headers versions can coexist safely. Installing new headers does
-**Error message:** **`version 'GLIBC_2.7' not found (required by ./aws-replication-installer-64bit)`**
+**Error message:** **`Error code: DRS-INST-003 - Kernel headers not found`**
@@ -128 +115 @@ Multiple kernel-headers versions can coexist safely. Installing new headers does
-**Cause:** The operating system is unsupported or too old for the agent binary.
+**Cause:** The installer could not find kernel headers for the running kernel, and no headers package that matches `uname -r` was available.
@@ -130,3 +117 @@ Multiple kernel-headers versions can coexist safely. Installing new headers does
-**Resolution:** Verify that your operating system is supported. For more information, see [Supported Linux operating systems](https://docs.aws.amazon.com/drs/latest/userguide/Supported-Operating-Systems-Linux.html).
-
-## Error: Unsupported Linux kernel version
+**Resolution:** The resolution is the same as for a broken kernel headers link. Follow the resolution steps in DRS-INST-002: Kernel headers link is broken.
@@ -134 +119 @@ Multiple kernel-headers versions can coexist safely. Installing new headers does
-**Error message:** **`Your Linux kernel version is not supported`**
+## DRS-INST-004: gcc not found
@@ -136,7 +121 @@ Multiple kernel-headers versions can coexist safely. Installing new headers does
-**Cause:** The running kernel is not compatible with the AWS Elastic Disaster Recovery replication driver.
-
-**Resolution:** Check the supported kernels list. If your kernel is listed but the error persists, ensure that the matching kernel headers are installed. For more information, see the Error: Kernel headers version mismatch section.
-
-## Error: gcc not found
-
-**Error message:** **`gcc was not found and could not be automatically fetched from the configured repositories`**
+**Error message:** **`Error code: DRS-INST-004 - gcc not found`**
@@ -225 +204 @@ If none of the preceding conditions applies, install `gcc` and `make` manually a
-## Error: Permission denied when loading kernel driver
+## DRS-INST-008: Unsupported Linux kernel version
@@ -227 +206 @@ If none of the preceding conditions applies, install `gcc` and `make` manually a
-**Error message:** **`insmod: ERROR: could not insert module ./aws-replication-driver.ko: Permission denied`** or **`Operation not permitted`**
+**Error message:** **`Error code: DRS-INST-008 - Unsupported Linux kernel version`**
@@ -229 +208 @@ If none of the preceding conditions applies, install `gcc` and `make` manually a
-**Cause:** SELinux, Secure Boot, or endpoint protection software is blocking kernel module insertion.
+**Cause:** The running kernel is not compatible with the AWS Elastic Disaster Recovery replication driver.
@@ -231 +210 @@ If none of the preceding conditions applies, install `gcc` and `make` manually a
-**Resolution:** Identify which mechanism is blocking the module and apply the corresponding fix.
+**Resolution:** Check the supported kernels list. If your kernel is listed but the error persists, ensure that the matching kernel headers are installed. For more information, see the DRS-INST-002: Kernel headers link is broken section.
@@ -233 +212 @@ If none of the preceding conditions applies, install `gcc` and `make` manually a
-**SELinux**
+## DRS-INST-012: Oracle ASM Filter Driver requires a restart
@@ -234,0 +214 @@ If none of the preceding conditions applies, install `gcc` and `make` manually a
+**Error message:** **`Error code: DRS-INST-012 - Oracle ASM Filter Driver requires a restart`**
@@ -236 +216,3 @@ If none of the preceding conditions applies, install `gcc` and `make` manually a
-Check SELinux status:
+**Cause:** The Oracle ASM Filter Driver (ASMFD) is loaded, but the AWS Elastic Disaster Recovery replication driver has not loaded yet. Installation completes successfully, but replication cannot start until the replication driver loads.
+
+**Resolution:** Restart the source server. The replication driver loads during startup and replication begins automatically. You do not have to deactivate ASMFD.
@@ -237,0 +220 @@ Check SELinux status:
+## DRS-INST-013: Agent driver build configuration failed
@@ -239 +222 @@ Check SELinux status:
-    $ sestatus
+**Error message:** **`Error code: DRS-INST-013 - Agent driver build configuration failed`**
@@ -241 +224 @@ Check SELinux status:
-Fix the security context on the driver module:
+**Cause:** The agent builds a kernel driver at install time. The kernel headers are present, but the `configure` step failed before compilation. This usually means the kernel development package (`kernel-devel` or `linux-headers`) for the running kernel is incomplete. It can also mean the kernel build tree at `/lib/modules/$(uname -r)/build` is missing or invalid.
@@ -242,0 +226 @@ Fix the security context on the driver module:
+**Resolution:** Complete the following steps.
@@ -244 +228 @@ Fix the security context on the driver module:
-    $ restorecon /lib/modules/*/extra/aws-replication-driver.ko
+  1. Confirm the kernel build tree exists and resolves to a valid directory:
@@ -246 +230 @@ Fix the security context on the driver module:
-**Secure Boot**
+        $ ls -l /lib/modules/$(uname -r)/build
@@ -247,0 +232 @@ Fix the security context on the driver module:
+  2. Reinstall the complete kernel development package that matches the running kernel version:
@@ -249 +234 @@ Fix the security context on the driver module:
-Check Secure Boot status:
+     * **RHEL/CentOS:**
@@ -250,0 +236 @@ Check Secure Boot status:
+                $ sudo yum install kernel-devel-$(uname -r)
@@ -252 +238 @@ Check Secure Boot status:
-    $ mokutil --sb-state
+     * **Debian/Ubuntu:**
@@ -254 +240 @@ Check Secure Boot status:
-If Secure Boot is enabled, you must disable it to use the agent.
+                $ sudo apt-get install --reinstall linux-headers-$(uname -r)
@@ -256 +242 @@ If Secure Boot is enabled, you must disable it to use the agent.
-###### Important
+     * **SUSE/SLES:**
@@ -258 +244 @@ If Secure Boot is enabled, you must disable it to use the agent.
-Consult your security team before disabling Secure Boot.
+                $ sudo zypper install kernel-default-devel=$(uname -r | sed "s/-default//") kernel-source
@@ -260 +246 @@ Consult your security team before disabling Secure Boot.
-**Antivirus or endpoint protection**
+  3. Run the AWS Replication Agent installer again.
@@ -261,0 +248 @@ Consult your security team before disabling Secure Boot.
+  4. If the error persists, collect the installation log (`aws_replication_agent_installer.log`), which contains the `configure` output, and contact AWS Support.
@@ -263 +249,0 @@ Consult your security team before disabling Secure Boot.
-Check your endpoint protection software and add AWS Elastic Disaster Recovery components to the allow list.
@@ -265 +250,0 @@ Check your endpoint protection software and add AWS Elastic Disaster Recovery co
-## Error: Failed to create system user
@@ -267 +252,52 @@ Check your endpoint protection software and add AWS Elastic Disaster Recovery co
-**Error message:** **`Failed to set system user permissions:`** followed by one of several messages, for example: **`"getpwnam(): name not found: aws-replication"`** , **`Unable to change permissions of /var/lib/aws-replication-agent`** , or **`sudoers file failed verification ...`**
+
+## DRS-INST-014: Agent driver compilation failed
+
+**Error message:** **`Error code: DRS-INST-014 - Agent driver compilation failed`**
+
+**Cause:** The kernel headers are present, but the driver module failed to compile. This error usually occurs when the compiler or toolset is incompatible with the compiler that built the running kernel. For example, a mismatched `gcc` version can cause this error. Insufficient free disk space is another common cause.
+
+**Resolution:** Complete the following steps.
+
+  1. Confirm that `gcc` and `make` are installed, and compare the `gcc` version with the compiler that built the running kernel:
+    
+        $ gcc --version
+    $ cat /proc/version
+
+  2. If the versions differ, install a compatible compiler toolchain, then run the installer again.
+
+  3. Confirm that there is sufficient free disk space:
+    
+        $ df -h /
+
+  4. If the error persists, collect the installation log (`aws_replication_agent_installer.log`), which contains the `make` output, and contact AWS Support.
+
+
+
+
+## DRS-INST-015: SUSE kernel headers package not found
+
+**Error message:** **`Error code: DRS-INST-015 - SUSE kernel headers package not found`**
+
+**Cause:** On SUSE Linux Enterprise Server, the installer searches for the `kernel-source` package that matches the running kernel. It then installs the matching `kernel-default-devel` headers. The `zypper` search returned no matching package, which usually means the configured repositories do not include the required package.
+