cloud computing

How to Create a VM on Google Cloud Platform: 10 Simple Steps.

How to create a VM on GCP is one of the basics of the Google Cloud platform. Virtual machines (VMs) play a crucial role in delivering scalable and flexible computing resources in cloud infrastructure.  A Virtual machine (VM) is created through the compute Engine. It consists of a virtual CPU, some amount of memory, disk surge, and an IP address

Basically, there are ways on how to create a VM through the compute Engine on the Google Cloud Platform. And also through the command-line interface including CloudShell, for example: $ gcloud compute instance create (instance-name). You can also create the VM from REST API with many VM options like project, region, zone, subnetwork, machine type, Disk options, IP region. The main components of a Virtual Machine (VM) are;
1. CPU
2. Memory
3. Disk
4. Network

Virtual machines are defined based on these main components. Virtual Machines are also defined according to machine type. First, is the Predefined machine Types, This is the ratio of GB of memory per CPU. Predefined machine types include;

  • Standard
  • High Memory
  • High-CPU
  • Memory Optimize
  • Computer Optimize
  • Shared-Core
    The second is the Custom Machine types. By choosing Custom machine type you will have to specify the amount of memory and number of vCPUs. Each virtual machine comes in various sizes and specifications allowing cloud users to choose the best VM that matches the workload, speed, compute intensiveness, storage, capacity, and networking capabilities. For instance, VMs offer different numbers of virtual CPUs (vCPUs), which determine the processing power allocated to the VM. This can range from single-core VMs for lightweight tasks to multi-core VMs for resource-intensive applications. The Smallest type is the micro VM which shares a CPU with other VMs

How to Create a VM on GCP. 10 simple steps.

These are 10 simple steps on how to create a VM on the GCP.

  1. Step One: Navigate the GCP Menu on the left-hand side of the Google Platform. you can access the GCP from here.
  2. Step Two: Scroll down the menu to Compute Engine and place your cursor.
  3. Step Three: Click on the VM Instances on the dialogue box that pops up on the right
  4. Step Four: Click ‘Create’
  5. Step Five: Specify the following values, and leave the remaining settings as their default
    Name – (Give your VM a name)
    Region – (Select a region eg US-Central1)
    Zone – (Select a zone eg US-Central1-a)
    Choose a Machine type( Note that cost is adjusted based on region and machine type selected)
    – Boot Disk – (Select a boot image eg Debian GNU/Linux9(Stretch)
    – Identity and API – (Click on Access, then Access Scopes to set Access for each API)
    Storage – (Select – read-write)
  6. Step Six: Click Management, Security, Disks, Networking
  7. Step Seven: Click on Disks, then on ‘Add new Disk’ (to add more disks to be used eg for game storage if there is a need)
  8. Step Eight: Specify the following values and leave the remaining settings as their default
    – Name – (name your new disk)
    – Disk type – (select a disk type eg SSD Persistent Disk)
    – Source type – ( select ‘None'(Blank disk)
    – Size(GB) – (select the size in GB eg 50GB
    – Encryption – (Choose encryption to secure your data eg Google-Managed Key)
    Click done – ( this action will create the disk and automatically attach it to the VM when the VM is created)
  9. Step Nine: Click on ‘Network details interface’ to choose your network.
  10. Step Ten: Click ‘Done’ and wait a few minutes for your VM to be created. Once it is created you will see a notification that your VM has been successfully created

Conclusion

Congratulations, on learning how to create a VM on GCP. This will help you in working with the Google Cloud infrastructures as a Virtual machine is a core cloud vital. This will empower you to adapt effectively to the rapidly changing demands of cloud technology. Whether you are running standard applications, diving into complex simulations, or processing vast amounts of data, learning how to create virtual machines in the cloud will boost your confidence in working with the GCP on your cloud computing journey.

Cloudtek

Onuka Kalu is a Google-certified Associate Cloud Engineer (ACE) with vast knowledge of the Google Cloud Platform (GCP). He is a product of the Google Africa Developer Scholarship (GADS). Cloudtek was born out of his passion to give back to the society and to serve as a gateway to the world of cloud technology; His target is to simplify the complexities of cloud computing, and empower curious minds to grasp its potential fully, become world-class cloud computing experts. Hence, the slogan ... Follow the Cloud. It is ideal for everyone who wants to become a Google Associate Cloud Engineer. He holds a bachelor of science degree from the University of Nigeria Nsukka. He has authored many inspirational books, among them is ‘The Threshold of Life’. He is a technopreneur, Success enthusiast, and senior partner at Conquestlane Global Services.He is happily married with children.

Recent Posts

Latest Google Cloud Innovations: Accelerating Digital Transformation in 2023.

IntroductionAI and Machine LearningDuet AI from Google CloudGoogle Cloud TPUv5eVertex AI VisionVertex AI Natural Language Data and…

9 months ago

GCP App Engine: 2 Powerful App Engine Environments

IntroductionUnderstanding the GCP App EngineThe Standard EnvironmentThe Flexible EnvironmentComparing the 2 App Engine EnvironmentsCost ConsiderationsConclusion…

10 months ago

Disk Options: 4 Best Disk Options in Google Cloud Platform

IntroductionWhat You Should Know About Google Cloud Platform DisksDifferent Disk Options in GCPLocal SSD DisksManaging…

10 months ago

10 Common But Powerful Compute Engine Actions.

IntroductionSome Powerful Compute Engine Actions include;Metadata and ScriptsMove an Instance to a new zone: Snapshot…

10 months ago

Google Compute Engine: 8 Important Features of GCE.

IntroductionWhat is Google Compute Engine (GCE)?Key Features of Google Compute EngineGoogle Compute Engine (GCE) Vs.…

10 months ago

Machine Images: 1 best way to Maintain Cloud Consistency

IntroductionWhat is a machine image in GCP?Types of Machine Images in GCPPublic images:Custom images: Instance TemplatesContainer-Optimized…

10 months ago