This document explains how to create a large number of high performance computing (HPC) virtual machine (VM) instances in bulk that are identical and independent from each other. The instances use H4D machine types and run on reserved blocks of capacity.
For more information about creating VMs in bulk, see About bulk creation of VMs. To create instances in bulk that don't use reservations for enhanced cluster management capabilities, see instead Create VMs in bulk.
To learn about other ways to create large clusters of tightly-coupled H4D VMs, see the Overview of HPC cluster creation page.
Choose a consumption option: to create compute instances in bulk and enable enhanced cluster management capabilities, you can choose a Future Reservation in Calendar mode or Spot VMs.
If you choose to use Spot VMs, the VMs might not be compactly collocated. Also, Spot VMs can be preempted as needed and they are not eligible for managing host maintenance events for groups of VMs.
Obtain capacity: the process to obtain capacity differs for each consumption option.
To learn more, see Choose a consumption option and obtain capacity.
Select the tab for how you plan to use the samples on this page:
When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
Install the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command:
gcloud initIf you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.
Install the Google Cloud CLI.
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
For more information, see Authenticate for using REST in the Google Cloud authentication documentation.
To get the permissions that you need to create VMs in bulk, ask your administrator to grant you the following IAM roles on the project:
roles/compute.instanceAdmin.v1)roles/compute.networkAdmin)For more information about granting roles, see Manage access to projects, folders, and organizations.
These predefined roles contain the permissions required to create VMs in bulk. To see the exact permissions that are required, expand the Required permissions section:
The following permissions are required to create VMs in bulk:
compute.instances.create
on the projectcompute.images.useReadOnly
on the image
compute.snapshots.useReadOnly
on the snapshot
compute.instanceTemplates.useReadOnly
on the instance template
compute.subnetworks.use
on the project or on the chosen subnet
compute.addresses.use
on the project
compute.subnetworks.useExternalIp
on the project or on the chosen subnet
compute.networks.use
on the project
compute.networks.useExternalIp
on the project
compute.instances.setMetadata
on the project
compute.instances.setTags
on the VM
compute.instances.setLabels
on the VM
compute.instances.setServiceAccount
on the VM
compute.disks.create
on the project
compute.disks.use
on the disk
compute.disks.useReadOnly
on the disk
You might also be able to get these permissions with custom roles or other predefined roles.
Creating HPC instances in bulk with the H4D machine type includes the following steps:
When you create a compute instance, you can specify a VPC network and subnet. If you omit this configuration, the default network and subnet are used.
To use Cloud RDMA with H4D instances, you must have at least two networks configured, one for each type of network interface (NIC):
GVNIC: uses the gve driver for TCP/IP and Internet traffic
for normal VM-VM and VM-Internet communication.IRDMA: uses IDPF/iRDMA drivers for Cloud RDMA networking
between instances.Instances that use Cloud RDMA can have only one IRDMA interface. You can
add up to eight additional GVNIC network interfaces for a total of 10 vNICs
per instance.
To set up the Falcon VPC networks to use with your instances, you can either follow the documented instructions or use the provided script.
To create the networks, you can use the following instructions:
To create the host networks for the GVNIC network interfaces,
see Create and manage
VPC networks.
If you are configuring only one GVNIC network interface, you
can use the default VPC network and the auto subnet that's
in the same region as the instance.
To create a network for the IRDMA network interface, see
Create a VPC
network with a Falcon VPC network profile.
Use the default value for the maximum transmission
unit (MTU) for a Falcon VPC network, which is 8896.
You can create up to nine gVNIC network interfaces and one IRDMA network interface per instance. Each network interface must attach to a separate network. To create the networks, you can use the following script, which creates two networks for gVNIC and one network for IRDMA.
gcloud compute network-profiles list
Copy the following code and run it in a Linux shell window.
#!/bin/bash
# Set the number of GVNIC interfaces to create. You can create up to 9.
NUM_GVNIC=NUMBER_OF_GVNIC
# Create regular VPC networks and subnets for the GVNIC interfaces
for N in $(seq 0 $(($NUM_GVNIC - 1))); do
gcloud compute networks create GVNIC_NAME_PREFIX-net-$N \
--subnet-mode=custom
gcloud compute networks subnets create GVNIC_NAME_PREFIX-sub-$N \
--network=GVNIC_NAME_PREFIX-net-$N \
--region=REGION \
--range=10.$N.0.0/16
gcloud compute firewall-rules create GVNIC_NAME_PREFIX-internal-$N \
--network=GVNIC_NAME_PREFIX-net-$N \
--action=ALLOW \
--rules=tcp:0-65535,udp:0-65535,icmp \
--source-ranges=10.0.0.0/8
done
# Create SSH firewall rules
gcloud compute firewall-rules create GVNIC_NAME_PREFIX-ssh \
--network=GVNIC_NAME_PREFIX-net-0 \
--action=ALLOW \
--rules=tcp:22 \
--source-ranges=IP_RANGE
# Optional: Create a firewall rule for the external IP address for the
# first GVNIC network interface
gcloud compute firewall-rules create GVNIC_NAME_PREFIX-allow-ping-net-0 \
--network=GVNIC_NAME_PREFIX-net-0 \
--action=ALLOW \
--rules=icmp \
--source-ranges=IP_RANGE
# Create a Falcon VPC network for the Cloud RDMA network interface
gcloud compute networks create RDMA_NAME_PREFIX-irdma \
--network-profile=ZONE-vpc-falcon \
--subnet-mode custom
# Create a subnet in the Falcon VPC network
gcloud compute networks subnets create RDMA_NAME_PREFIX-irdma-sub \
--network=RDMA_NAME_PREFIX-irdma \
--region=REGION \
--range=10.2.0.0/16 # offset to avoid overlap with GVNIC subnet ranges
Replace the following:
NUMBER_OF_GVNIC: the number of GVNIC interfaces to create.
Specify a number from 1 to 9.GVNIC_NAME_PREFIX: the name prefix to use for the
regular VPC network and subnet that uses a GVNIC NIC type.REGION: the region where you want to create the
networks. This must correspond to the zone specified for the
--network-profile flag, when creating the Falcon VPC network.
For example, if you specify the zone as europe-west4-b, then your region is
europe-west4.IP_RANGE: the range of IP addresses outside of the
VPC network to use for the
SSH firewall rules.
As a best practice, specify the specific IP address ranges that you
need to allow access from, rather than all IPv4 or IPv6 sources.
Don't use 0.0.0.0/0 or ::/0 as a source range because this allows
traffic from all IPv4 or IPv6 sources, including sources outside of
Google Cloud.RDMA_NAME_PREFIX: the name prefix to use for the
VPC network and subnet that uses the IRDMA NIC type.ZONE: the zone
where you want to create the networks and compute instances. Use either
us-central1-a or europe-west4-b.Optional: To verify that the VPC network resources are created successfully, check the network settings in the Google Cloud console:
You can specify VM placement by creating a compact placement policy. When you apply a compact
placement policy to your VMs, Compute Engine makes best-effort attempts to create VMs that
are as close to each other as possible. If your application is latency-sensitive and requires
maximum compactness, then specify the maxDistance field
(Preview) when you create a
compact placement policy. A lower maxDistance value ensures closer VM placement, but
it also increases the chance that some VMs won't be created.
To create a compact placement policy, use the
gcloud beta compute resource-policies create group-placement command:
gcloud beta compute resource-policies create group-placement POLICY_NAME \
--collocation=collocated \
--max-distance=MAX_DISTANCE \
--region=REGION
Replace the following:
POLICY_NAME: the name of the compact placement policy.MAX_DISTANCE: the maximum distance configuration for your VMs. The
value must be 3 to place VMs in the adjacent blocks, or 2 to place VMs
in the same block. For information about the maximum number of VMs supported for each
maxDistance per machine series, see
About compact placement policies
in the Compute Engine documentation.REGION: the region where you want to create the compact placement policy.
Specify a region in which the machine type that you want to use is available. For information
about regions, see
Available regions and zones.
To create a compact placement policy, make a POST request to the
beta
resourcePolicies.insert method.
In the request body, include the
collocation field set to COLLOCATED, and the maxDistance
field.
POST https://compute.googleapis.com/compute/beta/projects/PROJECT_ID/regions/REGION/resourcePolicies
{
"name": "POLICY_NAME",
"groupPlacementPolicy": {
"collocation": "COLLOCATED",
"maxDistance": MAX_DISTANCE
}
}
Replace the following:
PROJECT_ID: your project ID.POLICY_NAME: the name of the compact placement policy.MAX_DISTANCE: the maximum distance configuration for your VMs. The
value must be 3 to place VMs in the adjacent blocks, or 2 to place VMs
in the same block. For information about the maximum number of VMs supported for each
maxDistance per machine series, see
About compact placement policies
in the Compute Engine documentation.REGION: the region where you want to create the compact placement policy.
Specify a region in which the machine type that you want to use is available. For information
about regions, see
Available regions and zones.
The instructions in this section describe how to create H4D VMs in bulk.
Review the following limitations before creating H4D instances with Cloud RDMA:
You can use only IPv4 addresses with IRDMA network interfaces and Falcon VPC networks.
To create VMs in bulk, use the
gcloud compute instances create command.
The parameters that you need to specify depend on the consumption option that you are using for this deployment. Select the tab that corresponds to your consumption option's provisioning model.
Start with the following
gcloud compute instances create command.
gcloud compute instances bulk create \
--name-pattern=NAME_PATTERN \
--count=COUNT \
--machine-type=MACHINE_TYPE \
--image-family=IMAGE_FAMILY \
--image=project= IMAGE_PROJECT \
--instance-termination=action=DELETE \
--maintenance-policy=TERMINATE \
--region=REGION \
--boot-disk-type=hyperdisk-balanced \
--boot-disk-size=DISK_SIZE
Complete the following steps:
Replace the following:
NAME_PATTERN: the name pattern for the
instances. For example, using vm-# for the name
pattern generates instances with names such as vm-1
and vm-2, up to the number specified by the
--count flag.COUNT: the number of instances to
create.MACHINE_TYPE: the machine type to use
for the instances. Use one of the
H4D machine types,
for example h4d-highmem-192-lssd.rocky-linux-9-optimized-gcp.
For a list of supported OS images, see Supported operating system. Choose an OS image version that supports the IRDMA interface.
IMAGE_PROJECT: the project ID for the
OS image, for example, rocky-linux-cloud.REGION: specify a region in which the
machine type that you want to use is available, for example
europe-west4. For information about available
regions, see
Available regions and zones.
DISK_SIZE: Optional: the size of the
boot disk in GiB. The value must be a whole number.Optional: If you chose to use a compact placement policy, include
the --resource-policies flag:
--resource-policies=POLICY_NAME
Replace POLICY_NAME with the name of the compact placement policy.
To specify the reservation, do one of the following:
If you are using a placement policy or if VMs can be placed anywhere in your reservation block, then add the following flags to the command:
--provisioning-model=RESERVATION_BOUND \
--reservation-affinity=specific \
--reservation=RESERVATION_NAME \
Replace RESERVATION_NAME with the name of the
reservation, for example,
h4d-highmem-exfr-prod.
If you aren't using a compact placement policy and you want the instances placed in a specific block, then add the following flags to the command:
--provisioning-model=RESERVATION_BOUND \
--reservation-affinity=specific \
--reservation=<RESERVATION_BLOCK_NAME \
Replace RESERVATION_BLOCK_NAME with the name of
a block in the reservation, for example,
h4d-highmem-exfr-prod/reservationBlocks/h4d-highmem-exfr-prod-block-1.
To view the reservation name or the available reservation blocks, see View capacity.
Optional: To configure the instances to use Cloud RDMA, add the flags similar to the following to the command. This example configures two GVNIC network interfaces and one IRDMA network interface:
--network-interface=nic-type=GVNIC, \
network=GVNIC_NAME_PREFIX-net-0, \
subnet=GVNIC_NAME_PREFIX-sub-0, \
stack-type=STACK_TYPE, \
address=EXTERNAL_IPV4_ADDRESS \
--network-interface=nic-type=GVNIC, \
network=GVNIC_NAME_PREFIX-net-1, \
subnet=GVNIC_NAME_PREFIX-sub-1, no-address \
--network-interface=nic-type=IRDMA, \
network=RDMA_NAME_PREFIX-irdma, \
subnet=RDMA_NAME_PREFIX-irdma-sub, \
stack-type=IPV4_ONLY, no-address \
Replace the following:
GVNIC_NAME_PREFIX: the name prefix
you used when creating the VPC network and
subnet for the GVNIC interface.
For the first GVNIC network interface, you can omit the
network and subnet flags to use the
default network instead.
STACK_TYPE: Optional: the stack type
for the GVNIC network interface. STACK_TYPE must be
one of IPV4_ONLY, or IPV4_IPV6.
The default value is IPV4_ONLY.
EXTERNAL_IPV4_ADDRESS: Optional: a
static external IPv4 address to use with the network interface.
You must have previously
reserved an external IPv4 address.
Do one of the following:
no-address instead if you don't
want the network interface to have an external IP address.address='' if you want the interface to
receive an ephemeral external IP address.To specify an external IPv6 address, use the flag
--external-ipv6-address instead.
RDMA_NAME_PREFIX: the name prefix that
you used when creating the VPC network and
subnet for the IRDMA interface.Start with the following
gcloud compute instances create command.
gcloud compute instances bulk create \
--name-pattern=NAME_PATTERN \
--count=COUNT \
--machine-type=MACHINE_TYPE \
--image-family=IMAGE_FAMILY \
--image=project= IMAGE_PROJECT \
--region=REGION \
--boot-disk-type=hyperdisk-balanced \
--boot-disk-size=DISK_SIZE \
--provisioning-model=SPOT \
--instance-termination=action=TERMINATION_ACTION
Complete the following steps:
Replace the following:
NAME_PATTERN: the name pattern for the
instances. For example, using vm-# for the name
pattern generates instances with names such as vm-1
and vm-2, up to the number specified by the
--count flag.COUNT: the number of instances to
create.MACHINE_TYPE: the machine type to use
for the instances. Use one of the
H4D machine types,
for example h4d-highmem-192-lssd.rocky-linux-9-optimized-gcp.
For a list of supported OS images, see Supported operating system. Choose an OS image version that supports the IRDMA interface.
IMAGE_PROJECT: the project ID for the
OS image, for example, rocky-linux-cloud.REGION: specify a region in which the
machine type that you want to use is available, for example
europe-west4. For information about available
regions, see
Available regions and zones.
DISK_SIZE: Optional: the size of the
boot disk in GiB. The value must be a whole number.TERMINATION_ACTION: the action to
take when Compute Engine preempts the instance, either
STOP (default) or DELETE.
Optional: If you chose to use a compact placement policy, then add the following flag to the command:
--resource-policies=POLICY_NAME \
Replace POLICY_NAME with the name of
the compact placement policy.
Optional: To configure the instances to use Cloud RDMA, add the flags similar to the following to the command. This example configures two GVNIC network interfaces and one IRDMA network interface:
--network-interface=nic-type=GVNIC, \
network=GVNIC_NAME_PREFIX-net-0, \
subnet=GVNIC_NAME_PREFIX-sub-0, \
stack-type=STACK_TYPE, \
address=EXTERNAL_IPV4_ADDRESS \
--network-interface=nic-type=GVNIC, \
network=GVNIC_NAME_PREFIX-net-1, \
subnet=GVNIC_NAME_PREFIX-sub-1, no-address \
--network-interface=nic-type=IRDMA, \
network=RDMA_NAME_PREFIX-irdma, \
subnet=RDMA_NAME_PREFIX-irdma-sub, \
stack-type=IPV4_ONLY, no-address \
Replace the following:
GVNIC_NAME_PREFIX: the name prefix
you used when creating the VPC network and
subnet for the GVNIC interface.
For the first GVNIC network interface, you can omit the
network and subnet flags to use the
default network instead.
STACK_TYPE: Optional: the stack type
for the GVNIC network interface. STACK_TYPE must be
one of IPV4_ONLY, or IPV4_IPV6.
The default value is IPV4_ONLY.
EXTERNAL_IPV4_ADDRESS: Optional: a
static external IPv4 address to use with the network interface.
You must have previously
reserved an external IPv4 address.
Do one of the following:
no-address instead if you don't
want the network interface to have an external IP address.address='' if you want the interface to
receive an ephemeral external IP address.To specify an external IPv6 address, use the flag
--external-ipv6-address instead.
RDMA_NAME_PREFIX: the name prefix that
you used when creating the VPC network and
subnet for the IRDMA interface.To create VM instances in bulk, make a POST request to the
instances.bulkInsert method
The parameters that you need to specify depend on the consumption option that you are using for this deployment. Select the tab that corresponds to your consumption option's provisioning model.
Start with the following POST request to the
instances.bulkInsert method.
POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instances/bulkInsert
{
"namePattern":"NAME_PATTERN",
"count":"COUNT",
"instanceProperties":{
"machineType":"MACHINE_TYPE",
"disks":[
{
"boot":true,
"initializeParams":{
"diskSizeGb":"DISK_SIZE",
"diskType":"hyperdisk-balanced",
"sourceImage":"projects/IMAGE_PROJECT/global/images/family/IMAGE_FAMILY"
},
"mode":"READ_WRITE",
"type":"PERSISTENT"
}
],
"scheduling":{
"provisioningModel":"RESERVATION_BOUND",
"instanceTerminationAction":"DELETE",
"onHostMaintenance": "TERMINATE",
"automaticRestart":true
}
}
}
Complete the following steps:
Replace the following:
PROJECT_ID: the project ID of the
project where you want to create the instances.ZONE: specify a zone in which the
machine type that you want to use is available. If you are using
a compact placement policy, then use a zone in the same region
as the compact placement policy. For information about the
regions where H4D machine types are available, see
Available regions and zones.
NAME_PATTERN: the name pattern for the
instances. For example, using vm-# for the name
pattern generates instances with names such as vm-1
and vm-2, up to the number specified by the
count field.COUNT: the number of instances to
create.MACHINE_TYPE: the machine type to use
for the instances. Use one of the
H4D machine types,
for example h4d-highmem-192-lssd.DISK_SIZE: the size of the boot disk in
GiB.IMAGE_PROJECT: the project ID for the OS
image, for example, debian-cloud.IMAGE_FAMILY: the image family of the OS
image that you want to use, for example
rocky-linux-9-optimized-gcp. For a list of supported
OS images, see
Supported operating system.
Choose an OS image version that supports the IRDMA interface.
Optional: If you chose to use a compact placement policy,
include the resourcePolicies parameter in the
request body as part of the "instanceProperties"
parameter.
"resourcePolicies": [
"projects/PROJECT_ID/regions/REGION/resourcePolicies/POLICY_NAME"
],
Replace POLICY_NAME with the name of the compact placement policy.
To specify the reservation, do one of the following:
If you are using a placement policy or if VMs can be placed
anywhere in your reservation block, then add the
following to the request body as part of the
"instanceProperties" parameter:
"reservationAffinity":{
"consumeReservationType":"SPECIFIC_RESERVATION",
"key":"compute.googleapis.com/reservation-name",
"values":[
"RESERVATION_NAME"
],
},
Replace RESERVATION_NAME with the name of the
reservation, for example,
h4d-highmem-exfr-prod.
If you aren't using a compact placement policy or you want
the instances placed in a specific block, then add the
following to the request body as part of the
"instanceProperties" parameter:
"reservationAffinity":{
"consumeReservationType":"SPECIFIC_RESERVATION",
"key":"compute.googleapis.com/reservation-name",
"values":[
"RESERVATION_BLOCK_NAME"
],
},
Replace RESERVATION_BLOCK_NAME with the name of
a block in the reservation, for example,
h4d-highmem-exfr-prod/reservationBlocks/h4d-highmem-exfr-prod-block-1.
To view the reservation name or the available reservation blocks, see View capacity.
If you want to configure the instances to use
Cloud RDMA, then include a parameter block similar to
the following to the request body as part of the
"instanceProperties" parameter. This example
configures two GVNIC network interfaces and one IRDMA network
interface:
"networkInterfaces": [
{
"network": "GVNIC_NAME_PREFIX-net-0",
"subnetwork": "GVNIC_NAME_PREFIX-sub-0",
"accessConfigs": [
{
"type": "ONE_TO_ONE_NAT",
"name": "External IP",
"natIP": "EXTERNAL_IPV4_ADDRESS"
}
],
"stackType": "IPV4_ONLY",
"nicType": "GVNIC",
},
{
"network": "GVNIC_NAME_PREFIX-net-1",
"subnetwork": "GVNIC_NAME_PREFIX-sub-1",
"stackType": "IPV4_ONLY",
"nicType": "GVNIC",
},
{
"network": "RDMA_NAME_PREFIX-irdma",
"subnetwork": "RDMA_NAME_PREFIX-irdma-sub",
"stackType": "IPV4_ONLY",
"nicType": "IRDMA",
}
],
Replace the following:
GVNIC_NAME_PREFIX: the name prefix
that you used when creating the VPC network and
subnet for the GVNIC interface.
For the GVNIC network interface, you can omit the
network and subnetwork fields to use
the default network instead.
EXTERNAL_IPV4_ADDRESS: Optional: a
static external IPv4 address to use with the network interface.
You must have previously
reserved an external IPv4 address.
RDMA_NAME_PREFIX: the name prefix you
used when creating the VPC network and subnet
for the IRDMA interface.Start with the following POST request to the
instances.bulkInsert method.
POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instances/bulkInsert
{
"namePattern":"NAME_PATTERN",
"count":"COUNT",
"instanceProperties":{
"machineType":"MACHINE_TYPE",
"disks":[
{
"boot":true,
"initializeParams":{
"diskSizeGb":"DISK_SIZE",
"diskType":"hyperdisk-balanced",
"sourceImage":"projects/IMAGE_PROJECT/global/images/family/IMAGE_FAMILY"
},
"mode":"READ_WRITE",
"type":"PERSISTENT"
}
],
"scheduling":{
"provisioningModel":"SPOT",
"instanceTerminationAction":"TERMINATION_ACTION"
}
}
}
Complete the following steps:
Replace the following:
PROJECT_ID: the project ID of the
project where you want to create the instances.ZONE: specify a zone in which the
machine type that you want to use is available. If you are using
a compact placement policy, then use a zone in the same region
as the compact placement policy. For information about the
regions where H4D machine types are available, see
Available regions and zones.
NAME_PATTERN: the name pattern for the
instances. For example, using vm-# for the name
pattern generates instances with names such as vm-1
and vm-2, up to the number specified by the
count field.COUNT: the number of instances to
create.MACHINE_TYPE: the machine type to use
for the instances. Use one of the
H4D machine types,
for example h4d-highmem-192-lssd.DISK_SIZE: the size of the boot disk in
GiB.IMAGE_PROJECT: the project ID for the OS
image, for example, debian-cloud.IMAGE_FAMILY: the image family of the OS
image that you want to use, for example
rocky-linux-9-optimized-gcp. For a list of supported
OS images, see
Supported operating system.
Choose an OS image version that supports the IRDMA interface.
TERMINATION_ACTION: the action to take
when Compute Engine preempts the instance, either
STOP (default) or DELETE.
Optional: If you chose to use a compact placement policy,
include the resourcePolicies parameter as part of
the "instanceProperties" parameter.
"resourcePolicies": [
"projects/PROJECT_ID/regions/REGION/resourcePolicies/POLICY_NAME"
]
If you want to configure the instances to use
Cloud RDMA, then include a parameter block similar to
the following to the request body as part of the
"instanceProperties" parameter. This example
configures two GVNIC network interfaces and one IRDMA network
interface:
"networkInterfaces": [
{
"network": "GVNIC_NAME_PREFIX-net-0",
"subnetwork": "GVNIC_NAME_PREFIX-sub-0",
"accessConfigs": [
{
"type": "ONE_TO_ONE_NAT",
"name": "External IP",
"natIP": "EXTERNAL_IPV4_ADDRESS"
}
],
"stackType": "IPV4_ONLY",
"nicType": "GVNIC",
},
{
"network": "GVNIC_NAME_PREFIX-net-1",
"subnetwork": "GVNIC_NAME_PREFIX-sub-1",
"stackType": "IPV4_ONLY",
"nicType": "GVNIC",
},
{
"network": "RDMA_NAME_PREFIX-irdma",
"subnetwork": "RDMA_NAME_PREFIX-irdma-sub",
"stackType": "IPV4_ONLY",
"nicType": "IRDMA",
}
],
Replace the following:
GVNIC_NAME_PREFIX: the name prefix
that you used when creating the VPC network and
subnet for the GVNIC interface.
For the GVNIC network interface, you can omit the
network and subnetwork fields to use
the default network instead.
EXTERNAL_IPV4_ADDRESS: Optional: a
static external IPv4 address to use with the network interface.
You must have previously
reserved an external IPv4 address.
RDMA_NAME_PREFIX: the name prefix you
used when creating the VPC network and subnet
for the IRDMA interface.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 2026-06-09 UTC.