[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eCompute Engine allows users to create and run instances on Google infrastructure, which can be bare metal or virtual machines (VMs) depending on the specified machine type.\u003c/p\u003e\n"],["\u003cp\u003eDuring instance creation, users can configure various parameters such as machine configuration, operating system and storage, networking, observability, security, and advanced settings.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple ways to create instances, including specifying a custom configuration, using workload-optimized settings, utilizing instance templates, or creating copies from machine images.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication is necessary to access Google Cloud services and APIs, which can be set up via the Google Cloud console, gcloud CLI, or REST API, depending on the user's preferred method.\u003c/p\u003e\n"],["\u003cp\u003eAfter creating an instance in compute engine, the service will automatically start it, and the user can further explore tutorials for creating basic Linux or Windows Server VM instances.\u003c/p\u003e\n"]]],[],null,["# Overview of creating Compute Engine instances\n\n*** ** * ** ***\n\nCompute Engine lets you create and run\n[instances](/compute/docs/instances) on Google infrastructure. This document\nprovides an overview of the various configuration parameters that are available\nto you during a Compute Engine instance creation. If you are creating\nan instance for the first time, then this document provides a starting point\nfor understanding the process.\n\nThe terms *Compute Engine instance* , *compute instance* or\n*instance* are synonymous. Based on the\n[machine type](/compute/docs/machine-resource)\nthat you specify, an instance can be either a bare metal instance\nor a virtual machine (VM) instance, as follows:\n\n- If the name of its machine type ends in `-metal`, an instance is a [bare metal instance](/compute/docs/machine-resource#bare-metal-types), which does not have a hypervisor installed.\n- Otherwise, an instance is a VM instance. The terms *virtual machine instance* , *VM instance* , and *VM* are synonymous.\n\nSynonymous terms are used interchangeably\nacross the documentation and Google Cloud interfaces such as the\n[Google Cloud console](https://console.cloud.google.com/), the\n[gcloud](/compute/docs/gcloud-compute) command-line tool,\nand the [REST API](/compute/docs/reference/latest).\n\n\u003cbr /\u003e\n\nBefore you begin\n----------------\n\n- Review the basics about [Compute Engine instances](/compute/docs/instances).\n- If you haven't already, set up [authentication](/compute/docs/authentication). Authentication verifies your identity for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:\n\n Select the tab for how you plan to use the samples on this page: \n\n ### Console\n\n\n When you use the Google Cloud console to access Google Cloud services and\n APIs, you don't need to set up authentication.\n\n ### gcloud\n\n 1.\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n After installation,\n [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command:\n\n ```bash\n gcloud init\n ```\n\n\n If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n | **Note:** If you installed the gcloud CLI previously, make sure you have the latest version by running `gcloud components update`.\n 2. [Set a default region and zone](/compute/docs/gcloud-compute#set_default_zone_and_region_in_your_local_client).\n\n ### REST\n\n\n To use the REST API samples on this page in a local development environment, you use the\n credentials you provide to the gcloud CLI.\n 1. [Install](/sdk/docs/install) the Google Cloud CLI. After installation, [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command: \n\n ```bash\n gcloud init\n ```\n 2. If you're using an external identity provider (IdP), you must first [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n\n For more information, see\n [Authenticate for using REST](/docs/authentication/rest)\n in the Google Cloud authentication documentation.\n\nWays to create and configure instances\n--------------------------------------\n\nYou can create instances in multiple ways, each with its own method of\nconfiguration, as follows:\n\n- **[Create your instance by manually specifying a custom\n configuration](/compute/docs/instances/create-start-instance#custom-vm-configuration-documents).**\n Choose this option if you're creating an instance from the scratch and are\n facing any of the following scenarios:\n\n - You know the specific configuration that is required for your workload.\n - You want to create an instance with a complicated configuration.\n - You want to create an instance by using the Google Cloud CLI or REST.\n\n If you choose this method, then also review the list of all\n [configuration options available during instance creation](#new-instance-configuration-options).\n- **[Create a workload-optimized instance](/compute/docs/instances/create-workload-optimized-instance).**\n In this method, you select your workload type while creating your instance\n and Google automatically populates a preset configuration that suits your\n workload. Choose this option if you're starting out with\n Compute Engine and don't know which configuration best suits your\n intended workload. This option is available only in the Google Cloud console.\n\n- **[Create your instance by using an instance template](/compute/docs/instances/create-vm-from-instance-template).**\n An instance template is a resource that defines configuration settings for\n instances. Choose this option if you have a defined configuration template\n and want to create a lot of VMs with the same configuration.\n\n- **[Create your instance by making copies of a machine image](/compute/docs/machine-images/create-instance-from-machine-image).**\n A machine image contains most of the information and data needed for cloning\n an instance. Choose this option if you want to make multiple copies of an\n existing source instance.\n\nAfter you create your compute instance, Compute Engine automatically\nstarts the instance.\n\nConfiguration options available during instance creation\n--------------------------------------------------------\n\nWhen you create a Compute Engine instance, you specify the configuration that\nyou want for your instance. Compute Engine uses this configuration to create\nyour instance. The following table lists the various parameters that you\nconfigure during Compute Engine instance creation: \nMachine configuration Operating system (OS) and storage Data protection Networking Observability Security Advanced configuration \nClear all \n\nWhat's next\n-----------\n\n- Learn how to [create and start a Compute Engine instance](/compute/docs/instances/create-start-instance).\n- If you're creating an instance for the first time, then try one of the\n following tutorials for a basic configuration:\n\n - [Create a Linux VM instance in Compute Engine](/compute/docs/create-linux-vm-instance)\n - [Create a Windows Server VM instance in Compute Engine](/compute/docs/create-windows-server-vm-instance)\n- Learn about [what happens to an instance after creation](/compute/docs/instances/instance-life-cycle)."]]