Deploy nodes and configure appliance networking by using the console

This page describes how to use the Google Cloud console to deploy bare-metal ESXi nodes and configure Google Cloud networking constructs in preparation for deploying VMware Cloud Foundation (VCF) in VMware solution on Google Cloud.

Completing the steps on this page prepares your Google Cloud infrastructure for VCF bring-up, but doesn't deploy VCF or the VCF management appliances themselves:

  • What this workflow does: provisions bare-metal ESXi compute instances, configures primary and dynamic network interfaces (NICs), sets up VPC subnets and zonal network endpoint groups (NEGs), and pre-configures Google Cloud load-balancing constructs and IP address reservations for your future VCF management appliances and NSX datapath.
  • What this workflow doesn't do: it doesn't reset the initial ESXi root password, initialize ESXi host networking (vSwitch0 and vSAN), deploy the VCF Installer, or deploy VCF management appliances (such as vCenter Server, SDDC Manager, or NSX Manager). To reset the initial ESXi root password, initialize your hosts, and deploy VCF after completing these steps, you must run the VMware solution toolkit and complete bring-up in the VCF Installer, as described in Prepare nodes and deploy VCF by using the toolkit.

Before you begin

Before you start, review the requirements in Prerequisites and verify the following items:

  1. Add your project to the Layer 2 subnet networking allowlist for VMware solution on the Support page in the Google Cloud console. Allowlist access lets your Virtual Private Cloud (VPC) subnets support VLAN-based Address Resolution Protocol (ARP) broadcasting and custom MAC learning. In the Google Cloud console, VMware Engine > Self-managed displays a warning banner and disables deployment actions until Support adds your project to this allowlist. For instructions, see Request access to the Layer 2 networking allowlist.
  2. Verify that your project has sufficient bare-metal node quota in your target region and zone. See Quotas and limits. Make sure that your account has the required Identity and Access Management (IAM) roles, including the Compute Admin role (roles/compute.admin). If you use Cloud DNS, then make sure that your account also has the DNS Administrator role (roles/dns.admin). For details, see Verify quotas and permissions.
  3. Before you deploy nodes, set the maximum transmission unit (MTU) of your host VPC network to 8896 bytes. Plan subnet IPv4 ranges for management, vSAN, vMotion, and NSX Tunnel Endpoint (TEP) traffic. Also plan a standard subnet without Layer 2 ARP broadcasting for your jumpbox VM instance, DNS inbound forwarding, and offline depot endpoints. You can select existing subnets or create subnets while deploying nodes in VMware solution. See Plan VPC networking.
  4. Plan your node hostnames and DNS records before deployment:
    • Provide a unique, valid fully qualified domain name (FQDN) of 64 characters or fewer for each bare-metal ESXi instance in the required Hostname field.
    • If you assign Ephemeral (Custom) or reserved static IPv4 addresses, then set up your DNS forward and reverse lookup zones first. Create the A and PTR records before you deploy the bare-metal nodes so that ESXi generates matching TLS certificates on initial boot. If you select Ephemeral (Automatic) IPv4 addresses, then configure DNS records right after provisioning. See Plan DNS and mandatory node hostnames.
  5. Make sure that the root and local user passwords for the VCF Installer and SDDC Manager, and the ESXi root password, meet Broadcom password complexity rules. See Verify Broadcom password requirements.
  6. If your organization enforces the constraints/compute.trustedImageProjects constraint or places your target project in a VPC Service Controls service perimeter, then allow Compute Engine access to the smve-prod-public-images project, which has project number 999037279871. See Configure organization policies and VPC Service Controls.

Verify regional quota

Before you provision bare-metal nodes or create a cluster, verify that your project has sufficient regional and global Compute Engine quota. Add the resources of all existing clusters in the region to the following incremental values before you compare them against your project quota:

