From c0a78d99411846216ad3cb2f51d538f5937fba8b Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Wed, 16 Sep 2020 17:45:30 -0400 Subject: [PATCH] cloud: starting kickstart for GCP cloud image This is a starting point for a GCP cloud image. The image boots fine in GCP today. In the future we may want to consider adding the GCP cloud agents if they get packaged in Fedora. (cherry picked from commit 44c9d49fb4fcc6d079eb42a37c41cc4a82e1d5bf) --- fedora-cloud-base-gcp.ks | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 fedora-cloud-base-gcp.ks diff --git a/fedora-cloud-base-gcp.ks b/fedora-cloud-base-gcp.ks new file mode 100644 index 0000000..3753d78 --- /dev/null +++ b/fedora-cloud-base-gcp.ks @@ -0,0 +1,25 @@ +# This is a basic Fedora cloud spin designed to work with GCP. +# Note that GCP prefers UEFI so we'll need to make sure this image +# is created from a machine that is started in UEFI mode. + +# Inherit from cloud base +%include fedora-cloud-base.ks + +# Change serial port configuration to recommended default for GCP (ttyS0,38400n8d) +# Don't show bootloader as it's impossible for the user to get to it in time +# So we might as well not waste the 1 second on each boot. +# https://cloud.google.com/compute/docs/import/import-existing-image +bootloader --timeout=0 --append="no_timer_check net.ifnames=0 console=ttyS0,38400n8d" + +#%packages +#%end + +%post --erroronfail +cat < /etc/NetworkManager/conf.d/gcp-mtu.conf +# In GCP it is recommended to use 1460 as the MTU. +# Set it to 1460 for all connections. +# https://cloud.google.com/network-connectivity/docs/vpn/concepts/mtu-considerations +[connection] +ethernet.mtu = 1460 +EOF +%end