Membuat instance VM Linux di Compute Engine
Pelajari cara membuat instance virtual machine (VM) Linux di Compute Engine menggunakan Google Cloud konsol.
Untuk mengikuti panduan langkah demi langkah untuk tugas ini langsung di Google Cloud konsol, klik Pandu saya:
Sebelum memulai
- Login keakun Anda. Google Cloud Jika Anda baru menggunakan Google Cloud, buat akun untuk mengevaluasi performa produk kami dalam skenario dunia nyata. Pelanggan baru juga mendapatkan kredit gratis senilai $300 untuk menjalankan, menguji, dan men-deploy workload.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud 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 Google Cloud 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 Google Cloud 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 Google Cloud 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 email address for a Google Account.
- Click Select a role, then search for the role.
- To grant additional roles, click Add another role and add each additional role.
- Click Save.
-
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud 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 Google Cloud 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 Google Cloud 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 Google Cloud 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 email address for a Google Account.
- 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 Google Cloud 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 Google Cloud konsol dan selesaikan langkah-langkah berikut. Anda terhubung ke instance VM sebagai pengguna yang Anda gunakan untuk mengakses halaman VM instances.
- Di Google Cloud 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. Google Cloud
Di Google Cloud 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 Google Cloud 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.