在 Compute Engine 中建立 Linux VM 執行個體

瞭解如何使用 Trusted Cloud 控制台在 Compute Engine 中建立 Linux 虛擬機器 (VM) 執行個體。

事前準備

  1. In the Trusted Cloud console, on the project selector page, select or create a Trusted Cloud project.

    Go to project selector

  2. Make sure that billing is enabled for your Trusted Cloud project.

  3. 啟用 Compute Engine API。

    啟用 Compute Engine API

建立 Linux VM 執行個體

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

    Go to Create an instance

  2. In the Boot disk section, click Change to begin configuring your boot disk.
  3. 在「Public images」分頁中,從「Operating system」清單中選擇「Ubuntu」
  4. 從「Version」清單中選擇「Ubuntu 24.04 LTS」
  5. 按一下 [Select] (選取)
  6. 在「防火牆」專區中,選取 「允許 HTTP 流量」
  7. 如要建立 VM,請按一下「建立」

啟動 VM 執行個體需要一些時間。當 VM 執行個體準備就緒時,就會列在「VM 執行個體」頁面中,並顯示綠色的狀態圖示。

Compute Engine 會將 roles/compute.instanceAdmin 角色授予建立 VM 執行個體的使用者。Compute Engine 也會將該使用者加入 sudo 群組。

連線至 VM 執行個體

使用 Trusted Cloud 主控台完成下列步驟,即可連線至 VM 執行個體。您以用來存取 VM 執行個體頁面的使用者身分連線至 VM 執行個體。

  1. In the Trusted Cloud 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.

清除所用資源

如要避免系統向您的 Trusted Cloud 帳戶收取您在本頁所用資源的費用,請按照下列步驟操作。

  1. 前往 Trusted Cloud 控制台的「VM instances」(VM 執行個體) 頁面

    前往 VM 執行個體

  2. 選取您在本教學課程中建立的 VM 執行個體所在的資料列。

  3. 依序按一下 「刪除」和「刪除」 確認操作。

後續步驟