We have some renewed support from the community for having a cloud base image published on GCP. We also now have accounts from GCP that we can use to do the uploads and tests and some contacts from Google to help.
Let's try to collect requirements for a GCP image here and get them published.
Thanks Dusty! Looking forward to helping with this.
I've attached a demo that builds a UEFI-enabled GCE image of Fedora 33:
It is based on fedora-cloud-base.ks, and includes two types of changes:
(I) Proposed changes for first iteration. These are hard-coded into the
file, so we should talk about how to abstract them prior to landing.
a. Modify serial port configuration to match GCE's provided environment. 
b. Modify network MTU to match GCE's configuration. 
c. Omit grub modifications that aren't required to GCE.
d. Enable serial console access. 
(II) Demo-related changes. These wouldn't get committed, but they make it
easier to demo.
a. Inline %include directives.
b. Add the GCE guest environment via the CentOS8 repo.
To run the demo, first login to gcloud and gsutil. Next:
git apply fedora-cloud-base.ks.patch
bash gce-uefi.sh f33 fedora-cloud-base.ks gs://your-bucket/tmp/
Midstream, a virt window will ask you to login to F33. Close this window
to proceed. Once the script finishes, there will be an image named
'f33' in your GCP account. Once finished, some things to try:
Create an instance with the CLI.
# Any zone is fine; this is just an example.
gcloud compute instances create f33 --image f33 --zone us-central1-b
gcloud compute instances tail-serial-port-output f33 --zone us-central1-b
gcloud compute ssh f33 --zone us-central1-b
Interact with the instance via the web UI.
- Access the machine via the SSH button in GCP's web UI.
- View logs via the serial console log button in GCP's web UI.
@ericedens check out https://pagure.io/fedora-kickstarts/pull-request/690
@ericedens - can you download and test out the image at https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20200922.n.0/compose/Cloud/x86_64/images/Fedora-Cloud-Base-GCP-Rawhide-20200922.n.0.x86_64.tar.gz ?
Cool! The image boots, and I can connect to the serial console. For anyone interested, here are the steps to make an instance:
gcloud compute images create fedora-rawhide --source-uri $GCS_PATH --guest-os-features=UEFI_COMPATIBLE
gcloud compute instances create fedora --image=fedora-rawhide
gcloud compute connect-to-serial-port fedora
The first Fedora 33 images were created in last night's run:
@dustymabe -- looks good to me. I ran the same steps as for the previous image, and was able to boot the instance and connect to the serial console.
thanks @ericedens - I'm going to close out this issue then and let the other issues track the future work.
Metadata Update from @ngompa:
- Issue tagged with: GCP
to comment on this ticket.