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
This will also ensure that all console messages are sent to the first serial port and enable interaction with the serial console, which can assist Azure support with debugging issues. This configuration also turns off the new RHEL 7 naming conventions for NICs.
231
+
> [!NOTE]
232
+
> If [**ENABLE_BLSCFG=false**](https://access.redhat.com/solutions/6929571) is present in `/etc/default/grub` instead of 'ENABLE_BLSCFG=true` tools such as ___grubedit___ or ___gubby___, which rely on the Boot Loader Specification (BLS) formanaging boot entries and configurations, may not function correctlyin RHEL 8 and 9. Be advised, if ENABLE_BLSCFG is not present, the default behavior is "false".
231
233
232
-
```config
233
-
rhgb quiet crashkernel=auto
234
-
```
234
+
This will also ensure that all console messages are sent to the first serial port and enable interaction with the serial console, which can assist Azure support with debugging issues. This configuration also turns off the new RHEL 7 naming conventions for NICs.
235
235
236
-
Graphical and quiet boots aren't useful in a cloud environment where we want all the logs to be sent to the serial port. You can leave the `crashkernel` option configured if desired. Note that this parameter reduces the amount of available memory in the virtual machine by 128 MB or more, which might be problematic on smaller virtual machine sizes.
236
+
```config
237
+
rhgb quiet crashkernel=auto
238
+
```
239
+
240
+
Graphical and quiet boots aren't useful in a cloud environment where we want all the logs to be sent to the serial port. You can leave the `crashkernel` option configured if desired. Note that this parameter reduces the amount of available memory in the virtual machine by 128 MB or more, which might be problematic on smaller virtual machine sizes.
237
241
238
-
8. After you're done editing `/etc/default/grub`, run the following command to rebuild the grub configuration:
242
+
7. After you're done editing `/etc/default/grub`, run the following command to rebuild the grub configuration:
239
243
240
244
```bash
241
245
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
242
246
```
243
247
> [!NOTE]
244
248
> If uploading an UEFI enabled VM, the command to update grub is `grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg`.
245
249
246
-
9. Ensure that the SSH server is installed and configured to start at boot time, which is usually the default. Modify `/etc/ssh/sshd_config` to include the following line:
250
+
8. Ensure that the SSH server is installed and configured to start at boot time, which is usually the default. Modify `/etc/ssh/sshd_config` to include the following line:
247
251
248
252
```config
249
253
ClientAliveInterval 180
250
254
```
251
255
252
-
10. The WALinuxAgent package, `WALinuxAgent-<version>`, has been pushed to the Red Hat extras repository. Enable the extras repository by running the following command:
256
+
9. The WALinuxAgent package, `WALinuxAgent-<version>`, has been pushed to the Red Hat extras repository. Enable the extras repository by running the following command:
12. Configure cloud-init to handle the provisioning:
270
+
11. Configure cloud-init to handle the provisioning:
267
271
268
272
1. Configure waagent for cloud-init:
269
273
@@ -319,7 +323,7 @@ EOF
319
323
320
324
```
321
325
322
-
13. Swap configuration.
326
+
12. Swap configuration.
323
327
Don't create swap space on the operating system disk.
324
328
325
329
Previously, the Azure Linux Agent was used to automatically configure swap space by using the local resource disk that is attached to the virtual machine after the virtual machine is provisioned on Azure. However, this is now handled by cloud-init, you **must not** use the Linux Agent to format the resource disk create the swap file, modify the following parameters in`/etc/waagent.conf` appropriately:
14. If you want to unregister the subscription, run the following command:
360
+
13. If you want to unregister the subscription, run the following command:
357
361
358
362
```bash
359
363
sudo subscription-manager unregister
360
364
```
361
365
362
-
15. Deprovision
366
+
14. Deprovision
363
367
364
368
Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
365
369
@@ -375,9 +379,9 @@ EOF
375
379
```
376
380
377
381
378
-
16. Click **Action**>**Shut Down**in Hyper-V Manager. Your Linux VHD is now ready to be [**uploaded to Azure**](./upload-vhd.md#option-1-upload-a-vhd).
382
+
15. Click **Action** > **Shut Down** in Hyper-V Manager. Your Linux VHD is now ready to be [**uploaded to Azure**](./upload-vhd.md#option-1-upload-a-vhd).
379
383
380
-
### RHEL 8 using Hyper-V Manager
384
+
### RHEL 8+ using Hyper-V Manager
381
385
382
386
1. In Hyper-V Manager, select the virtual machine.
0 commit comments