Skip to main content

Command Palette

Search for a command to run...

Create a Custom Image and Use It for VM Creation

Create a custom image from a configured VM and launch new instances from it.

Updated
1 min read
  1. Login to your google account.

  2. Go to Compute Engine and create a virtual machine having a startup script.

  3. For creating an image, we must stop the running instance

    • Click on three dots and select Stop

  4. Now, click on images from left hand-side pannel

  5. Click on create image

  6. Name the image, select source disk as your recently created vm

    Click on create

  7. Your instance image is ready

  8. Now, click on this instance image as we will create a new instance using this image

    Click on “CREATE INSTANCE”

  9. Name the instance, allow HTTP traffic under Firewall and click on create

  10. Your instance is ready

    Click on this External IP, you will be able to see that startup script which we added in the virtual machine “gauri-instance

    You've successfully created a custom image and launched new instances from it—well done! This powerful skill lets you replicate and scale your VMs with ease. Keep up the great work. Stay tuned!

GCP VM Series: From Zero to Compute

Part 11 of 14

Get ready for an exciting ride in Google Cloud! Our series takes you through every method of creating virtual machines in GCP, complete with engaging tutorials and practical labs. Elevate your cloud game and become a VM virtuoso!

Up next

Configure Load Balancer for High Availability

Set up a load balancer to distribute traffic across multiple VM instances.