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/kernel-related-boot-issues.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,21 +274,22 @@ Before rebooting a server, we recommend validating the GRUB configuration and `/
274
274
> [!div class="nextstepaction"]
275
275
> [Run in Linux](https://go.microsoft.com/fwlink/?linkid=2321843)
276
276
277
-
1. Create a repair VM by running the following Bash command line with [Azure Cloud Shell](/azure/cloud-shell/overview). For more information, see [Use Azure Linux Auto Repair (ALAR) to fix a Linux VM - initrd option](repair-linux-vm-using-ALAR.md#initrd).
277
+
Azure Linux Auto Repair (ALAR) scripts are part of the VM repair extension described in [Use Azure Linux Auto Repair (ALAR) to fix a Linux VM](./repair-linux-vm-using-alar.md). ALAR covers the automation of multiple repair scenarios, including this missing initramfs issue.
278
278
279
-
```azurecli
280
-
az vm repair create --verbose -g $RGNAME -n $VMNAME --repair-username rescue --repair-password 'password!234' --copy-disk-name repairdiskcopy
281
-
```
279
+
The ALAR scripts use the repair extension `repair-button` to fix the missing initramfs issues by specifying `--button-command initrd`. This parameter triggers the automated and unattended recovery. Implement the following commands to automate the regenerating of the missing initramfs file, and regenerating the corresponding configuration file:
282
280
283
-
2. Regenerate the initrd/initramfs image and regenerate the GRUB configuration file if it has the initrd entry missing. To do this, run the following command:
281
+
```azurecli-interactive
282
+
az extension add -n vm-repair
283
+
az extension update -n vm-repair
284
+
az vm repair repair-button --button-command 'initrd' --verbose $RGNAME --name $VMNAME
285
+
```
284
286
285
-
```azurecli
286
-
az vm repair run --verbose -g $RGNAME -n $VMNAME --run-id linux-alar2 --parameters initrd --run-on-repair
287
-
288
-
az vm repair restore --verbose -g $RGNAME -n $VMNAME
289
-
```
287
+
> [!IMPORTANT]
288
+
> Replace the resource group name `$RGNAME` and VM name `$VMNAME` accordingly.
290
289
291
-
3. Once the restore command has been executed, restart the original VM and validate that it's able to boot up.
290
+
* The repair VM script, in conjunction with the ALAR script and the `repair-button` button, will run in un-attended mode. It temporarily creates a resource group, a repair VM, and a copy of the affected VM's OS disk.
291
+
* Then it regenerates the missing initramfs, regenerates the corresponding GRUB configuration file, and then swaps the broken VM's OS disk with the copied fixed disk.
292
+
* Finally, the `repair-button` script automatically deletes the resource group containing the temporary repair VM.
@@ -760,4 +761,4 @@ Kernel panics might be related to any of the following items. For more informati
760
761
761
762
If the specific boot error isn't a kernel related boot issue, see [Troubleshoot Azure Linux Virtual Machines boot errors](./boot-error-troubleshoot-linux.md) for further troubleshooting options.
762
763
763
-
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
764
+
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
0 commit comments