[CentOS-devel] CentOS 8 on AWS

Fri Jun 12 20:21:39 UTC 2020
Leon Fauster <leonfauster at googlemail.com>

Am 11.06.20 um 16:03 schrieb Fabian Arrotin:
> 
> You can use virt-install, or lorax or any other tool (but you'll
> probably need some url / repo lines added) to build an image from this
> https://git.centos.org/centos/kickstarts/blob/master/f/CentOS-8-EC2.ks file
> 
> The authoritative builds on koji/mbox (like for example this one :
> https://koji.mbox.centos.org/koji/buildinfo?buildID=11432) is using
> pungi and so these configs (also public) :
> https://git.centos.org/centos/pungi-centos/blob/centos-8.2.2004/f/images-cloud.conf
> 

Thanks for the overview!

I build an image based 8.1.1911 (via virt-install) and got it booted on
AWS. I noticed while updating the system that dracut has a problem with
the injected config in /etc/dracut.conf.d/sgdisk.conf (via CentOS-8-EC2.ks):

...
Running scriptlet: glibc-all-langpacks-2.28-72.el8_1.1.x86_64 159/159
Running scriptlet: sssd-common-2.2.0-19.el8_1.1.x86_64        159/159
Running scriptlet: kernel-core-4.18.0-147.8.1.el8_1.x86_64    159/159

dracut-install: ERROR: installing 'sgdisk'
dracut: FAILED: /usr/lib/dracut/dracut-install -D 
/var/tmp/dracut.2koCGr/initramfs -a sgdisk
dracut-install: ERROR: installing 'sgdisk'
dracut: FAILED: /usr/lib/dracut/dracut-install -D 
/var/tmp/dracut.VAhgEc/initramfs -a sgdisk

Running scriptlet: microcode_ctl-4:20190618-1.20191115.3.el8_1.x86_64 
159/159

dracut-install: ERROR: installing 'sgdisk'
dracut: FAILED: /usr/lib/dracut/dracut-install -D 
/var/tmp/dracut.skbKmv/initramfs -a sgdisk

Running scriptlet: tuned-2.12.0-3.el8_1.1.noarch            159/159
Running scriptlet: glibc-all-langpacks-2.28-72.el8.x86_64   159/159
Running scriptlet: glibc-common-2.28-72.el8_1.1.x86_64 

...


Does this problem persists in 8.2.2004 ?



 > <snip>
 >
 > I tested both x86_64 and aarch64 images and they booted fine (fwiw)
 > Now to see how to share these AMIs at release/GA time, etc ... :-)

Sounds great!

--
Leon