
As a reference: the top level menuentry value is 0, the first top level submenu value is 1, and each nested menuentry value starts with 0. This is a persistent change.įor more information about how to configure the GRUB_DEFAULT variable, see SUSE Boot Loader GRUB2 and Ubuntu Grub2/Setup. Press the down arrow key to select any previous kernel version.Ĭhange the GRUB_DEFAULT variable in the /etc/default/grub file as instructed in Change default kernel version manually. Press the ESCAPE key to interrupt your VM at the GRUB menu. Once the serial console connection resumes, you'll see a countdown counter at the left top corner of the serial console window. Select the shutdown button at the top of the serial console window.Restart the VM by using the Azure serial console. For more information, see How to restore Azure VM data in Azure portal.īoot system on older kernel version Use Azure serial console If there are important kernel-related contents, the entire /boot partition, or other important contents are missing, and they can't be recovered, we recommend restoring the VM from a backup. Validate if the VM is able to boot up by taking a look at the Azure serial console or by trying to connect to the VM.

For more information, see Step 5 in Repair a Linux VM by using the Azure Virtual Machine repair commands.

For more information, see Virtual machine serial console for Linux. Make sure you meet the necessary prerequisites for your distribution. It allows you to directly fix the issue without having to present the system disk to a recovery VM. The serial console is the fastest method to resolve the boot issue. If you have a recent backup of the VM, restore the VM from the backup to fix the boot issue.
