Creating A VM Instance Using GCP
2 min readJul 4, 2021
YouTube Tutorial Video : https://www.youtube.com/watch?v=IHk5Pnh7I7c
Overview
In this lab, you will explore the Virtual Machine instance options and create several VMs with different characteristics.
Task 1: Create a utility virtual machine
Create a VM
- In the Cloud Console, on the Navigation menu , click Compute Engine > VM instances.
- Click Create.
- For Name, type a name for your instance. Hover over the question mark icon for advice about what constitutes a properly formed name.
- For Region and Zone select us-central1 and us-central1-c respectively.
- For Machine configuration, select Series as N1.
- For Machine type, examine the options.
- Click Details to the right of the Machine type list to see the breakdown of estimated costs.
- For Machine type, click n1-standard-4 (4 vCPUs, 15 GB memory). How did the cost change?
- For Machine type, click n1-standard-1 (1 vCPUs, 3.75 GB memory).
- For Boot disk, click Change.
- Click Version and select Debian GNU/Linux 10 (buster).
- Click Select.
- Click Management, security, disks, networking, sole tenancy.
- Click Networking.
- For Network interfaces, click the Edit icon
- Select None for External IP.
- Click Done.
- Leave the remaining settings as their defaults, and click Create. Wait until the new VM is created.
Task 2: Create a Windows virtual machine
Create a VM
- On the Navigation menu click Compute Engine > VM instances.
- Click Create instance.
- Specify the following, and leave the remaining settings as their defaults:
4. Click Select.
5. For Firewall, enable Allow HTTP traffic and Allow HTTPS traffic.
6. Click Create.
Set the password for the VM
- Click on the name of your Windows VM to access the VM instance details.
- You don’t have a valid password for this Windows VM: you cannot log in to the Windows VM without a password. Click Set Windows password.
- Click Set.
- Copy the provided password, and click CLOSE.
Connect via SSH to your custom VM
- For the custom VM you just created, click SSH.
- To see information about unused and used memory and swap space on your custom VM, run the following command:
freecontent_copy
- To see details about the RAM installed on your VM, run the following command:
sudo dmidecode -t 17content_copy
- To verify the number of processors, run the following command:
nproccontent_copy
- To see details about the CPUs installed on your VM, run the following command:
lscpucontent_copy
- To exit the SSH terminal, run the following command:
exit