Overview

This section shows you how to provision a Google Axion C4A Arm virtual machine on Google Cloud Platform (GCP) using the c4a-standard-4 (4 vCPUs, 16 GB memory) machine type in the Google Cloud Console.

Note

For support on GCP setup, see the Learning Path Getting started with Google Cloud Platform .

Provision a Google Axion C4A Arm VM

To create a virtual machine based on the C4A instance type:

  • Navigate to the Google Cloud Console .

  • Go to Compute Engine > VM Instances and select Create Instance.

  • Under Machine configuration:

    • Populate fields such as Instance name, Region, and Zone.
    • Set Series to C4A.
    • Select c4a-standard-4 for machine type.

    Image Alt Text:Screenshot of the Google Cloud Console showing the Compute Engine VM instance creation page with Machine configuration section expanded. The Series dropdown shows C4A selected, and the Machine type field displays c4a-standard-4 with specifications of 4 vCPUs and 16 GB memory visible alt-textCreating a Google Axion C4A Arm virtual machine in Google Cloud Console

  • Under OS and Storage, select Change, then choose an Arm64-based OS image. For this Learning Path, use SUSE Linux Enterprise Server or Ubuntu.

    • If using SUSE Linux Enterprise Server, select “Pay As You Go” for the license type.
    • If using Ubuntu, under the Version tab, scroll down and select the aarch64 version of Ubuntu 22.04 LTS.
  • Once appropriately selected, select Select.

  • Under Networking, enable Allow HTTP traffic.

  • Select Create to launch the instance.

  • Once created, you see an SSH option to the right in your list of VM instances. Select this to launch an SSH shell into your VM instance:

Image Alt Text:Screenshot of the Google Cloud Console VM instances list showing a running instance with an SSH button highlighted on the right side of the row alt-textSSH button in VM instances list

  • A browser window opens and displays a shell into your VM instance:

Image Alt Text:Screenshot of a terminal shell interface showing a command prompt in a Google Cloud VM instance with standard Linux shell environment alt-textTerminal shell in your VM instance

Explore your instance: run uname

Use the uname utility to verify that you are using an Arm-based server. For example:

    

        
        
uname -m

    

The output identifies the host machine as aarch64.

Run hello world

Install the gcc compiler:

    

        
        

sudo apt update
sudo apt install -y build-essential
  

    
    

        
        

sudo zypper refresh
sudo zypper install -y gcc
  

    

Using a text editor of your choice, create a file named hello.c with the contents below:

    

        
        
#include <stdio.h>
int main(){
    printf("hello world\n");
    return 0;
}

    

Build and run the application:

    

        
        
gcc hello.c -o hello
./hello

    

The output is:

    

        
        hello world

        
    

Automate Arm infrastructure deployment

Cloud infrastructure deployment is typically done via Infrastructure as Code (IaC) automation tools. There are Cloud Service Provider-specific tools like Google Cloud Deployment Manager .

There are also Cloud Service Provider-agnostic tools like Terraform . Review the Learning Path Deploy Arm virtual machines on Google Cloud Platform (GCP) using Terraform next.

Back
Next