Create and start a VM instance
bookmark_border
View Release Notes
This document explains how to create a virtual machine (VM) instance by using a boot disk
image, a boot disk snapshot, or a container image. Some images support Shielded
VM features, which offer security features such as UEFI-compliant firmware, Secure Boot,
and vTPM-protected Measured Boot. On Shielded VMs, vTPM and integrity monitoring are
enabled by default.
While creating your VM, you can create one or more disks for it. You can also add more
disks to the VM after it's created. Compute Engine automatically starts the VM instance after
you create it.
While creating a VM, you can also add multiple network interfaces. To mitigate your VM's
exposure to threats on the internet, you can omit the external IP address when you add a
network interface to the instance. In such cases, the VM is accessible only from other VMs in
the same VPC network or a linked network unless you configure Cloud NAT.
If you are creating a VM for the first time, see Quickstart using a Linux VM or Quickstart
using a Windows Server VM.
For more specific or complicated VM creation, see the following resources:
Create a VM that uses a user-managed service account
Creating Windows Server instances
Creating SQL Server instances
Creating instances on sole-tenant nodes
Creating a VM instance with a custom hostname
Reserving instances and consuming reserved instances
Creating VM instances that use the gVNIC network interface
Creating and starting an Arm VM instance
Configuring a VM instance with higher bandwidth
Creating a VM instance with attached GPUs
Creating a VM instance with a high-performance computing (HPC) image
Using the bulk instance API
Creating a VM instance with an attached instance schedule
Creating a managed instance group (MIG)
If you are bringing an existing license, see Bringing your own licenses.
Before you begin
If you want to use the command-line examples in this guide, do the following:
1. Install or update to the latest version of the Google Cloud CLI.
2. Set a default region and zone.
If you want to use the API examples in this guide, set up API access.
When creating VMs from images or disks by using the Google Cloud CLI or the
Compute Engine API, there's a limit of 20 VM instances per second. If you need to
create a higher number of VMs per second, request a higher quota limit for
the Images resource.