To create and manage storage policies for your virtual machines in vSphere, you use the VM Storage Policies interface.
Create a VM Storage Policy for VMFS Datastore
Create a custom storage policy compatible with VMFS datastores. In the storage policy, you can specify disk or volume provisioning options.
Prerequisites
- Be familiar with provisioning policies. See About Virtual Disk Provisioning Policies.
- Required privileges: and .
Procedure
Create a VM Storage Policy for Host-Based Data Services
To define the VM storage policy in the vSphere Client, use the Create VM Storage Policy wizard. In this task, you create rules for data services offered by ESXi hosts. The VM storage policy that includes these rules activates specified data services for the virtual machine.
Available data services include encryption, I/O control, caching, and so on. Certain data services, such as encryption, are provided by VMware. Others can be offered by third-party I/O filters that you install on your host.
The data services are usually generic for all types of storage and do not depend on a datastore. Adding datastore-specific rules to the storage policy is optional.
If you add datastore-specific rules, and both the I/O filters on the host and storage offer the same type of service, for example, encryption, your policy can request this service from both providers. As a result, the virtual machine data is encrypted twice, by the I/O filter and your storage. However, replication provided by Virtual Volumes and replication provided by the I/O filter cannot coexist in the same storage policy.
Prerequisites
- For information about encrypting your virtual machines, see the vSphere Security documentation.
- For information about I/O filters, see Filtering Virtual Machine I/O in vSphere.
- For information about storage policy components, see About vSphere Storage Policy Components.
- Required privileges: and .
Procedure
Results
The new VM storage policy for host-based data services appears on the list.
Create a VM Storage Policy for Virtual Volumes
To define the VM storage policy in the vSphere Client, use the Create VM Storage Policy wizard. In this task, you create a custom storage policy compatible with Virtual Volumes. When you define the VM storage policy for Virtual Volumes, you create rules to configure storage and data services provided by the Virtual Volumes datastore. The rules are applied when the VM is placed on the Virtual Volumes datastore. The custom storage policy can replace the default No Requirements storage policy for Virtual Volumes that VMware provides.
The procedure assumes that you are creating the VM storage policy for Virtual Volumes. For information about the vSAN storage policy, see the Administering VMware vSAN documentation.
Prerequisites
- Verify that the Virtual Volumes storage provider is available and active. See Register Storage Providers for Virtual Volumes.
- Make sure that the VM Storage Policies interface is populated with information about storage entities and data services that are available in your storage environment. See Populating the VM Storage Policies Interface in vSphere.
- Define appropriate storage policy components. See Create Storage Policy Components.
- Required privileges: and .
Procedure
Results
The new VM storage policy compatible with Virtual Volumes appears on the list.
What to do next
You can now associate this policy with a virtual machine, or designate the policy as default.
Create a VM Storage Policy for Tag-Based Placement
Tag-based rules reference the tags that you assign to the datastores and can filter the datastores to be used for placement of the VMs. To define tag-based placement in the vSphere Client, use the Create VM Storage Policy wizard.
Prerequisites
- Make sure that the VM Storage Policies interface is populated with information about storage entities and data services that are available in your storage environment. See Populating the VM Storage Policies Interface in vSphere.
- Required privileges: and .
Procedure
Results
The new VM storage policy compatible with tagged datastores appears on the list.
Edit or Clone a VM Storage Policy
If storage requirements for virtual machines and virtual disks change, you can modify the existing storage policy. You can also create a copy of the existing VM storage policy by cloning it. While cloning, you can optionally select to customize the original storage policy.
Prerequisites
Procedure
- In the vSphere Client, navigate to the storage policy.
- Click .
- Under Policies and Profiles, click VM Storage Policies.
- Select the storage policy, and click one of the following icons:
- Edit
- Clone
- (Optional) Modify the policy and click OK.
- If editing the storage policy that is used by a virtual machine, reapply the policy to the virtual machine.
Option Description Manually later If you select this option, the compliance status for all virtual disks and virtual machine home objects associated with the storage policy changes to Out of Date. To update configuration and compliance, manually reapply the storage policy to all associated entities. See Reapply Virtual Machine Storage Policy. Now Update virtual machine and compliance status immediately after editing the storage policy.