Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Labs

Working with Custom Images on Google Compute Engine

In this hands-on lab, we are going to practice creating custom images from two versions of a web server (which will be provided for you), add both images to the same image family, describe the image family, deprecate an image, and create a new web server from our custom images.

Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 1h 0m
Published
Clock icon Mar 18, 2019

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create an Image from the base-apache Instance Using the Web Console

    Create a custom image called webserver-base using the base-apache instance as the source. Additionally, when creating the image, in the Family field, enter webserver.

    Verify the image is created and located in the appropriate family using the web console.

  2. Challenge

    Create an Image from the custom-webpage Instance Using Cloud Shell

    Open Cloud Shell and create a custom image using the custom-webpage instance as the source. Additionally, add the custom image to the webserver family. This can be accomplished with the following command:

    gcloud compute images create custom-webpage --source-disk=custom-webpage --source-disk-zone=us-central1-a --family=webserver
    

    Verify the image is created and located in the appropriate family using the web console.

  3. Challenge

    View the Images in the Web Console and View the Webserver Image Family Information in Cloud Shell

    In the web console, view the images and view the webserver image family in Cloud Shell. This can be accomplished with the following command:

    gcloud compute images describe-from-family webserver
    
  4. Challenge

    Deprecate the webserver-base Image Using the Cloud Shell

    Using Cloud Shell, deprecate the webserver-base image with the following command:

    gcloud compute images deprecate webserver-base --state DEPRECATED
    
  5. Challenge

    Create a New Web Server from the custom-webpage Image

    From the web console, create a new instance using the custom-webpage image. The new instance should be called new-webserver and should be of Machine Type e2-micro in any region. Ensure that HTTP traffic is allowed on the firewall.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans