A cloud administrator needs to create a custom disk image from an existing Compute Engine VM instance and deploy a new VM instance using that image. What is the correct sequence of steps to complete this workflow?
- 1Stop the source Compute Engine VM instance to ensure disk consistency.
- 2Create a custom disk image from the source instance's root persistent disk using `gcloud compute images create`.
- 3Provision a new Compute Engine VM instance specifying the custom image as the boot disk using `gcloud compute instances create --image`.
- 4Verify that the new Compute Engine VM instance reaches the `RUNNING` status.
Cevap
The correct sequence is: Stop the source Compute Engine VM instance to ensure disk consistency, create a custom disk image from the source instance's root persistent disk using `gcloud compute images create`, provision a new Compute Engine VM instance specifying the custom image as the boot disk using `gcloud compute instances create --image`, and verify that the new Compute Engine VM instance reaches the RUNNING status.
The workflow follows standard Google Cloud Compute Engine deployment practices: first, stopping the source VM ensures data integrity; second, creating the custom image packages the operating system and installed software; third, creating a new instance from that image provisions the VM; fourth, checking the status ensures the instance has started properly.
Adım Adım Çözüm
Anahtar Kavram
Custom Image Creation and VM Provisioning Workflow