On 2/25/23 06:21, Peter Boy wrote:
Am 25.02.2023 um 00:23 schrieb Thomas Cameron via users users@lists.fedoraproject.org:
Hey, all! I work for AWS, and I put together a quick HOWTO on setting up a Fedora 37 instance using KVM, and then converting it to a format that can be used to create a new EC2 instance on AWS. Note that this is a personal project, is not endorsed by AWS, and was not produced by AWS. It’s just me.
https://camerontech.com/fedora-aws/
I am not a web guy, I just did a super basic HTML page using Seahorse. It’s literally something I threw together, and I am sure I missed some things, but I hope that it is helpful for anyone who wants to build their own image. I know there are a bunch of images already out there in the community, but I wanted to document how to do it for yourself.
I hope you find it helpful!
The first questions that comes into my mind: why not use cloud image for Amazon? It’s not Fedora Server, but something alike. But that is your kickstart as well. Or use the generic cloud image, which includes cloud-init, and adjust that?
And just in case you whish to provide a (real) Fedora Server, why don’t you use the provided KVM image and add some specifics apps using e.g. guestfish on the image (as described in the Fedora Server documentation)? Or use the kickstart from Fedora repository and add some specific apps to it?
I’m just curious, no criticism. I created the KVM image and know about the difficulties and peculiarities using kickstart and imagefactory.
Thanks for the response! I could have, and probably should have, used Amazon EC2 Image Builder (https://aws.amazon.com/image-builder/), but I wanted to understand all the steps myself. And I specifically wanted the Fedora server build. This was mostly a thought exercise/learning experience thing, to be honest. I hoped that it would be helpful in case anyone else wanted to understand all the steps. Pure learning exercise.
I had to look all over the web to find the right steps to build my own image and make it work. There were some things I had to find on Red Hat's web site, other things I needed to figure out from the AWS web site, and some trial and error things because there was stuff that weren't clearly documented or intuitive/obvious (like the recent change that S3 buckets require encryption).
Honestly, this was just me nerding out and having fun, and I wanted to share it in case anyone else wanted to do the same.