Stay organized with collections Save and categorize content based on your preferences.
gcloud compute reservations create
RESERVATION
(--vm-count
=VM_COUNT
(--source-instance-template
=SOURCE_INSTANCE_TEMPLATE
| [--machine-type
=MACHINE_TYPE
: --accelerator
=[count
=COUNT
],[type
=TYPE
] --local-ssd
=[count
=COUNT
],[interface
=INTERFACE
],[size
=SIZE
] --min-cpu-platform
=MIN_CPU_PLATFORM
]) : --require-specific-reservation
--resource-policies
=[KEY
=VALUE
,…]) [--description
=DESCRIPTION
] [--reservation-sharing-policy
=RESERVATION_SHARING_POLICY
] [--zone
=ZONE
] [--share-setting
=SHARE_SETTING
--share-with
=SHARE_WITH
,[SHARE_WITH
,…]] [GCLOUD_WIDE_FLAG …
]
gcloud compute reservations create my-reservation --vm-count=1 --source-instance-template=example-instance-template --zone=fake-zone
To create a Compute Engine reservation by directly specifying VM properties, run:
gcloud compute reservations create my-reservation --vm-count=1 --machine-type=custom-8-10240 --min-cpu-platform="Intel Haswell" --accelerator=count=2,type=nvidia-tesla-v100 --local-ssd=size=375,interface=scsi --zone=fake-zone
RESERVATION
This must be specified.
--vm-count
=VM_COUNT
This flag argument must be specified if any of the other arguments in this group are specified.
--require-specific-reservation
--reservation-affinity=specific
can consume from this reservation.
--resource-policies
=[KEY
=VALUE
,…]
Exactly one of these must be specified:
--source-instance-template
=SOURCE_INSTANCE_TEMPLATE
--machine-type
=MACHINE_TYPE
custom-number_of_CPUs-amount_of_memory
-for example, custom-32-29440
.
This flag argument must be specified if any of the other arguments in this group are specified.
--accelerator
=[count
=COUNT
],[type
=TYPE
]
count
type
nvidia-tesla-k80
for nVidia Tesla K80) of accelerator to attach to instances in the reservation. Use gcloud compute accelerator-types list
to learn about all available accelerator types.
--local-ssd
=[count
=COUNT
],[interface
=INTERFACE
],[size
=SIZE
]
interface
scsi
and nvme
. SCSI is the default and is supported by more guest operating systems. NVME may provide higher performance.
size
count
--min-cpu-platform
=MIN_CPU_PLATFORM
--description
=DESCRIPTION
--reservation-sharing-policy
=RESERVATION_SHARING_POLICY
RESERVATION_SHARING_POLICY
must be one of:
ALLOW_ALL
DISALLOW_ALL
--zone
=ZONE
compute/zone
property isn't set, you might be prompted to select a zone (interactive mode only).
To avoid prompting when this flag is omitted, you can set the
property:compute/zone
gcloud config set compute/zone ZONE
A list of zones can be fetched by running:
gcloud compute zones list
To unset the property, run:
gcloud config unset compute/zone
Alternatively, the zone can be stored in the environment variable
.CLOUDSDK_COMPUTE_ZONE
SHARE_SETTING
must be one of:
local
projects
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud alpha compute reservations create
gcloud beta compute reservations create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4