Blog

Keep up to date with the latest news

Create a Ubuntu VM instance on GC (Google Cloud)

This guide provides a basic setup for a Ubuntu VM on GCP. Adjust the settings based on your specific requirements and security considerations.

Creating a Ubuntu VM instance on Google Cloud Platform (GCP) involves several steps. Below is a step-by-step guide on how to create a Ubuntu VM instance using the Google Cloud Console:

1. Access Google Cloud Console:

Visit the Google Cloud Console and sign in with your Google account.

2. Navigate to Compute Engine:

In the Google Cloud Console, navigate to “Compute Engine” from the left-hand navigation pane.

4. Configure the VM Instance:

  • Name: Provide a name for your VM instance.
  • Region and Zone: Choose the region and zone where you want to deploy your VM.
  • Machine Type: Select the machine type based on your requirements.
  • Boot Disk: Click on “Change” next to Boot Disk. In the “Operating system” tab, choose “Ubuntu” and select the version you want. You can choose the boot disk type and size.
  • Identity and API access: You can leave the default settings for now.

5. Networking:

  • Network: Choose the default network or create a new one.
  • Subnet: Choose the default subnet or create a new one.
  • External IP: Choose “Ephemeral” for now. You can reserve a static IP later if needed.

6. Firewall:

Choose the default option to allow both HTTP and HTTPS traffic.

7. SSH Key:

Under the “SSH Key” section, you can add your SSH public key. This key will allow you to connect to the VM instance using SSH.

8. Click “Create”:

Review the configuration settings, and once satisfied, click the “Create” button at the bottom of the page.

9. Accessing the VM Instance:

Once the VM instance is created, you can connect to it using SSH. You can use the “SSH” button in the Google Cloud Console or use a terminal on your local machine:

ssh username@instance-i

Replace username with your actual username, and instance-ip with the external IP address of your VM instance.

Leave a Reply

Your email address will not be published.