Vm kernel upgrade

Hi.

The kernel of lxd vm (centos 7) is upgrading to the latest (5.6.12).

In order to complete this process, i must select the newly installed kernel at reboot as shown below.

image

When I reboot the lxd vm, what should I do to make a selection like the picture above?

I believe you can select the default kernel to boot in /etc/grub.conf

Thank you Tomp.

It is possible to enter BIOS when booting, but the screen to select the installed kernel is not displayed, so the procedure is as follows.

# awk -F’ ‘$1=="menuentry " {print i++ " : " $2}’ /etc/grub2-efi.cfg

I can get the kernel list through the above command.

# grub2-set-default 0

# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

The above command completes without error.

And when rebooting with the following procedure, the following screen appears.

image

The picture below is an error message when the first line is selected.

Please explain what’s wrong to me.

image

Try turning security.secureboot off:

https://linuxcontainers.org/lxd/docs/master/instances

Thank you very much Tomp.

After setting secureboot off in vm, it booted normally.

푸헤헤~~ 감사합니다.^^