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/serial-console-grub-proactive-configuration.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
@@ -29,8 +29,8 @@ You might have to perform a VM recovery for any of the following reasons:
29
29
- Incorrect GRUB kernel parameters
30
30
- Incorrect fstab configuration
31
31
- Lost password
32
-
-Firewall configuration
33
-
-Networking configuration
32
+
-Incorrect firewall configuration
33
+
-Incorrect networking configuration
34
34
35
35
Many other scenarios are also possible, as detailed in the "Common scenarios for accessing the Serial Console" section of [Azure Serial Console for Linux](./serial-console-linux.md#common-scenarios-for-accessing-the-serial-console). Refer to this article for more help if you're a new user of the Serial Console.
36
36
@@ -88,7 +88,7 @@ The VM must be configured to accept a value of **1** for the kernel parameter. T
To configure the VM to accept a restart through a SysRq commands on the Azure portal, you have to set a value of **1** for the kernel parameter, kernel.sysrq. For this configuration to persist a restart, add an entry to the **Sysctl.conf** file:
91
+
To configure the VM to accept a restart through a SysRq commands on the Azure portal, you have to set a value of **1** for the kernel parameter, kernel.sysrq. To ensure this configuration persists after a restart, add an entry to the **Sysctl.conf** file:
92
92
93
93
`echo kernel.sysrq = 1 >> /etc/sysctl.conf`
94
94
@@ -164,7 +164,7 @@ For Ubuntu 12.04 to obtain a **login:** prompt, follow these steps:
164
164
exec /sbin/getty -L 115200 ttyS0 vt102
165
165
```
166
166
167
-
2. Ask upstart to start the getty:
167
+
2. Run the following command to start the getty service using Upstart:
168
168
169
169
```console
170
170
sudo start ttyS0
@@ -211,7 +211,9 @@ If all goes well, the Recovery menu now displays additional options that can hel
211
211
212
212
#### Red Hat 7\.4\+ GRUB configuration
213
213
214
-
The default /etc/default/grub configuration on these versions is adequately configured
214
+
For Red Hat 7.4 and later, the default `/etc/default/grub` configuration includes the necessary settings for serial console access and recovery. Unless you've made customizations to it, no further modifications are required.
215
+
216
+
On standard installations, the configuration appears as:
215
217
216
218
```console
217
219
GRUB_TIMEOUT=5
@@ -375,7 +377,7 @@ It then displays the GRUB menu for an additional five seconds. Press the down ar
375
377
376
378
#### Force the kernel to a bash prompt
377
379
378
-
Having access to GRUB allows you to interrupt the initialization process. This interaction is useful for many recovery procedures. If you don't have a root password (as required by Single User mode), you can start the kernel by replacing the init program with a bash prompt.
380
+
Having access to GRUB allows you to interrupt the initialization process. This interaction is useful for many recovery procedures. If you don't have a root password (as required by Single User mode), you can start the kernel by replacing the init program with a bash prompt.
379
381
380
382
1. To trigger the interruption, append `init=/bin/bash` to the kernel boot line.
381
383
@@ -401,10 +403,12 @@ You might have to access the VM in Single User or Emergency mode. Select the ker
401
403
402
404
For more information about how to access Single User mode, see [Use Serial Console to access GRUB and single-user mode](./serial-console-grub-single-user-mode.md#general-single-user-mode-access)
403
405
404
-
:::image type="content" source="media/serial-console-grub-proactive-configuration/single-user-ubuntu.png" alt-text="Screenshot of the *Ubuntu entry in the boot the selected OS screen in GRUB.":::
406
+
:::image type="content" source="media/serial-console-grub-proactive-configuration/single-user-ubuntu.png" alt-text="Screenshot of the GRUB boot menu showing Ubuntu selected (indicated by an asterisk).":::
405
407
406
408
## Next steps
407
409
408
-
Learn more about [Azure Serial Console](./serial-console-linux.md)
410
+
Learn more about [Azure Serial Console](./serial-console-linux.md).
409
411
410
412
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
Copy file name to clipboardExpand all lines: support/azure/virtual-machines/linux/serial-console-nmi-sysrq.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,10 +65,10 @@ From the SysRq Admin Guide:
65
65
|``h`` | Displays help. (Any key other than those that are listed here also displays help, but "h" is easy to remember.)
66
66
|``i`` | Send a SIGKILL to all processes, except for init.
67
67
|``j`` | Forcibly thaws filesystems that are frozen by the FIFREEZE ioctl.
68
-
|``k`` | Secure Access Key (SAK) that kills all programs on the current virtual console. NOTE: See important comments in the following SAK section.
68
+
|``k`` | Secure Access Key (SAK) that kills all programs on the current virtual console.
69
69
|``l`` | Shows a stack backtrace for all active CPUs.
70
70
|``m`` | Dumps current memory information to your console.
71
-
|``n`` | Used to make RT tasks nice-able.
71
+
|``n`` | Allows real-time (RT) tasks to be reprioritized using the nice value. NOTE: The nice value controls a process’s priority for CPU scheduling, where lower values indicate higher priority.
72
72
|``o`` | Shuts off your system (if configured and supported).
73
73
|``p`` | Dumps the current registers and flags to your console.
74
74
|``q`` | Dumps CPU lists of all armed hrtimers (but not regular timer_list timers) and detailed information about all clockevent devices.
To manage Windows services by usign CMD< follow these steps:
56
+
To manage Windows services by using CMD, follow these steps:
57
57
58
58
1. View the service state:
59
59
@@ -95,15 +95,15 @@ To manage Windows services by usign CMD< follow these steps:
95
95
96
96
## Use CMD to manage networking features
97
97
98
-
Use manage networking features by using CMD, follow these steps:
98
+
To manage networking features using CMD, follow these steps:
99
99
100
100
1. Show the network shell (netsh) properties:
101
101
102
-
> `netsh interface show interface`
102
+
`netsh interface show interface`
103
103
104
104
1. Show IP properties:
105
105
106
-
> `netsh interface ip show config`
106
+
`netsh interface ip show config`
107
107
108
108
1. Show IPSec configuration:
109
109
@@ -169,7 +169,7 @@ You can use this command when troubleshooting to temporarily rule out the Window
169
169
170
170
`net localgroup Administrators <username> /add`
171
171
172
-
### Verify user account is enabled
172
+
### Verify that the user account is enabled
173
173
174
174
`net user <username> | find /i "active"`
175
175
@@ -185,17 +185,19 @@ Azure VMs created from generalized image will have the local administrator accou
185
185
186
186
Example lines of interest from a local admin account:
187
187
188
-
`Account active Yes`
188
+
```text
189
+
Account active Yes
189
190
190
-
`Account expires Never`
191
+
Account expires Never
191
192
192
-
`Password expires Never`
193
+
Password expires Never
193
194
194
-
`Workstations allowed All`
195
+
Workstations allowed All
195
196
196
-
`Logon hours allowed All`
197
+
Logon hours allowed All
197
198
198
-
`Local Group Memberships *Administrators`
199
+
Local Group Memberships *Administrators
200
+
```
199
201
200
202
### View local groups
201
203
@@ -233,7 +235,7 @@ Use `604800000` to look back seven days instead of 24 hours.
233
235
234
236
`wmic product get Name,InstallDate | sort /r | more`
235
237
236
-
The `sort /r` sorts descending by install date to make it easy to see what was recently installed. Use `<spacebar>` to advance to the next page of output, or `<enter>` to advance one line.
238
+
The `sort /r`command sorts results in descending order by install date, making it easier to identify recently installed applications. Use `<spacebar>` to advance to the next page of output, or `<enter>` to advance one line.
237
239
238
240
### Uninstall an application
239
241
@@ -273,7 +275,8 @@ See also [Repair a Windows Image](/windows-hardware/manufacture/desktop/repair-a
The path when using `/restore` needs to be the parent folder of the folder you specified when using `/save`. In this example, `\RSA` is the parent of the `\MachineKeys` folder specified in the `/save` example above.
278
+
When using `/restore`, specify the parent folder of the one used in
279
+
`/save`. For example, use `\RSA` if you previously saved permissions for `\MachineKeys`.
277
280
278
281
### Take NTFS ownership of a folder
279
282
@@ -287,11 +290,13 @@ The path when using `/restore` needs to be the parent folder of the folder you s
287
290
288
291
### Remove non-present PNP devices
289
292
293
+
This command cleans up device entries for hardware no longer present on the system:
@@ -348,7 +353,7 @@ To run PowerShell in SAC, after you reach a CMD prompt, type:
348
353
`powershell <enter>`
349
354
350
355
> [!CAUTION]
351
-
> Remove the PSReadLine module from the PowerShell session before running any other PowerShell commands. here's a known issue where extra characters may be introduced in text pasted from the clipboard if PSReadLine is running in a PowerShell session in SAC.
356
+
> Remove the PSReadLine module from the PowerShell session before running any other PowerShell commands. There's a known issue where extra characters may be introduced in text pasted from the clipboard if PSReadLine is running in a PowerShell session in SAC.
352
357
353
358
First check if PSReadLine is loaded. It's loaded by default on Windows Server 2016, Windows 10, and later versions of Windows. It would only be present on earlier Windows versions if it's manually installed.
354
359
@@ -360,6 +365,8 @@ If the above command returns the PSReadLine module version, run the following co
360
365
361
366
`remove-module psreadline`
362
367
368
+
If PSReadLine is loaded, it may introduce extra characters when pasting text. To avoid this, unload the module using `remove-module psreadline`.
369
+
363
370
## View and Edit Windows Registry Settings using PowerShell
364
371
365
372
### Verify RDP is enabled
@@ -368,7 +375,7 @@ If the above command returns the PSReadLine module version, run the following co
0 commit comments