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/repair-linux-vm-using-ALAR.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,8 +78,8 @@ In all of the example commands these are the parameters shown:
78
78
79
79
- `RG-NAME`: The name of the resource group containing the broken VM.
80
80
- `VM-NAME`: The name of the broken VM.
81
-
- `RESCUE-UID`: The user created on the repair VM for login. It's the equivalent of the user created on a new VM in the Azure portal.
82
-
- `RESCUE-PASS`: The password for `RESCUE-UID`, enclosed in single quotes. For example: `'password!234'`.
81
+
- `RESCUE-USERNAME`: The user created on the repair VM for login. It's the equivalent of the user created on a new VM in the Azure portal.
82
+
- `RESCUE-PASS`: The password for `RESCUE-USERNAME`, enclosed in single quotes. For example: `'password!234'`.
83
83
- `action1,action2`, etc.: One or more of the defined actions available to apply to the broken VM. See the complete list of actions below, and in the [ALAR GitHub ReadMe](https://github.com/Azure/ALAR). You can pass one or more actions that are run consecutively. For multiple operations, delineate them using commas without spaces, such as `fstab,sudo`.
84
84
85
85
## The ALAR actions
@@ -90,6 +90,14 @@ This action strips off any lines in the */etc/fstab* file that aren't needed to
90
90
91
91
For more information about issues with a malformed */etc/fstab* file, see [Troubleshoot Linux VM starting issues because fstab errors](./linux-virtual-machine-cannot-start-fstab-errors.md).
92
92
93
+
### efifix
94
+
95
+
This action can be used to reinstall the required software to boot from a GEN2 VM. The *grub.cfg* file is also regenerated.
96
+
97
+
### grubfix
98
+
99
+
This action can be used to reinstall GRUB and regenerate the *grub.cfg* file.
100
+
93
101
### initrd
94
102
95
103
This action can be used to fix an initrd or initramfs that is either corrupted or incorrectly created.
@@ -118,13 +126,9 @@ This action corrects an incorrect or malformed serial console configuration for
118
126
- No GRUB menu is displayed at VM startup.
119
127
- No operating system related information is written to the serial console.
120
128
121
-
### grubfix
122
-
123
-
This action can be used to reinstall GRUB and regenerate the *grub.cfg* file.
129
+
### sudo
124
130
125
-
### efifix
126
-
127
-
This action can be used to reinstall the required software to boot from a GEN2 VM. The *grub.cfg* file is also regenerated.
131
+
The `sudo` action will reset the permissions on the */etc/sudoers* file and all files in */etc/sudoers.d* to the required 0440 modes as well as check other best practices. A basic check is run to detect and report on duplicate user entries and move only the */etc/sudoers.d/waagent* file if it is found to conflict with other files.
0 commit comments