Google Compute Engine allows you to use virtual machines running on Google's Google Cloud Platform infrastructure. You can create small VMs or larger instances with Debian, Windows or other standard images as per your requirement of Google Cloud Platform (GCP).
The user can rent a VM and pay according to usage. To understand more about billing, click here
In this article, we will demonstrate how to create a virtual machine (VM) with the Ubuntu 18.04 Google Cloud Platform (GCP) boot disk image , but first, let's look at what is a virtual machine.
What is a virtual machine?
A virtual machine is a computer file called an image that runs on the hypervisor so that it feels like a full-filmed machine, it acts like an actual computer, the processes of the virtual machine are isolated from the host system, making it ideal for cloud computing. Cloud vendors like GCP provide multiple virtual machines on a single hypervisor that share the same underlying hardware.
Below is a basic architecture diagram of a virtual machine.
This article assumes that the user has a valid Google Cloud Platform account. If the user does not have the GCP account, they can create one by clicking the link below.
Create GCP account
What we will do:
- Login to Google Cloud Platform
- Create a virtual machine from Ubuntu: 1
- Connect to instance
Sign in to Google Cloud Platform
- Click here to go to the GCP login page.
When you hit above the link you will see a web page as follows where you must log in with your credentials.
Create a virtual machine from Ubuntu: 18.04 Boot Image
Step 1: Navigate to Compute Engine Section from the navigation pane and click on VM Instances .
Step 2: Click & # 39; CREATE INSTANCE "button in the top navigation pane.
Step 3 : Sel ect options
- Name: Enter the name of the virtual machine Note that the name must be lowercase letters, numbers and hyphens
- Region and zone: Select the region and zone where you wants to start the World Cup instance. According to GCP official documentation " A region is a specific geographical location where you can host your resources. Each region has one or more zones"
- Machine configuration: Select machine configuration according to your requirements, you can find more information about Machine Configuration here Note for the purpose of this article I have kept the machine configuration as standard, they can be seen in the image below
Boot D isk: Select boot disk according to your settings, here I have selected ubuntu 18.04 boot disk.
Step 4: Click the create button at the bottom of the page. This starts the process of creating a GCP World Cup, it may take some time before the World Cup is up.
A green check mark appears next to the VM name once, the VM instance is in the available state
<img src = "https://www.howtoforge.com/images/how_to_create_a_virtual_machine_vm_on_google_cloud_plat_ .png "width =" 450px "alt =" VM instance available  Connect to instance
Navigate to the newly created VM instance and c click on the SSH menu and select the option "Open in the browser window"
Note that it will open the shell in a new tab. Now you can access the VM instance with the browser.
This article shows the creation of Ubuntu 18.04 VM instance with the default setting, GCP provides advance options for us to configure instance type, disk type and network settings according to our requirements, however, is beyond the scope of this article, you can play with the VM instance's advance options in GCP if you want to do so.