Skip to content

Commit 6d5bd99

Browse files
Merge pull request #9671 from MicrosoftDocs/main
Auto Publish – main to live - 2025-09-08 22:00 UTC
2 parents 2124511 + 7a771dc commit 6d5bd99

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

support/azure/virtual-machines/linux/kernel-related-boot-issues.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -274,21 +274,22 @@ Before rebooting a server, we recommend validating the GRUB configuration and `/
274274
> [!div class="nextstepaction"]
275275
> [Run in Linux](https://go.microsoft.com/fwlink/?linkid=2321843)
276276
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.
278278
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:
282280
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+
```
284286

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.
290289
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.
292293

293294
### <a id="missing-initramfs-manual"></a>Regenerate missing initramfs manually
294295

@@ -760,4 +761,4 @@ Kernel panics might be related to any of the following items. For more informati
760761
761762
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.
762763
763-
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
764+
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

0 commit comments

Comments
 (0)