Skip to content

Commit a81ec2e

Browse files
Add commands to install and update vm-repair extension
adding add and update of the extension to the commands
1 parent 6dcf9b1 commit a81ec2e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

support/azure/virtual-machines/linux/troubleshoot-vm-boot-error.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,21 @@ See the following sections for detailed errors, possible causes, and solutions.
7272

7373
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 GRUB rescue issues.
7474

75-
The ALAR scripts use the repair extension `repair-button` to fix GRUB issues by specifying `--button-command grubfix` for Generation 1 VMs, or `--button-command efifix` for Generation 2 VMs. This parameter triggers the automated recovery. Implement the following step to automate the fix of common GRUB errors that could be fixed by reinstalling GRUB and regenerating the corresponding configuration file:
75+
The ALAR scripts use the repair extension `repair-button` to fix GRUB issues by specifying `--button-command grubfix` for Generation 1 VMs, or `--button-command efifix` for Generation 2 VMs. This parameter triggers the automated recovery. Implement the following commands to automate the fix of common GRUB errors that could be fixed by reinstalling GRUB and regenerating the corresponding configuration file:
7676

7777
* **Linux VMs without UEFI (BIOS based - Gen1):**
7878

7979
```azurecli-interactive
80+
az extension add -n vm-repair
81+
az extension update -n vm-repair
8082
az vm repair repair-button --button-command 'grubfix' --verbose $RGNAME --name $VMNAME
8183
```
8284

8385
* **Linux VMs with UEFI (Gen2):**
8486

8587
```azurecli-interactive
88+
az extension add -n vm-repair
89+
az extension update -n vm-repair
8690
az vm repair repair-button --button-command 'efifix' --verbose $RGNAME --name $VMNAME
8791
```
8892

0 commit comments

Comments
 (0)