Ends in
00
days
00
hrs
00
mins
00
secs
SHOP NOW

💰 Up to 40% BIG Discounts on AWS & Azure Foundational Practice Exams – Now as LOW as $9.99 only!

Back to Course

GCP PlayCloud Labs

0% Complete
0/0 Steps
  1. GCP PlayCloud Labs
  2. Guided Lab: Creating a Cloud Storage Bucket
  3. Guided Lab: How to Launch a GCP Compute Engine Linux Instance
  4. Guided Lab: Creating a Cloud SQL Instance
  5. Guided Lab: Creating a Cloud NAT Gateway
  6. Guided Lab: Running SQL Commands in Cloud SQL Studio
  7. Guided Lab: Hosting a Static Website in Google Cloud Storage Bucket
  8. Guided Lab: Creating and Restoring Cloud SQL Backups
  9. Guided Lab: Vertically Scaling a VM Instance
  10. Guided Lab: Creating a Custom Image from a VM Instance with Web Server in Google Cloud
  11. Guided Lab: Setting up a Web Server on a VM Instance
  12. Guided Lab: Creating a Spot VM Instance
  13. Guided Lab: Exploring Instance Metadata in Google Cloud
  14. Guided Lab: Setting Up and Managing a Database on a VM Instance
  15. Guided Lab: Integrating Cloud SQL Database instance with a VM instance
  16. Guided Lab: Connecting Cloud SQL Database with MySQL Workbench (Local)
  17. Guided Lab: Creating a VM Using Instance Templates
  18. Guided Lab: Installing WordPress on an Ubuntu VM Instance with LEMP Stack
  19. Guided Lab: Reserving or Promoting a Static IP Address for a VM Instance
  20. Guided Lab: Creating a Google Kubernetes Engine (GKE) Cluster
  21. Guided Lab: Protecting Data on Cloud Storage Bucket Against Accidental Delete and Overwrite Using Object Versioning
  22. Guided Lab: Connecting to a Kubernetes Engine Cluster
  23. Guided Lab: Creating and Managing Instance Groups in Compute Engine
  24. Guided Lab: Configuring Shielded VM Options
  25. Guided Lab: SSH Access to GCP VM Instance from Local Machine using SSH Key Pair
  26. Guided Lab: Deploying a Simple Web Application on GKE
  27. Guided Lab: Configuring Firewall Rules to Secure and Access a VM
  28. Guided Lab: Establishing VPC Peering for Secure Cross‑Network Communication
  29. Guided Lab: Creating a Custom Virtual Private Cloud (VPC)
  30. Guided Lab: Using Startup Scripts in GCP VM Instances
  31. Guided Lab: Deploying a LAMP Stack on a Compute Engine VM
  32. Guided Lab: Managing Cloud Storage Buckets via SSH Commands
  33. Guided Lab: Guarding Your VM with Deletion Protection
  34. Guided Lab: Using Cloud Storage Lifecycle Rules to Automate Object Management
  35. Guided Lab: Guarding Your Cloud SQL Instances with Deletion Protection
  36. Guided Lab: Exploring Google Cloud Storage Classes
  37. Guided Lab: Setting Up a Linux Bastion Host on GCP
  38. Guided Lab: Uploading, Organizing, and Managing Objects in Cloud Storage
  39. Guided Lab: Creating an Application Load Balancer
  40. Guided Lab: Creating a Network Load Balancer
  41. Guided Lab: Creating VM Snapshots and Restoring a VM from a Snapshot
Lesson 3 of 41
In Progress

Guided Lab: How to Launch a GCP Compute Engine Linux Instance

Description

Google Cloud Compute Engine is a web service that enables you to create and manage virtual servers in the cloud easily. With Compute Engine, you can set up and configure your own operating system and applications as per your requirements.

A Compute Engine instance is a virtual machine that can be launched on the Google Cloud Platform. When you launch an example, it is secured with SSH keys, which are used to prove your identity, and firewall rules that work as a virtual firewall to control incoming and outgoing traffic. When connecting to your instance, you can use SSH directly from your browser or provide the SSH key that you specified during instance launch.

In this lab, you will be using Compute Engine to launch a virtual server with a Linux operating system. This hands-on experience with cloud computing will help you understand how to utilize Compute Engine as a starting point for your own projects.

Objectives

In this lab, you will:

  • Create a Compute Engine Linux instance.
  • Understand the purpose and capabilities of Google Compute Engine (GCE).
  • Manage access and security settings for your instance.

Lab Steps

Creating a Compute Engine Linux instance

1. Navigate to the search bar, type “compute engine,” and click to open the Compute Engine Dashboard.

2. Start creating a new instance by clicking the Create Instance button at the top of the service page.

Configuring the Resource

In the Create an Instance form, fill out the following fields carefully. Each configuration setting is key in determining your virtual machine’s performance, cost, and accessibility.

  1. In the Create an Instance form, fill out the following fields carefully:
  • Name: Provide a descriptive name for your instance.
    • Follow GCP naming conventions: lowercase letters, numbers, and hyphens only.
  • Region and Zone: Select us-central1 and us-central1-a for the available zone.
  • Machine Type: e2-medium

2. Navigate to the ‘OS and storage’ section and click the ‘Change’ button. By default, Debian is selected as the operating system. In the boot disk configuration window, choose Ubuntu as the operating system for this lab. Click the ‘select’ button to set the OS.

The boot disk defines your virtual machine’s operating system and primary storage. Ubuntu is a popular, beginner-friendly Linux distribution widely used for development, automation, and cloud computing. Changing the OS to Ubuntu ensures consistency with the lab’s exercises and compatibility with the commands you’ll run later.

3. In the Security tab, under the ‘Access scopes’ section, enable the ‘Allow full access to all Cloud APIs’.

Access scopes control which Google Cloud services your VM can interact with. Enabling full access allows your instance to communicate with other GCP APIs — such as Cloud Storage or Cloud Logging — without additional configuration. While this level of access is helpful for learning purposes, in production environments, you should apply the principle of least privilege by granting only the specific permissions needed.

  • If validation fails, check the highlighted fields for missing or incorrect values. Adjust the configuration and re-run validation until it passes.

4. After the VM instance is created, you will be navigated to the VM instances dashboard. You can see the check mark under the status, which indicates that the instance is running.

ChatGPT said:

That’s it! Congratulations! 🎉 You have successfully created and configured a Google Cloud Compute Engine Linux instance within the required region and specifications. Through this lab, you gained practical experience in deploying virtual machines, selecting appropriate machine types, configuring operating systems, and managing access permissions.

Skip to content