diff --git a/internal/cloud/gcp/compute.go b/internal/cloud/gcp/compute.go index 9aef1f7685..29aec4a5fe 100644 --- a/internal/cloud/gcp/compute.go +++ b/internal/cloud/gcp/compute.go @@ -27,6 +27,16 @@ var GuestOsFeaturesRHEL9 []*computepb.GuestOsFeature = []*computepb.GuestOsFeatu {Type: common.ToPtr(computepb.GuestOsFeature_VIRTIO_SCSI_MULTIQUEUE.String())}, {Type: common.ToPtr(computepb.GuestOsFeature_SEV_CAPABLE.String())}, {Type: common.ToPtr(computepb.GuestOsFeature_GVNIC.String())}, + {Type: common.ToPtr(computepb.GuestOsFeature_SEV_SNP_CAPABLE.String())}, +} + +// Guest OS Features for RHEL9.0 images. +// The SEV-SNP support was added since RHEL-9.1, so keeping this for RHEL-9.0 only. +var GuestOsFeaturesRHEL90 []*computepb.GuestOsFeature = []*computepb.GuestOsFeature{ + {Type: common.ToPtr(computepb.GuestOsFeature_UEFI_COMPATIBLE.String())}, + {Type: common.ToPtr(computepb.GuestOsFeature_VIRTIO_SCSI_MULTIQUEUE.String())}, + {Type: common.ToPtr(computepb.GuestOsFeature_SEV_CAPABLE.String())}, + {Type: common.ToPtr(computepb.GuestOsFeature_GVNIC.String())}, } // GuestOsFeaturesByDistro returns the the list of Guest OS Features, which @@ -41,6 +51,8 @@ func GuestOsFeaturesByDistro(distroName string) []*computepb.GuestOsFeature { case strings.HasPrefix(distroName, "rhel-8"): return GuestOsFeaturesRHEL8 + case distroName == "rhel-90": + return GuestOsFeaturesRHEL90 case strings.HasPrefix(distroName, "centos-9"): fallthrough case strings.HasPrefix(distroName, "rhel-9"):