CentOS 8 AMI availability in AWS

Issues related to applications and software problems and general support
akrueger
Posts: 1
Joined: 2019/10/03 19:47:37

CentOS 8 AMI availability in AWS

Post by akrueger » 2019/10/03 19:51:07

Is there a date on when an official CentOS 8 AMI will be available in AWS please? We're keen to upgrade, but I'm hesitant to use a third-party image due to security reasons.
I've looked at https://wiki.centos.org/Cloud/AWS and the AWS marketplace and cannot find anything.

TimL
Posts: 4
Joined: 2018/05/11 13:59:39

Re: CentOS 8 AMI availability in AWS

Post by TimL » 2019/10/21 15:33:42

I have been wondering the same thing.
Maybe they have bugs they want to fix first...
Where is the best place to prod the developers with this question?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8 AMI availability in AWS

Post by TrevorH » 2019/10/21 16:16:16

I am fairly sure there is a bugs.centos.org bug ticket for this already.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

speculatrix
Posts: 2
Joined: 2013/05/31 08:48:05
Location: Cambridge, England

Re: CentOS 8 AMI availability in AWS

Post by speculatrix » 2019/10/22 17:01:15

TrevorH wrote:
2019/10/21 16:16:16
I am fairly sure there is a bugs.centos.org bug ticket for this already.
https://bugs.centos.org/view.php?id=16614

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: CentOS 8 AMI availability in AWS

Post by aks » 2020/01/09 18:55:52

You can upload your own vm image to AWS - last did this a few years ago & I think I used a qemu image, possibly converted via virt-image (for something like that). See https://aws.amazon.com/ec2/vm-import/
Also I think the Cloud SIG provides qcow images already.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: CentOS 8 AMI availability in AWS

Post by aks » 2020/01/09 19:23:41

EDIT:
Just checked. Uploaded "raw" image, converted via qemu-img command.

RobertHue
Posts: 3
Joined: 2020/01/30 09:27:35

Re: CentOS 8 AMI availability in AWS

Post by RobertHue » 2020/01/30 09:50:42

Hey guys,
Did someone succeed to generate a working AMI based on CentOS-8-ec2-8.1.1911-20200113.3.x86_64.qcow2 ?
I've converted it into the 'raw' format, uploaded into S3, imported as a VM, converted the snapshot into an AMI and then started an EC2 instance.
But it doesn't boot (status check show "1/2: Instance reachability check failed"),

Any hints ?

edit: same issue with GenericCloud image

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: CentOS 8 AMI availability in AWS

Post by aks » 2020/01/31 19:33:00

So what, the boot partition/disk/whatever ain't working? How do you know?
When I last did it (C7.x) I used this json as the --disk-containers-file (it's meant to be an OVA after all):
[
{
"Description": "CentOS 7.3 RAW",
"Format": "raw",
"UserBucket": {
"S3Bucket": "my-amis",
"S3Key": "aws-import.raw"
}
}]
Perhaps you did something else?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8 AMI availability in AWS

Post by TrevorH » 2020/01/31 20:25:03

CentOS 8 uses blscfg for grub2 and kernel entries are now in /boot/loader/entries not in /boot/grub2/grub2.cfg. If you use e.g an Amazon xen based host then it will not know about that and will be unable to boot. You can try turning it off in /etc/default/grub but when I tried that here, the next kernel update reverted it for me and started using blscfg again. At that point I gave up.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

RobertHue
Posts: 3
Joined: 2020/01/30 09:27:35

Re: CentOS 8 AMI availability in AWS

Post by RobertHue » 2020/02/04 13:40:02

Actually grub and kernel seem (mostly) fine, but the system is not coming up entirely:

Code: Select all

[    1.825011] Freeing unused kernel memory: 316K
[    1.837656] systemd[1]: systemd 239 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=legacy)
[    1.857331] systemd[1]: Detected virtualization xen.
[    1.861986] systemd[1]: Detected architecture x86-64.
[    1.866750] systemd[1]: Running in initial RAM disk.
Welcome to CentOS Linux 8 (Core) dracut-049-27.git20190906.el8_1.1 (Initramfs)
...
[   OK   ] Reached target Basic System.
         Starting dracut initqueue hook...
[    4.106025] scsi host0: ata_piix
[    4.128088] scsi host1: ata_piix
[    4.130871] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc100 irq 14
[    4.136602] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc108 irq 15
[    4.902011] random: crng init done
[    4.905208] random: 7 urandom warning(s) missed due to ratelimiting
[  133.033085] dracut-initqueue[325]: Warning: dracut-initqueue timeout - starting timeout scripts
[  133.581706] dracut-initqueue[325]: Warning: dracut-initqueue timeout - starting timeout scripts
This timeout error is displayed every 0.5sec, no services are started.

Post Reply