Quota metric Resources required per bare-metal node Resources required for a 3-node cluster
compute.googleapis.com/cpus_per_vm_family for Z3 192 vCPUs 3 × 192 = 576 vCPUs
compute.googleapis.com/local_ssd_total_storage_per_vm_family for Z3 72 TB 3 × 72 TB = 216 TB
compute.googleapis.com/hyperdisk_balanced_total_storage 128 GB 3 × 128 GB = 384 GB
compute.googleapis.com/resource_policies 0 when adding nodes to an existing cluster 1 spread placement policy per cluster
compute.googleapis.com/regional_backend_services_protocol_forwarding_fast_ha 0 when adding nodes or clusters without new appliances 1 per new VCF management appliance VIP or NSX Edge endpoint

For the complete list of required quotas and instructions on how to view or request quota increases, see Quotas and limits.

Deploy bare-metal nodes and configure node networking

To provision bare-metal ESXi nodes and configure their network interfaces, do the following:

  1. In the Google Cloud console, go to VMware Engine > Self-managed > Overview.

    Go to Overview

  2. Click Start Deployment to launch the infrastructure provisioning and configuration workflow.

  3. In the Node Configuration section, select the Region and Zone where you want to deploy your nodes.

  4. Select a Placement policy, or click Create new placement policy:

    • If you create a placement policy, enter a name and select the number of availability domains (up to 8).
  5. Select the VCF version that you plan to deploy on the nodes.

  6. Select the Machine type and specify the number of nodes to create. A high availability (HA) VCF deployment requires a minimum of four nodes.

  7. In the Quickname Wizard section, enter the Resource name prefix and Domain name suffix:

    • Resource name prefix: the prefix that VMware solution prepends to all generated resource names.
    • Domain name suffix: the DNS domain suffix that VMware solution uses to generate the fully qualified domain name (FQDN) for each node.
  8. Review or update the Node name, Hostname, and Availability domain fields for each node. In the required Hostname field, verify that each node has a unique, valid FQDN of 64 characters or fewer. In the Availability domain field, distribute nodes evenly across the availability domains in your placement policy to match vSAN fault domains. For details, see Placement policies and availability domains.

  9. To prevent accidental node deletion, select Enable delete protection. This option is enabled by default.

  10. Optionally, click Manage labels to add metadata labels to your nodes.

  11. Click Continue to proceed to node network configuration.

  12. In the Networking section, select the VPC Network for your nodes.

  13. In the Network Interface section, configure the primary interface:

    • Select an existing Subnet or click Create subnet to define a new subnet with a name, description, and IPv4 range.
    • Select an existing Network Endpoint Group or click Create network endpoint group to create a new group. The workflow automatically adds all provisioned nodes to this group.
  14. Under Internal IPv4 address configuration, keep Automatic, or select Custom and click View configuration to choose a per-node address option. Options include Ephemeral (Automatic), Ephemeral (Custom) in the Custom ephemeral IP address field, an existing reserved static IPv4 address, or Reserve static internal IPv4 address. If you assign Ephemeral (Custom) or reserved static IPv4 addresses, then create your DNS zones and A and PTR records before you click Deploy. For instructions, see Configure Cloud DNS zones and records.

  15. Configure dynamic network interfaces for VMware traffic:

    • Dynamic NIC (vSAN): select or create the subnet for vSAN clustering traffic. Optionally, assign a network endpoint group.
    • Dynamic NIC (vMotion): select or create the subnet for live VM instance migration traffic. Optionally, assign a network endpoint group.
    • Dynamic NIC (NSX Tunnel Endpoint): select or create the subnet and network endpoint group for NSX TEP overlay traffic.
  16. Optional: Add additional dynamic NICs if your architecture requires dedicated interfaces for custom workload traffic.

  17. Click Continue to proceed to appliance networking setup.

Configure appliance networking

