[速報]5年長期サポートのAmazon Linux 2が一般公開されました
大栗です。
昨年末にAmazon Linux 2が発表されました。しかし、当時はRelease Candidateの状態でした。本日Amazon Linux 2がLong Term Supportとして5年間の長期サポートとして正式リリースされたのでレポートします。
Announcing Amazon Linux 2 with Long Term Support
Amazon Linux 2
2017年12月にAmazon Linux 2が発表されました。Amazon Linux2では5年長期サポートやオンプレミスでの使用など、今までのAmazon Linuxには無かった特徴があります。詳しくは、以下のエントリーをご参照下さい。
今回のLTSでは以下の3種類のAMIがリリースされているようです。一般EBS版、GP2版、最小限パッケージ版の模様です。
- amzn2-ami-hvm-2.0.20180622.1-x86_64-ebs
- amzn2-ami-hvm-2.0.20180622.1-x86_64-gp2
- amzn2-ami-minimal-hvm-2.0.20180622.1-x86_64-ebs
起動してみる
EC2のインスタンス起動画面で普通にAMIを選択します。
起動してログインしてみると、Amazon Linux 2 AMIと表示が出てログインできます。
1 2 3 4 5 6 7 8 9 | $ ssh -i /path/to/KeyPair.pem ec2-user@ 203.0.113.97Warning: Permanently added '203.0.113.97' (ECDSA) to the list of known hosts. __| __|_ ) _| ( / Amazon Linux 2 AMI ___|\___|___|https://aws.amazon.com/amazon-linux-2/[ec2-user@ip-192-0-2-20 ~]$ |
バージョン情報を確認してみましょう。Kernelのバージョンは4.14.47になっています。
1 2 3 4 | [ec2-user@ip-192-0-2-20 ~]$ cat /etc/system-releaseAmazon Linux 2[ec2-user@ip-192-0-2-20 ~]$ uname -aLinux ip-192-0-2-20.ap-northeast-1.compute.internal 4.14.47-64.38.amzn2.x86_64 #1 SMP Mon Jun 18 22:33:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
Extraの中身を確認してみます。Release Candidateでは14まででしたが、15以降にLibreOfficeやGIMP等GUIツールが入っていることが特徴的です。これはAmazon Linux 2がWorkSpacesに対応したことが理由かと思われます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | [ec2-user@ip-192-0-2-20 ~]$ sudo amazon-linux-extras list 0 ansible2 available [ =2.4.2 ] 1 emacs available [ =25.3 ] 2 memcached1.5 available [ =1.5.1 ] 3 nginx1.12 available [ =1.12.2 ] 4 postgresql9.6 available [ =9.6.6 =9.6.8 ] 5 python3 available [ =3.6.2 ] 6 redis4.0 available [ =4.0.5 ] 7 R3.4 available [ =3.4.3 ] 8 rust1 available [ =1.22.1 =1.26.0 ] 9 vim available [ =8.0 ] 10 golang1.9 available [ =1.9.2 ] 11 ruby2.4 available [ =2.4.2 =2.4.4 ] 12 nano available [ =2.9.1 ] 13 php7.2 available [ =7.2.0 =7.2.4 =7.2.5 ] 14 lamp-mariadb10.2-php7.2 available \ [ =10.2.10_7.2.0 =10.2.10_7.2.4 =10.2.10_7.2.5 ] 15 libreoffice available [ =5.0.6.2_15 ] 16 gimp available [ =2.8.22 ] 17 docker=latest enabled [ =17.12.1 =18.03.1 ] 18 mate-desktop1.x available [ =1.19.0 =1.20.0 ] 19 GraphicsMagick1.3 available [ =1.3.29 ] 20 tomcat8.5 available [ =8.5.31 ] |
登録されているサービスは以下のようになっています。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | [ec2-user@ip-192-0-2-20 ~]$ systemctl list-unit-files --type=serviceUNIT FILE STATEamazon-ssm-agent.service enabledarp-ethers.service disabledatd.service enabledauditd.service enabledauth-rpcgss-module.service staticautovt@.service enabledblk-availability.service disabledbrandbot.service staticchrony-dnssrv@.service staticchrony-wait.service disabledchronyd.service enabledcloud-config.service enabledcloud-final.service enabledcloud-init-local.service enabledcloud-init.service enabledconsole-getty.service disabledconsole-shell.service disabledcontainer-getty@.service staticcrond.service enableddbus-org.freedesktop.hostname1.service staticdbus-org.freedesktop.import1.service staticdbus-org.freedesktop.locale1.service staticdbus-org.freedesktop.login1.service staticdbus-org.freedesktop.machine1.service staticdbus-org.freedesktop.timedate1.service staticdbus.service staticdebug-shell.service disableddm-event.service staticdmraid-activation.service enableddracut-cmdline.service staticdracut-initqueue.service staticdracut-mount.service staticdracut-pre-mount.service staticdracut-pre-pivot.service staticdracut-pre-trigger.service staticdracut-pre-udev.service staticdracut-shutdown.service staticec2net-ifup@.service staticec2net-scan.service disabledemergency.service staticfstrim.service staticgetty@.service enabledgssproxy.service disabledhalt-local.service statichibagent.service disabledinitrd-cleanup.service staticinitrd-parse-etc.service staticinitrd-switch-root.service staticinitrd-udevadm-cleanup-db.service staticirqbalance.service enabledkmod-static-nodes.service statickpatch.service disabledlibstoragemgmt.service enabledlvm2-lvmetad.service staticlvm2-lvmpolld.service staticlvm2-monitor.service enabledlvm2-pvscan@.service staticmdadm-grow-continue@.service staticmdadm-last-resort@.service staticmdmon@.service staticmdmonitor.service enabledmessagebus.service staticnfs-blkmap.service disablednfs-config.service staticnfs-idmap.service staticnfs-idmapd.service staticnfs-lock.service staticnfs-mountd.service staticnfs-rquotad.service disablednfs-secure.service staticnfs-server.service disablednfs-utils.service staticnfs.service disablednfslock.service staticplymouth-halt.service disabledplymouth-kexec.service disabledplymouth-poweroff.service disabledplymouth-quit-wait.service disabledplymouth-quit.service disabledplymouth-read-write.service disabledplymouth-reboot.service disabledplymouth-start.service disabledplymouth-switch-root.service staticpostfix.service enabledpsacct.service disabledquotaon.service staticrc-local.service staticrdisc.service disabledrescue.service staticrhel-autorelabel-mark.service staticrhel-autorelabel.service staticrhel-configure.service staticrhel-dmesg.service disabledrhel-domainname.service disabledrhel-import-state.service staticrhel-loadmodules.service staticrhel-readonly.service staticrngd.service enabledrpc-gssd.service staticrpc-rquotad.service disabledrpc-statd-notify.service staticrpc-statd.service staticrpcbind.service indirectrpcgssd.service staticrpcidmapd.service staticrsyncd.service disabledrsyncd@.service staticrsyslog.service enabledselinux-policy-migrate-local-changes@.service staticserial-getty@.service disabledsshd-keygen.service staticsshd.service enabledsshd@.service staticsysstat.service enabledsystemd-ask-password-console.service staticsystemd-ask-password-plymouth.service staticsystemd-ask-password-wall.service staticsystemd-backlight@.service staticsystemd-binfmt.service staticsystemd-bootchart.service disabledsystemd-firstboot.service staticsystemd-fsck-root.service staticsystemd-fsck@.service staticsystemd-halt.service staticsystemd-hibernate-resume@.service staticsystemd-hibernate.service staticsystemd-hostnamed.service staticsystemd-hwdb-update.service staticsystemd-hybrid-sleep.service staticsystemd-importd.service staticsystemd-initctl.service staticsystemd-journal-catalog-update.service staticsystemd-journal-flush.service staticsystemd-journald.service staticsystemd-kexec.service staticsystemd-localed.service staticsystemd-logind.service staticsystemd-machine-id-commit.service staticsystemd-machined.service staticsystemd-modules-load.service staticsystemd-nspawn@.service disabledsystemd-poweroff.service staticsystemd-quotacheck.service staticsystemd-random-seed.service staticsystemd-readahead-collect.service enabledsystemd-readahead-done.service indirectsystemd-readahead-drop.service enabledsystemd-readahead-replay.service enabledsystemd-reboot.service staticsystemd-remount-fs.service staticsystemd-rfkill@.service staticsystemd-shutdownd.service staticsystemd-suspend.service staticsystemd-sysctl.service staticsystemd-timedated.service staticsystemd-tmpfiles-clean.service staticsystemd-tmpfiles-setup-dev.service staticsystemd-tmpfiles-setup.service staticsystemd-udev-settle.service staticsystemd-udev-trigger.service staticsystemd-udevd.service staticsystemd-update-done.service staticsystemd-update-utmp-runlevel.service staticsystemd-update-utmp.service staticsystemd-user-sessions.service staticsystemd-vconsole-setup.service staticteamd@.service staticupdate-motd.service enabled168 unit files listed. |
ファイルシステムはxfsになっています。
1 2 3 4 5 6 7 8 9 | [ec2-user@ip-192-0-2-20 ~]$ df -Thファイルシス タイプ サイズ 使用 残り 使用% マウント位置devtmpfs devtmpfs 981M 0 981M 0% /devtmpfs tmpfs 998M 0 998M 0% /dev/shmtmpfs tmpfs 998M 344K 998M 1% /runtmpfs tmpfs 998M 0 998M 0% /sys/fs/cgroup/dev/xvda1 xfs 8.0G 1.2G 6.9G 15% /tmpfs tmpfs 200M 0 200M 0% /run/user/0tmpfs tmpfs 200M 0 200M 0% /run/user/1000 |
主な注意点
Amazon Linux 2のコアコンポーネントは何ですか?
Amazon Linux 2の主要コンポーネントは次のとおりです。
- Amazon EC2のパフォーマンスをチューニングしたLinux Kernel。
- AWSからLong Term Support(LTS)を受け取るsystemd、GCC 7.3、Glibc 2.26、Binutils 2.29.1を含む一連のコアパッケージ。
- 頻繁に更新される可能性がある、長期サポート(LTS)モデル外で高速に進化するテクノロジーのためのExtraチャネル。
Amazon Linux 2とAmazon Linux AMIの違いは何ですか?
Amazon Linux 2とAmazon Linux AMIの主な違いは次のとおりです。
- Amazon Linux 2は、2023年6月30日まで長期サポートを提供します。
- Amazon Linux 2は、オンプレミスの開発およびテスト用の仮想マシンイメージとして利用可能です。
- Amazon Linux 2は、Amazon Linux AMIのSystem V initシステムと対照的に、systemdとsystems managerを提供します。
- Amazon Linux 2には、更新されたLinux kernel、Cライブラリ、コンパイラ、およびツールが付属しています。
- Amazon Linux 2は、extrasメカニズムで追加ソフトウェアパッケージをインストールする機能を提供します。
Amazon Linux 2の長期サポートには何が含まれていますか?
Amazon Linux 2の長期サポートは、コアパッケージにのみ適用され、以下を含みます
1) AWSは、2023年6月30日まで、コア内のすべてのパッケージのセキュリティアップデートとバグ修正を提供します 2) AWSは次のパッケージについてユーザー空間のABIの互換性を維持します:
elfutils-libelf, glibc, glibc-utils, hesiod, krb5-libs, libgcc, libgomp, libstdc++, libtbb.so, libtbbmalloc.so, libtbbmalloc_proxy.so, libusb, libxml2, libxslt, pam, audit-libs, audit-libs-python, bzip2-libs, c-ares, clutter, cups-libs, cyrus-sasl-gssapi, cyrus-sasl-lib, cyrus-sasl-md5, dbus-glib, dbus-libs, elfutils-libs, expat, fuse-libs, glib2, gmp, gnutls, httpd, libICE, libSM, libX11, libXau, libXaw, libXext, libXft, libXi, libXinerama, libXpm, libXrandr, libXrender, libXt, libXtst, libacl, libaio, libatomic, libattr, libblkid, libcap-ng, libdb, libdb-cxx, libgudev1, libhugetlbfs, libnotify, libpfm, libsmbclient, libtalloc, libtdb, libtevent, libusb, libuuid, ncurses-libs, nss, nss-sysinit, numactl, openssl, p11-kit, papi, pcre, perl, perl-Digest-SHA, perl-Time-Piece, perl-libs, popt, python, python-libs, readline, realmd, ruby, scl-utils, sqlite, systemd-libs, systemtap, tcl, tcp_wrappers-libs, xz-libs, and zlib
3) AWSの管理を超えた理由で互換性を提供できない場合の除き、AWSはコア内の他のすべてのパッケージに対してアプリケーションバイナリインターフェイス(ABI)互換性を提供します。
Amazon Linux 2 LTS Candidate からLTSバージョンのAmazon Linux 2にローリング・アップグレードを実行できますか?
はい。Amazon Linux 2 LTS Candidate からAmazon Linux 2へのローリングアップグレードが可能です。ただし、final LTS buildの変更により、アプリケーションが破損する可能性があります。移行する前に新規インストールのAmazon Linux 2のでアプリケーションをテストすることをお勧めします。
AWSはAmazon Linux AMIをサポートしますか?
はい。Amazon Linux 2への移行を容易にするため、AWSは2020年6月30日までAmazon Linuxおよびコンテナの最新バージョンのセキュリティアップデートを提供します。AWS Premium SupportやAmazon Linux Discussion Forumなどの既存のサポートチャネルを使用して、サポートリクエストを引き続きリクエストできます。
他にも様々な注意点がありますのでAmazon Linux 2のFAQページを確認しましょう。
最後に
待ちに待ったAmazon Linux 2の長期サポートバージョンが登場しました。今までのAmazon Linuxはアップデートを続けているディストリビューションのスナップショットであったのでセキュリティアップデートのために頻繁なバージョンアップが必要など運用面で課題を抱えていました。Amazon Linux 2のコアパッケージはABIでの互換性維持が提供されます。ただしExtraパッケージはLTS外であるため使用可否について検討した上でご使用下さい。