What are Public Image, Custom Image & Machine Image in GCP:
Images:- You can use O. S System images to Create boot disk for your instance.
— You can use one of the following of image type:
Public Image: — Public image are provided and maintained by Google, Open Source Communities and third party Vendors By default, all Google cloud Projects have access to these images and can use them to Create instances.
Custom Image:
— Custom images are available only to your Cloud Projects, You can create a custom image from Boot disk and other images then, use the custom image to Create an Instance.
— Custom Image are free of Cost but do incur an image storage charge.
You Can Use Custom Images for following purposes:
— Import a Virtual disk to Compute Engine from your on-premises Environment or from VM’s that are running on your local Workstation or on another Cloud Platform.
— Create an Image from boot disk of your existing VM, then use that image to Create new boot disks for your instance.
— Copy one image to another image by using either the gcloud CLI or the API. You can also Create an image from a custom image in a different Projects.
Machine Image: — A machine image is a Compute Engine resource that stores all the configurations, Metadata, permissions and data from multiple disks of a VM Instance. You can use a machine image in many System maintenance, backup and Recovery and instance Cloning Scenarios.
Machine Image are the most ideal resources for the following Cases:
- Multiple disk Backups
- Instance Cloning
— Machine images are suitable for Creating Backup of all disks that are attached to a VM instances.
— Machine image can be used to Clone instances, You can create multiple copies of an instance.
Information Stored in a Machine Image:
— Descriptions, Machine type, Labels, Network, Tags, Maintenance policy & Instance Metadata.
— Marine image stored in Cloud storage Bucket.
— Regardless of where the machine image is stored, you can still access the machine image globally.
— Machine image is unchangeable but you can Override few properties.
When to use which Image?
Scenarios Machine Image PD Snapshot Custom Image Instance Template
Single Disk Backup Yes Yes Yes No
Multiple Disk Backup Yes No No No
Differential Backup Yes Yes No No
Instance Cloning Yes No Yes Yes
Base image for Replication No No Yes NO
🙏 thanks
ConversionConversion EmoticonEmoticon