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
Copy file name to clipboardExpand all lines: support/azure/virtual-machines/linux/linux-vm-no-boot-incorrect-hugepages-configuration.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,16 +19,14 @@ Incorrect HugePages configuration can cause boot issues in Linux Virtual Machine
19
19
20
20
## Symptoms
21
21
22
-
The following issues can occurs due to incorrect HugePages configuration in the **/etc/sysctl.conf** file:
22
+
The following issues can occurs due to incorrect HugePages configuration:
23
23
24
24
- After you migrate a Linux VM from on-premises to Azure, the VM doesn't boot properly.
25
25
26
26
- After you downsize an Azure Linux VM, it doesn't boot properly.
27
27
28
28
- When an Azure Linux VM boots with some services, it doesn't boot properly. The sign-in prompt is displayed slowly, and you can't sign in.
29
29
30
-
For example, the `vm.nr_hugepages` parameter is set to 65536 in the **/etc/sysctl.conf** file while the VM has only 16 GB of total memory, this configuration would consume 134,217,728 KB of memory, leading to an Out of Memory (OOM) condition.
31
-
32
30
When you review the serial console logs for various Linux VMs (Red Hat, Oracle, SUSE, or Ubuntu), the following issues are commonly observed:
33
31
34
32
- Failed to start udev Kernel Device Manager.
@@ -235,11 +233,16 @@ Here are some log examples:
235
233
236
234
## Cause
237
235
238
-
This problem occurs because all available memory is reserved for HugePages, leaving insufficient free memory for the server to boot and execute processes.
236
+
This issue occurs because all available memory is reserved for HugePages, leaving insufficient free memory for the server to boot and execute processes.
237
+
238
+
For example, if the HugePages configuration parameter `vm.nr_hugepages` is set to 65536 in the **/etc/sysctl.conf** file while the VM has only 16 GB of total memory, this configuration would consume 134,217,728 KB of memory, which exceeds VM memory, leading to an Out of Memory (OOM) condition.
239
239
240
240
## Resolution
241
241
242
-
Check the VM's memory and HugePages configuration. For example, if the system needs 16 GB for HugePages and the VM only has 16 GB of RAM, it runs out of memory causing the VM not to boot. In this case, we recommend upgrading the VM size to at least 32 GB of RAM. For more information about how much HugePages a VM and database needs, see [Oracle Community](https://community.oracle.com/mosc/discussion/4516170/huge-pages). If HugePages reservation exceeds VM memory, correct the configuration by following these steps:
242
+
> [!IMPORTANT]
243
+
> Review how much memory the VM has and How much HugePages are setup. Under some scenarios, for example, if the system needs 16 GB for HugePages and the VM only has 16 GB of RAM, it runs out of memory causing the VM not to boot. In this case, we recommend upgrading the VM size to at least 32 GB of RAM. For more information about how much HugePages a VM and database needs, see [Oracle Community](https://community.oracle.com/mosc/discussion/4516170/huge-pages).
244
+
245
+
To fix the issue, follow these steps:
243
246
244
247
1. Access the VM using one of the following methods:
245
248
@@ -257,12 +260,11 @@ Check the VM's memory and HugePages configuration. For example, if the system ne
257
260
sudo vi /etc/sysctl.conf
258
261
```
259
262
260
-
4. Locate where the `vm.nr_hugepages` is set:
263
+
4. Locate where the `vm.nr_hugepages` parameter is set:
261
264
262
265
```bash
263
266
vm.nr_hugepages=<the number of HugePages>
264
267
```
265
-
266
268
5. Comment out the line or adjust the `vm.nr_hugepages` value to balance performance and memory allocation.
267
269
6. Save the changes and exit the text editor.
268
270
7. [Regenerate missing initramfs manually](kernel-related-boot-issues.md#missing-initramfs-manual) according to the operating system distribution.
0 commit comments