You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Getting Started with Google Cloud Platform"
2
+
title: Getting Started with Google Cloud Platform
3
+
weight: 4
4
4
5
-
weight: 4# 1 is first, 2 is second, etc.
6
-
7
-
# Do not modify these elements
8
-
layout: "learningpathall"
5
+
### FIXED, DO NOT MODIFY
6
+
layout: learningpathall
9
7
---
10
-
[Google Cloud](https://cloud.google.com/) is a public cloud computing platform.
11
-
12
-
As with most cloud service providers, Google Cloud offers a pay-as-you-use [pricing policy](https://cloud.google.com/pricing), including a number of [free](https://cloud.google.com/free/docs/free-cloud-features) services.
13
-
14
-
This section is to help you get started with [Google Cloud Compute Engine](https://cloud.google.com/compute) compute services, using Arm-based Virtual Machines. Google Cloud offers two generations of Arm-based VMs, `C4A` is the latest generation based on [Google Axion](https://cloud.google.com/products/axion), Google's first Arm-based server processor, built using the Armv9 Neoverse V2 CPU. The previous generation VMs are based on Ampere Altra processor and part of [Tau T2A](https://cloud.google.com/tau-vm) family of Virtual Machines.
15
-
16
-
Detailed instructions are available in the Google Cloud [documentation](https://cloud.google.com/compute/docs/instances).
17
-
18
-
## Create an account
19
-
20
-
Before you begin, create an account. For a personal account, click on [Get started for free](https://cloud.google.com/), and follow the on-screen instructions to register. You can use an existing Google account if you have one.
21
-
22
-
If using an organization's account, you will likely need to consult with your internal administrator. See [this guide](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_create.html) for additional information.
23
-
24
-
## Browse for an appropriate instance
25
-
26
-
Google Cloud offers a wide range of instance types, covering all performance (and pricing) points. For an overview of the `C4A` instance types, see the [General-purpose machine family](https://cloud.google.com/compute/docs/general-purpose-machines#c4a_series). Similarly, to know more about the `T2A` instance types, see this [page](https://cloud.google.com/compute/docs/general-purpose-machines#t2a_machines).
27
-
28
-
Also note which [regions](https://cloud.google.com/compute/docs/regions-zones#available) these servers are available in.
29
-
30
-
## Create your Compute Engine instance
31
-
32
-
The easiest way to launch your instance is via the [Google Cloud Console](https://console.cloud.google.com). Activities can be separated by `Project`. By default, when you first login, you will be in `My First Project`. If you wish to rename this, navigate to `IAM & Admin` > `Settings`, and rename. You can also create new project(s) from the pull-down menu, or [directly](https://console.cloud.google.com/projectcreate).
33
-
34
-
Select `Compute Engine` from the `Quick access` section, if shown. Else navigate to `Compute Engine` > `VM instances`. If it is your first time, you will be prompted to enable `Compute Engine API`. Go to the [VM instances](https://console.cloud.google.com/compute/instances) area of the console.
35
-
36
-
Click the `CREATE INSTANCE` button.
37
-
38
-

39
-
40
-
### Name your instance
41
-
42
-
Give your instance a meaningful, but arbitrary, name. This is particularly useful when creating multiple instances. You can optionally add [labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels) as additional identifiers.
43
-
44
-

45
-
46
-
### Select Region and Zone for your instance.
47
-
48
-
Select an appropriate `region` and `zone` that support Arm-based servers.
49
-
50
-

51
-
52
-
To view the latest information on which available regions and zones support Arm-based servers, see the [Compute Engine documentation](https://cloud.google.com/compute/docs/regions-zones#available). To filter for Arm-based machines, click on `Select a machine type`, then select `C4A` or `T2A` from the pull-down menu.
53
-
54
-

55
-
56
-
### Machine configuration
57
8
58
-
Select `C4A` from the `Series` pull-down menu. Then select an appropriate `Machine type` configuration for your needs.
9
+
## Overview
59
10
60
-

11
+
In this section, you will learn 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.
61
12
62
-
### Boot disk configuration
63
-
64
-
Click the `CHANGE` button if you wish to change the virtual disk size, or the operating system or version, for example to `Ubuntu 24.04 LTS`. Be sure to select Arm compatible image.
65
-
66
-

67
-
68
-
## Security and SSH key pair
69
-
70
-
By default, you can access your instance via the browser. If you wish to use an SSH terminal, you must [create](https://cloud.google.com/compute/docs/connect/create-ssh-keys) and [add](https://cloud.google.com/compute/docs/connect/add-ssh-keys) an appropriate SSH key pair.
71
-
72
-

73
-
74
-
### Other options
75
-
76
-
Other options, such as `Confidential VM service`, can optionally be enabled. For now, leave as default (disabled). See the Google Cloud documentation for an explanation of these configurations.
77
-
78
-
When satisfied, click `CREATE`. After a few moments the instance will be available and listed in your [console](https://console.cloud.google.com/compute/instances).
79
-
80
-

81
-
82
-
## Connect to your instance
83
-
84
-
You can interact with your instance via the browser (SSH-in-browser) or via an SSH terminal application.
85
-
86
-
### SSH-in-browser Connect
13
+
{{% notice Note %}}
14
+
For support on GCP setup, see the Learning Path [Getting started with Google Cloud Platform](https://learn.arm.com/learning-paths/servers-and-cloud-computing/csp/google/).
15
+
{{% /notice %}}
87
16
88
-
Once running, the IP address will be displayed, and you are able to connect to the instance.
17
+
## Provision a Google Axion C4A Arm VM in Google Cloud Console
89
18
90
-
Select `Open in browser window` from the `SSH` pull-down to open an SSH shell directly.
19
+
To create a virtual machine based on the C4A instance type:
20
+
- Navigate to the [Google Cloud Console](https://console.cloud.google.com/).
21
+
- Go to **Compute Engine > VM Instances** and select **Create Instance**.
22
+
- Under **Machine configuration**:
23
+
- Populate fields such as **Instance name**, **Region**, and **Zone**.
24
+
- Set **Series** to `C4A`.
25
+
- Select `c4a-standard-4` for machine type.
91
26
92
-

27
+

93
28
94
-
Once connected, you are now ready to use your instance.
95
29
96
-
### SSH client Connect
30
+
- Under **OS and Storage**, select **Change**, then choose an Arm64-based OS image. For this Learning Path, use **SUSE Linux Enterprise Server** or **Ubuntu**. Click **Select**.
31
+
- Under **Networking**, enable **Allow HTTP traffic**.
32
+
- Click **Create** to launch the instance.
33
+
- Once created, you should see a "SSH" option to the right in your list of VM instances. Click on this to launch a SSH shell into your VM instance:
97
34
98
-
If an SSH key pair was set, connect to the instance with your preferred SSH client. For example, if using `ubuntu` image:
35
+

99
36
100
-
```console
101
-
ssh -i <private_key> ubuntu@<public_ip_address>
102
-
```
37
+
- A window from your browser should come up and you should now see a shell into your VM instance:
103
38
104
-
{{% notice Note %}}
105
-
Replace `<private_key>` with the private key on your local machine and `<public_ip_address>` with the public IP of the target VM.
106
-
{{% /notice %}}
107
-
108
-
Terminal applications such as [PuTTY](https://www.putty.org/), [MobaXterm](https://mobaxterm.mobatek.net/) and similar can be used.
109
-
110
-
Once connected, you are now ready to use your instance.
39
+

111
40
112
41
## Explore your instance
113
42
@@ -122,12 +51,19 @@ will identify the host machine as `aarch64`.
122
51
123
52
### Run hello world
124
53
125
-
Install the `gcc` compiler. If you are using `Ubuntu`, use the following commands. If not, refer to the [GNU compiler install guide](/install-guides/gcc):
54
+
Install the `gcc` compiler:
55
+
56
+
{{< tabpane code=true >}}
57
+
{{< tab header="Ubuntu" language="bash">}}
58
+
sudo apt update
59
+
sudo apt install unzip -y
60
+
{{< /tab >}}
61
+
{{< tab header="SUSE Linux" language="bash">}}
62
+
sudo zypper refresh
63
+
sudo zypper install -y curl unzip
64
+
{{< /tab >}}
65
+
{{< /tabpane >}}
126
66
127
-
```console
128
-
sudo apt-get update
129
-
sudo apt install -y gcc
130
-
```
131
67
Using a text editor of your choice, create a file named `hello.c` with the contents below:
0 commit comments