# Creating Instance

## About this task

Create an Instance with the Datastore.

## Procedure

1. Navigate to Provisioning > Instances.
2. In the Instances tab, Click + ADD.
3. In the ADD INSTANCE wizard, provide the following details: 

   - In the Type section, select HPE HVM.
   - Click Next.

     ![Create Instance Type](https://support.hpe.com/hpesc/public/api/document/sd00008058en_us/GUID-55F890E0-47C6-4621-9A97-C399B1AD1BB0-high.png)
   - In the Group tab, provide the following details:

     GROUP:
     :   Select the group for the instance.

     CLOUD:
     :   Select the cloud for the instance.

     NAME:
     :   Enter the name for the instance in VM Essentials.

     ENVIRONMENT:
     :   Select the environment for the instance.
   - Click Next.

     ![Create instance group](https://support.hpe.com/hpesc/public/api/document/sd00008058en_us/GUID-239DD723-6D18-4F5B-BBE7-5FD379D73259-high.png)
   - In the Configure tab, provide the following details:

     LAYOUT:
     :   Select the Layout for the Instance.

     PLAN:
     :   Select the Plan for the Instance.

     RESOURCE POOL:
     :   Select the Resource Pool (Cluster) for the Instance.

     VOLUMES:
     :   Add one or more Volumes to the Instance. Select the datastore created in the previous section.

     Storage Type
     :   Select the replication type from the Storage Type drop-down list.

         If you select the `Standard Volume - HPE Alletra LUN` option, the system provisions VMs on a standard Logical Unit Number (LUN).

         If you select the `Active Peer Persistence - HPE Alletra LUN` option (without replication), remote copy groups are created, and VMs are replicated across both primary and secondary storage systems.

         For VMs created with the `Active Peer Persistence - HPE Alletra LUN` storage type, Host Proximity is set to `All`, allowing access from both the primary and secondary sites. VMs created with this storage type are automatically added to an Active-Active Peer Persistence (AAPP) replication group.

         NOTE

         VMs and storage volumes are not created if you select a mix of replicated and non-replicated volumes.

     NETWORK:
     :   Add Networks to the Instance.

     IMAGE:
     :   Select the Image for the Instance.

     HOST:
     :   Select the cluster host for the Instance.

     Other configurations may be added as needed.

     ![Create instance configure](https://support.hpe.com/hpesc/public/api/document/sd00008058en_us/GUID-BF9AC32C-033B-4E9B-9735-F774EB3242B7-high.png)
   - Click Next.
   - Add Automation Tasks, if needed
   - Click Next.
   - Review the Instance configuration.
   - Click Complete.![Create instance review](https://support.hpe.com/hpesc/public/api/document/sd00008058en_us/GUID-393E4FC9-4F37-4003-A8E2-60A10564540F-high.png)

## Results

The Instance is now provisioned to the new datastore and is viewable within the Instances (Provisioning > Instances) section.

CAUTION

- Pre-existing host records may prevent successful host creation and provisioning.
- VM Essentials does not automatically rename hosts created externally.
- Host names must match on both primary and secondary systems for Active Active Peer Persistence to work.

To view the details of volumes or disks for an AAPP Instance provisioning:

1. Navigate to Provisioning > Instances.
2. In the Instances tab, click the replicated VM to see its details.
3. Click the Storage > Volumes tab. ![Volume tab](https://support.hpe.com/hpesc/public/api/document/sd00008058en_us/GUID-0E66529D-3C71-48BF-B797-D866B4A703B4-high.png)
4. Click Volume Name to see the details, such as Remote Copy Status, Volume Type, Remote Copy Group Status, and Host Sets. ![Volume info](https://support.hpe.com/hpesc/public/api/document/sd00008058en_us/GUID-26758EF4-F812-4D61-99CF-1BA4721B9EDC-high.png)

   The following volume details screen is displayed for an Instance with `Standard Volume - HPE Alletra LUN` storage type: ![Volume details - standard volume](https://support.hpe.com/hpesc/public/api/document/sd00008058en_us/GUID-4AF2DEA6-B2D8-46F8-B654-E1A46304439C-high.png)

The volume details can also be accessed by navigating to Infrastructure > Storage > Volumes and clicking a volume name.
