AWS China AMI use wrong linux kernel

Bug #1893860 reported by nouse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
Triaged
Undecided
Philip Roche

Bug Description

Ubuntu 16.04 and 18.04 images in AWS China install generic kernel instead of AWS kernel, we have to install AWS kernel manually. I expect AMI can switch to AWS kernel so we can skip that step.

Revision history for this message
Philip Roche (philroche) wrote :

Hi,

Thank you for filing this bug. Can you provide details on which AMI you are using and in which region you are launching?

Phil

Revision history for this message
nouse (masterwujiang) wrote :

We use cn-northwest-1 region, latest AMI of 16.04 is ami-032ddff247c0bae9e, 18.04 is ami-0a22b8776bb32836b, owner is 837727238323

Revision history for this message
Philip Roche (philroche) wrote :

All current Canonical (837727238323) published 18.04 Bionic images do have the linux-aws kernel installed.

```
ubuntu@ip-172-31-47-200:~$ curl -w '\n' http://169.254.169.254/latest/meta-data/ami-id
ami-0a22b8776bb32836b
ubuntu@ip-172-31-47-200:~$ cat /etc/cloud/build.info
build_name: server
serial: 20200323
ubuntu@ip-172-31-47-200:~$ uname -a
Linux ip-172-31-47-200 4.15.0-1063-aws #67-Ubuntu SMP Mon Mar 2 07:24:29 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@ip-172-31-47-200:~$ dpkg -l | grep linux-aws
ii linux-aws 4.15.0.1063.64 amd64 Complete Linux kernel for Amazon Web Services (AWS) systems.
ii linux-aws-headers-4.15.0-1063 4.15.0-1063.67 all Header files related to Linux kernel version 4.15.0
```

You are correct that our 16.04 Xenial AMIs in aws-cn partition still have the generic kernel and fixing this delta between aws and aws-cn for 16.04 Xenial AMIs is something we are actively working on. Until that work lands it is still possible to install the linux-aws kernel and reboot.

```
sudo apt-get update
sudo apt-get remove --purge --assume-yes '^linux-.*' 'linux-base+'
sudo apt-get install --assume-yes linux-aws
sudo reboot
```

```
ubuntu@ip-172-31-36-173:~$ uname -a
Linux ip-172-31-36-173 4.4.0-1113-aws #126-Ubuntu SMP Fri Aug 14 13:24:17 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
```

Changed in cloud-images:
status: New → Triaged
Philip Roche (philroche)
Changed in cloud-images:
assignee: nobody → Philip Roche (philroche)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.