Membuat instance VM Linux di Compute Engine
Pelajari cara membuat instance virtual machine (VM) Linux di Compute Engine menggunakan Cloud de Confiance konsol.
Sebelum memulai
-
In the Cloud de Confiance console, on the project selector page, select or create a Cloud de Confiance project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Cloud de Confiance project.
-
Make sure that you have the following role or roles on the project: Compute Instance Admin (v1), Compute Security Admin, OSPolicyAssignment Admin, Service Account User, Service Usage Admin
Check for the roles
-
In the Cloud de Confiance console, go to the IAM page.
Go to IAM - Select the project.
-
In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
- For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.
Grant the roles
-
In the Cloud de Confiance console, go to the IAM page.
Go to IAM - Select the project.
- Click Grant access.
-
In the New principals field, enter your user identifier. This is typically the identifier for a user in a workforce identity pool. For details, see Represent workforce pool users in IAM policies, or contact your administrator.
- Click Select a role, then search for the role.
- To grant additional roles, click Add another role and add each additional role.
- Click Save.
-
- Mengaktifkan Compute Engine API
Membuat instance VM Linux
- Di Cloud de Confiance konsol, buka halaman Buat instance.
- Di bagian OS and Storage, klik Change untuk mulai mengonfigurasi boot disk Anda.
- Di tab Public images, pilih Ubuntu dari daftar Operating system.
- Pilih Ubuntu 24.04 LTS dari daftar Version.
- Klik Select.
- Di bagian Firewall, pilih Allow HTTP traffic.
- Untuk membuat VM, klik Create.
Tunggu beberapa saat hingga instance VM dimulai. Setelah instance VM siap, instance akan dicantumkan di halaman VM instances dengan ikon status hijau.
Compute Engine memberikan peran roles/compute.instanceAdmin kepada pengguna yang membuat instance VM. Compute Engine juga menambahkan pengguna tersebut ke grup sudo.
Terhubung ke instance VM
Hubungkan ke instance VM menggunakan Cloud de Confiance konsol dan selesaikan langkah-langkah berikut. Anda terhubung ke instance VM sebagai pengguna yang Anda gunakan untuk mengakses halaman VM instances.
- Di Cloud de Confiance konsol, buka halaman VM instances.
-
Di daftar instance virtual machine, klik SSH di baris
instance yang ingin Anda hubungkan.

Pembersihan
Agar akunAnda tidak dikenai biaya untuk resource yang digunakan pada halaman ini, ikuti langkah-langkah berikut. Cloud de Confiance
Di Cloud de Confiance konsol, buka halaman VM instances.
Pilih baris yang berisi instance VM yang telah Anda buat dalam tutorial ini.
Klik Delete, lalu klik Delete untuk mengonfirmasi.
Langkah berikutnya
- Ikuti tutorial untuk menyiapkan server web dasar pada instance baru Anda.
- Pelajari tutorial untuk memulai di Cloud de Confiance konsol.
- Pelajari cara membuat dan mengelola instance mesin virtual menggunakan API dan alat command line gcloud CLI.
- Pelajari image Linux yang tersedia di Compute Engine lebih lanjut.
- Pelajari cara mentransfer file ke instance Anda.