# Create a stretched private cloud with VMware Engine

This quickstart explains how to set up Google Cloud VMware Engine and create a
[stretched private cloud](https://docs.cloud.google.com/vmware-engine/docs/concepts-stretched-private-cloud.md.txt).

## Before you begin

To perform the steps in this quickstart, you need access to Google Cloud VMware Engine,
available VMware Engine node quota, and an appropriate IAM role.

Prepare the following requirements before you proceed:

1. [Request API access and node quota](https://docs.cloud.google.com/vmware-engine/docs/quickstart-prerequisites.md.txt).

2. Verify that you're familiar with the address ranges you want to use for
   VMware management appliances and the HCX deployment network. For details,
   see [Networking requirements](https://docs.cloud.google.com/vmware-engine/docs/quickstart-networking-requirements.md.txt).

3. Have the `VMware Engine Service Admin` IAM role.

> [!NOTE]
> **Note:** The **Owner** and **Editor** basic roles include the **VMware Engine
> Service Admin** role. The **Viewer** basic role includes the **VMware Engine Service Viewer** role. For more information, see [VMware Engine IAM roles and permissions](https://docs.cloud.google.com/vmware-engine/docs/iam.md.txt).

Lastly, the steps in this document assume that you first do the following:

- Allocate a unique IP address range for vSphere or vSAN subnets of the private cloud you want to create.
  - **Minimum CIDR range prefix:** */24*
  - **Maximum CIDR range prefix:** */20*
- If you want [global address resolution using Cloud DNS](https://docs.cloud.google.com/vmware-engine/docs/networking/howto-dns-on-premises.md.txt#global-address-resolution-cloud-dns), then [enable the Cloud DNS API](https://docs.cloud.google.com/dns/docs/set-up-dns-records-domain-name.md.txt#before-you-begin) and complete Cloud DNS setup before you create your private cloud.

The vSphere or vSAN subnet address space must not overlap with any network that
will communicate with the private cloud, such as on-premises networks and
Google Cloud Virtual Private Cloud (VPC) networks. For more information about
vSphere or vSAN subnets, see [VLANs and subnets on VMware Engine](https://docs.cloud.google.com/vmware-engine/docs/concepts-vlans-subnets.md.txt).

## Create a stretched private cloud

1. In the Google Cloud console, go to the **Private clouds** page.

   [Go to Private clouds](https://console.cloud.google.com/vmwareengine/privateclouds)
2. Click **Select a project** and then select the organization, folder, or project where
   you want to create the stretched private cloud.

3. Click **Create**.

4. Click **Stretched private cloud**.

5. Enter your primary hosting location and select your secondary zone.

6. Select the node type for your primary cluster.

7. Select the number of nodes per zone for the stretched private cloud.
   Create your stretched private cloud with a minimum of 3 nodes per zone.

8. Optional: Click the **Customize Cores** toggle if you want to reduce the
   number of available cores for each node in the management cluster.
   For details, see [Custom core counts](https://docs.cloud.google.com/vmware-engine/docs/concepts-private-cloud.md.txt#custom-core-count).

9. Enter a CIDR range for the VMware management network. Make sure that the
   CIDR range doesn't overlap with any of your on-premises or cloud subnets.

10. Select **Create new network** to create a new VMware Engine network or select
    from an existing network, if applicable.

11. Click **Create** to begin creating the private cloud.

As VMware Engine creates your new stretched private cloud, it deploys
a number of [VMware components](https://docs.cloud.google.com/vmware-engine/docs/concepts-vmware-components.md.txt) and divides the
provided IP address range into subnets. Stretched private cloud creation can
take 30 minutes to 2 hours. After the provisioning is complete, you receive an
email.

> [!NOTE]
> **Note:** If the stretched cluster creation fails and you see the message `error Stretched private cloud creation is not allowed in projects without the
> gcp.requiresPhysicalZoneSeparation organizational policy constraint`, reach out to your account or support team before creating the stretched cluster for a new organization.

## Connect to your private cloud

To connect to your standard or stretched private cloud vCenter server, establish
a secure connection from your network to the private cloud. You can use any of
the following options to create a secure connection:

- [Connect an on-premises network to VMware Engine private cloud](https://docs.cloud.google.com/vmware-engine/docs/networking/howto-connect-to-onpremises.md.txt)
- [Connect using a point-to-site VPN connection](https://docs.cloud.google.com/vmware-engine/docs/concepts-vpn-gateways.md.txt)

## What's next

- [Get management appliance sign-in credentials](https://docs.cloud.google.com/vmware-engine/docs/vmware-platform/howto-access-vsphere-client) for your private cloud.
- [Configure internet access for workload VMs](https://docs.cloud.google.com/vmware-engine/docs/networking/workload-internet-access.md.txt) for your private cloud.