Membuat instance VM Linux di Compute Engine

Pelajari cara membuat instance virtual machine (VM) Linux di Compute Engine menggunakan konsol Cloud de Confiance .

Sebelum memulai

  1. 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 (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  2. Verify that billing is enabled for your Cloud de Confiance project.

  3. 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

    1. In the Cloud de Confiance console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. 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.

    4. 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

    1. In the Cloud de Confiance console, go to the IAM page.

      Buka IAM
    2. Pilih project.
    3. Klik Grant access.
    4. Di kolom New principals, masukkan ID pengguna Anda. Biasanya, ini adalah ID untuk pengguna dalam workforce identity pool. Untuk mengetahui detailnya, lihat Merepresentasikan pengguna workforce pool dalam kebijakan IAM, atau hubungi administrator Anda.

    5. Di daftar Select a role, pilih peran.
    6. Untuk memberikan peran tambahan, klik Tambahkan peran lain, lalu tambahkan setiap peran tambahan.
    7. Klik Simpan.
  4. Aktifkan Compute Engine API.

    Mengaktifkan Compute Engine API

Membuat Instance VM Linux

  1. In the Cloud de Confiance console, go to the Create an instance page.

    Go to Create an instance

  2. In the OS and Storage section, click Change to begin configuring your boot disk.
  3. Di tab Public images, pilih Ubuntu dari daftar Sistem operasi.
  4. Pilih Ubuntu 24.04 LTS dari daftar Versi.
  5. Klik Pilih.
  6. Di bagian Firewall, pilih Izinkan traffic HTTP.
  7. Untuk membuat VM, klik Create.

Tunggu beberapa saat hingga instance VM dimulai. Setelah instance VM siap, instance akan tercantum 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 konsol Cloud de Confiance dan selesaikan langkah-langkah berikut. Anda terhubung ke instance VM sebagai pengguna yang Anda gunakan untuk mengakses halaman instance VM.

  1. In the Cloud de Confiance console, go to the VM instances page.

    Go to VM instances

  2. In the list of virtual machine instances, click SSH in the row of the instance that you want to connect to.

    SSH button next to instance name.

Pembersihan

Agar akun Cloud de Confiance Anda tidak dikenai biaya untuk resource yang digunakan pada halaman ini, ikuti langkah-langkah berikut.

  1. Di konsol Cloud de Confiance , buka halaman VM instances.

    Buka instance VM

  2. Pilih baris yang berisi instance VM yang telah Anda buat dalam tutorial ini.

  3. Klik Hapus, lalu klik Hapus untuk mengonfirmasi.

Langkah berikutnya