To pre-configure Google Cloud load-balancing resources and IP reservations for the VCF management appliances and NSX datapath that you will deploy during VCF bring-up, do the following:

  1. On the Configure Appliance Networking page, select the VCF Deployment Model. For high availability deployments, select High Availability Deployment (requires 4 or more nodes).
  2. In the Management Appliances and NSX Datapath tables, review the preconfigured Google Cloud networking resource names and endpoints.
  3. To customize names or internal IP assignments, click Edit for the corresponding table:
    • Select Ephemeral (Automatic), Ephemeral (Custom), or Reserved for each appliance endpoint.
    • If you use reserved addresses, provide the reserved IP address or specify static reservation details.
  4. Click Continue to review the configuration summary.
  5. Verify the configuration details and click Deploy to provision your bare-metal nodes and configure your appliance networking resources.

Configure Cloud DNS zones and records

When you deploy bare-metal instances and configure appliance networking by using the Google Cloud console, you must configure forward and reverse DNS lookup zones and A and PTR records:

  • If you assign Ephemeral (Custom) or reserved static IPv4 addresses, then bootstrap your DNS zones and create the A and PTR records before you provision nodes. Creating these records beforehand lets ESXi resolve its FQDN and generate matching TLS certificates on initial boot.
  • If you assign Ephemeral (Automatic) IPv4 addresses, then run initial DNS setup right after you provision the bare-metal instances. Complete this step before you run the toolkit or VCF validation.

You can automate Cloud DNS and Network Time Protocol (NTP) DNS setup by running the standalone scripts/cloud_dns/vcf_cloud_dns_sync.py script in the VMware solution toolkit repository. The script performs the following operations:

  • Enables the Cloud DNS API (dns.googleapis.com).
  • Makes sure that a Cloud DNS server policy with default settings is attached to your VPC network.
  • Makes sure that private forward and reverse lookup zones exist and are bound to your VPC network.
  • Synchronizes forward (A) and reverse (PTR) DNS records for Z3 bare-metal nodes and management-subnet internal load balancer frontends, stripping the -fr suffix and skipping IP-only NSX TEP and uplink subnet load balancers.
  • Manages the NTP DNS record (ntp.DOMAIN_NAME) in your private forward lookup zone, such as pointing to the Compute Engine metadata server at 169.254.169.254.

To obtain the script, clone the toolkit repository and go to the scripts/cloud_dns directory:

git clone https://github.com/GoogleCloudPlatform/self-managed-vmware-solution-toolkit
cd self-managed-vmware-solution-toolkit/scripts/cloud_dns

Preview changes in dry-run mode

To preview all Cloud DNS API, policy, zone, node and internal load balancer record, and NTP operations without applying any changes, run the script with the --dry-run flag:

python3 vcf_cloud_dns_sync.py \
    --project-id PROJECT_ID \
    --vpc-network VPC_NETWORK_NAME \
    --domain DOMAIN_NAME \
    --sync-all \
    --set-ntp-ip 169.254.169.254 \
    --dry-run

Run initial DNS setup

Run the following command after you provision your VPC network, subnets, Z3 bare-metal instances, NEGs, and internal load balancer forwarding rules in the Google Cloud console, and before you run VCF Installer validation. This command enables the Cloud DNS API, creates the VPC DNS policy, creates private forward and /16 or /8 reverse zones from non-NSX subnets, registers all node and management frontend A and PTR records while skipping NSX subnet load balancers, and configures ntp.DOMAIN_NAME to point to the Compute Engine metadata server at 169.254.169.254:

python3 vcf_cloud_dns_sync.py \
    --project-id PROJECT_ID \
    --vpc-network VPC_NETWORK_NAME \
    --domain DOMAIN_NAME \
    --sync-all \
    --set-ntp-ip 169.254.169.254

Synchronize records for day-2 scale-out

After you add new Z3 bare-metal hosts or workload domain internal load balancer forwarding rules in the Google Cloud console, re-run the script with the --sync-all flag to register only the newly added records. The script automatically skips existing unchanged records:

python3 vcf_cloud_dns_sync.py \
    --project-id PROJECT_ID \
    --vpc-network VPC_NETWORK_NAME \
    --domain DOMAIN_NAME \
    --sync-all

Bootstrap DNS zones and VPC policy before provisioning compute resources

