ubuntuamazon-ec2

How to determine if your server is running "Ubuntu Pro"?


I've taken over administering an EC2 instance created by someone who's left the company. I understand that the server may be operating Ubuntu Pro but am having trouble working out how to check. I've tried the following:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:    18.04
Codename:   bionic

$ cat /proc/version
Linux version 5.3.0-1023-aws (buildd@lcy01-amd64-022) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #25~18.04.1-Ubuntu SMP Fri Jun 5 15:18:30 UTC 2020

Is there a way to check on the server or is this something that can be checked in the AWS Console?

Update: I was able to find that the following was seemingly enabled which may only be available to Ubuntu Pro but I'm not certain

$ canonical-livepatch status
last check: 46 minutes ago
kernel: 5.3.0-1023.25~18.04.1-aws
server check-in: succeeded
patch state: ✓ no livepatches needed for this kernel yet


Solution

  • Since this is a marketplace product, you can go to AWS Marketplace Subscriptions to see what marketplace products are currently running.

    You should also be able to tell from the AMI. If you look at the instance details in the EC2 console, there is an AMI field. If you click the AMI name, it may say if it is Ubuntu Pro or not.

    You may also be able to tell by looking at your AWS Bill. This marketplace product appears to have an extra cost (albeit small). It may not tell you which instance though, in case you are running more than one in the account.