Membuat instance VM Windows Server di Compute Engine

Pelajari cara membuat instance virtual machine (VM) Windows Server menggunakan konsolGoogle Cloud .


Untuk mengikuti panduan langkah demi langkah untuk tugas ini langsung di Google Cloud konsol, klik Pandu saya:

Pandu saya


Harga

  • Image Windows Server adalah image premium, dan penggunaannya akan menyebabkan biaya tambahan.

  • VM Windows Server tidak disertakan dalam Uji Coba Gratis.

Sebelum memulai

  1. Login ke akun Google Cloud Anda. 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.
  2. 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 the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. Make sure that you have the following role or roles on the project: Compute Instance Admin (v1), Compute Security Admin, Service Account User, Service Usage Admin

    Check for the roles

    1. In the Google Cloud 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 Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. Click Grant access.
    4. In the New principals field, enter your user identifier. This is typically the email address for a Google Account.

    5. Click Select a role, then search for the role.
    6. To grant additional roles, click Add another role and add each additional role.
    7. Click Save.
  5. 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 the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  6. Verify that billing is enabled for your Google Cloud project.

  7. Make sure that you have the following role or roles on the project: Compute Instance Admin (v1), Compute Security Admin, Service Account User, Service Usage Admin

    Check for the roles

    1. In the Google Cloud 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 Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. Click Grant access.
    4. In the New principals field, enter your user identifier. This is typically the email address for a Google Account.

    5. Click Select a role, then search for the role.
    6. To grant additional roles, click Add another role and add each additional role.
    7. Click Save.
  8. Aktifkan Compute Engine API.

    Aktifkan Compute Engine API

  9. Jika Anda tidak menggunakan Windows di mesin lokal, instal klien RDP seperti Chrome Desktop Jarak Jauh.

Membuat instance VM Windows Server

  1. Di konsol Google Cloud , buka halaman Buat instance.

    Buka Buat instance

  2. Di bagian OS and Storage, klik Change untuk mulai mengonfigurasi boot disk Anda.
  3. Di tab Public images, pilih Windows Server dari daftar Operating system.
  4. Pilih Windows Server 2019 Datacenter 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 dicantumkan di halaman VM instances dengan ikon status hijau.

Terhubung ke instance VM

  1. Di konsol Google Cloud , buka halaman VM instances.

    Buka instance VM

  2. Di kolom Name, klik nama instance VM Anda.

  3. Di bagian Akses jarak jauh, klik Setel sandi Windows.

  4. Tentukan nama pengguna, lalu klik Set untuk membuat sandi baru untuk VM Windows Server ini. Simpan nama pengguna dan sandi sehingga Anda dapat login ke VM.

  5. Instal layanan Chrome Desktop Jarak Jauh di VM Anda.

  6. Hubungkan ke instance Anda menggunakan pilihan fitur grafis atau command-line.

Pembersihan

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

  1. Di konsol Google Cloud , buka halaman VM instances.

    Buka instance VM

  2. Klik nama instance VM yang Anda buat.

  3. Di bagian atas halaman detail instance VM, klik Hapus.

Langkah berikutnya