-
Overview
- Use operating system images to create boot disks for instances
- Public images are provided and maintained by Google, open-source communities, and third-party vendors
- By default, all projects have access to public images and can use them to create instances
- Custom images are available to project
- Users can create a custom image from boot disks and other images, and use the custom image to create an instance
- Most public images can be used at no additional cost, but there are some premium images that do add additional cost to instances
- Custom images imported to Compute Engine add no cost to instances, but do incur an image storage charge
-
Public
- Compute Engine offers many preconfigured public images that have compatible Linux or Windows operating systems
- Use these operating system images to create and start instances
- Compute Engine uses selected images to create a persistent boot disk for each instance
- By default, the boot disk for an instance is the same size as the image selected
- If instance requires a larger persistent boot disk than the image size, resize the boot disk
- Only some images receive support from the Compute Engine team
-
Support
- Support for Compute Engine–provided public OS images is subject to the lifecycle of the respective OS
- Unless otherwise noted, Google usually publishes updated images on a monthly schedule
- Published image updates include security updates and other updates installed for operating system versions that are in the mainstream support stage of their lifecycle
- When an OS version enters extended lifecycle stages, Google does not provide monthly updated images
- Previously published images are marked as deprecated
- Images marked as deprecated are available for use but availability of security updates is subject to availability from the distribution or operating system vendor
- Generally, Google does not backport new features to image versions in the extended lifecycle stage or past the extended lifecycle
- Community-supported images are not directly supported by Compute Engine
- It is up to the project community to ensure that images work with Compute Engine features and that security updates are maintained
- Community-supported images are provided as-is by the project communities that build and maintain them
-
Family
- Image families help manage images in project by grouping related images, making it easy to roll forward and roll back between specific image versions
- An image family always points to the latest version of an image that is not deprecated
- Most public images are grouped into an image family
- Users can add images to an image family when they create a custom image
- The image family points to the most recent image that is added to that family
- Because the image family never points to a deprecated image, rolling the image family back to a previous image version is as simple as deprecating the most recent image in that family
-
Custom
- A custom image is a boot disk image that the user owns and controls access to
- Import a boot disk image to Compute Engine from on-premises environment, or import virtual disks from VMs that are running on local workstation or on another cloud platform
- Create an image from the boot disks of existing Compute Engine instances, and use that image to create new boot disks for instances
- This process creates new instances that are preconfigured with the apps needed without having to configure a public image from scratch
- Copy one image to another image by using the gcloud tool or the API
- Where a custom image is regularly updated with newer configurations and software, group images into an image family
- Image family always points to the most recent image in that family so instance templates and scripts can use that image without having to update references to a specific image version
-
OS
- Some operating system images are customized specifically to run on Compute Engine and have notable differences from the standard images that come directly from the operating system vendor
- CentOS is a free operating system platform that is derived from the sources of Red Hat Enterprise Linux (RHEL)
- Compute Engine offers the latest point release for CentOS
- If you run a CentOS instance started from an older point release, it will automatically update to the most recent point release
- This update might require a reboot to take full effect
- Compute Engine does not automatically update the operating system or the software on instances
- CentOS package manager is preconfigured by the operating system vendor to automatically apply security patches and system upgrades on CentOS instance
- Automatic updates from the operating system vendor do not upgrade instances between major versions of the operating system
- The updates apply system upgrades only for minor versions
- CentOS instances can automatically update their installed packages in addition to the security patches and system upgrades