If you assign Ephemeral (Custom) or reserved static IPv4 addresses, then set up your DNS zones before you provision bare-metal instances or load balancer frontends. To enable the Cloud DNS API, create the VPC DNS policy, and create forward and reverse lookup zones, run the script with the --setup-zones flag:

python3 vcf_cloud_dns_sync.py \
    --project-id PROJECT_ID \
    --vpc-network VPC_NETWORK_NAME \
    --domain DOMAIN_NAME \
    --reverse-zones REVERSE_ZONE_NAME=REVERSE_SUBNET_CIDR \
    --setup-zones

After the script creates the zones, create the A and PTR records for your planned node FQDNs and IPv4 addresses before you deploy the instances.

Use custom resource names or pre-created administrator resources

To override default resource names or skip creating the VPC DNS policy or managed zones when an administrator has pre-provisioned them, use one of the following options:

  • Specify custom zone and policy names, including multiple --reverse-zones entries if needed:

    python3 vcf_cloud_dns_sync.py \
        --project-id PROJECT_ID \
        --vpc-network VPC_NETWORK_NAME \
        --domain DOMAIN_NAME \
        --dns-policy CUSTOM_DNS_POLICY_NAME \
        --forward-zone CUSTOM_FORWARD_ZONE_NAME \
        --reverse-zones REVERSE_ZONE_1=CIDR_1 REVERSE_ZONE_2=CIDR_2 \
        --sync-all
    
  • Skip creating the VPC DNS policy when the policy already exists:

    python3 vcf_cloud_dns_sync.py \
        --project-id PROJECT_ID \
        --vpc-network VPC_NETWORK_NAME \
        --domain DOMAIN_NAME \
        --no-create-dns-policy \
        --sync-all
    
  • Skip creating forward and reverse zones when an administrator has pre-created the zones, in which case you must pass --reverse-zones:

    python3 vcf_cloud_dns_sync.py \
        --project-id PROJECT_ID \
        --vpc-network VPC_NETWORK_NAME \
        --domain DOMAIN_NAME \
        --reverse-zones REVERSE_ZONE_1=CIDR_1 REVERSE_ZONE_2=CIDR_2 \
        --no-create-zones \
        --sync-all
    

Replace the following:

  • PROJECT_ID: the ID of your Google Cloud project
  • VPC_NETWORK_NAME: the name of your VPC network
  • DOMAIN_NAME: the DNS domain suffix for your VCF environment, such as vcf.example.com
  • REVERSE_ZONE_NAME=REVERSE_SUBNET_CIDR: the managed zone name and CIDR block for a reverse lookup zone, such as smve-rev-10-10=10.10.0.0/16
  • CUSTOM_DNS_POLICY_NAME: a custom name for the Cloud DNS server policy
  • CUSTOM_FORWARD_ZONE_NAME: a custom name for the private forward managed zone
  • REVERSE_ZONE_1=CIDR_1 and REVERSE_ZONE_2=CIDR_2: one or more reverse managed zone name and CIDR pairs, such as my-rev-zone-1=10.10.1.0/24 my-rev-zone-2=10.10.2.0/24

What's next

After your bare-metal nodes, Google Cloud networking resources, and DNS records are configured, complete the following steps to prepare your hosts and deploy VCF:

  1. If you use an external DNS server instead of configuring Cloud DNS by using vcf_cloud_dns_sync.py, then update your DNS server with forward (A) and reverse (PTR) records for:
    • All ESXi node hostnames and internal IP addresses.
    • All VCF management appliance hostnames and internal IP addresses.
  2. Run the prepare nodes toolkit to reset the initial ESXi root password on each host, initialize ESXi hosts, and deploy the VCF Installer. For step-by-step instructions, see Prepare nodes and deploy VCF by using the toolkit.
  3. Access the VMware Cloud Foundation (VCF) installer to complete deployment and bring up your management domain. For instructions on completing VCF bring-up, see Deploy a new VCF fleet or a new VCF instance in the Broadcom documentation.