How to use Amazon Linux 2 AMI (HVM) - Kernel 5.10 on Lightsail?

0

Creating a new instance using Amazon Linux 2 still loads kernel v4 (April 13, 2022).

질문됨 2년 전458회 조회
1개 답변
0

Hi,

By default Linux2 Lightsail instance comes with kernel version 4.14.x. You can upgrade your kernel version to 5.10 using amazon-linux-extras library. First verify what kernel versions are available for your instance using the following command:

sudo amazon-linux-extras |grep kernel

If one of the available kernel versions is enabled from the output of the above command. Use the following command to disable it:

sudo amazon-linux-extras disable kernel-<x.x>

If the current enabled version is not disabled you might run into the following error: "Refusing because kernel-5.10 could cause an invalid combination". Once you have verified that none of the available kernels is enabled. You can proceed to install kernel 5.10 using the following command:

sudo amazon-linux-extras install kernel-5.10 -y

To verify that the kernel has been installed use this command rpm -qa |grep kernel. Then reboot the instance to activate the installed kernel.

Cebi
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