Creating a Virtual Machine

30m access · 30m completion
Connection Details

1 Credit

This lab costs 1 Credit to run. You can purchase credits or a subscription under My Account.


Creating a Virtual Machine



Google Compute Engine lets you create virtual machines running different operating systems, including multiple flavors of Linux (Debian, Ubuntu, Suse, Red Hat, CoreOS) and Windows Server, on Google infrastructure. You can run thousands of virtual CPUs on a system that has been designed to be fast and to offer strong consistency of performance.

In this hands-on lab you'll learn how to create virtual machine instances of various machine types using the Google Cloud Platform Console (GSC) and using the gcloud command line. You'll also learn how to connect an NGINX web server to your virtual machine.

Although you can easily copy and paste commands from the lab to the appropriate place, students should type the commands themselves to reinforce their understanding of the core concepts

What you'll do

  • Create a virtual machine with the Google Cloud Platform Console
  • Create a virtual machine with gcloud command line
  • Deploy a web server and connect it to a virtual machine


  • Familiarity with standard Linux text editors such as vim, emacs, or nano will be helpful

Join Qwiklabs to Read the Rest of this Lab...and More!

  • Get temporary access to the Google Cloud Console.
  • Nearly 100 labs from beginner to advanced levels.
  • Bite-sized so you can learn at your own pace.
Join to Start This Lab


Create GCP instance in specified zone

Run Step

/ 5

Install a NGINX web server

Run Step

/ 5

Create a new instance with gcloud

Run Step

/ 5