To guarantee that the virtual datastore fulfills specific storage requirements when allocating a virtual machine, associate the Virtual Volumes storage policy with the virtual machine.
You can assign the Virtual Volumes storage policy during an initial deployment of a virtual machine, or when performing other virtual machine operations, such as cloning or migrating. This topic describes how to assign the Virtual Volumes storage policy when you create a new virtual machine. For information about other VM provisioning methods, see the vSphere Virtual Machine Administration documentation.
You can apply the same storage policy to the virtual machine configuration file and all its virtual disks. If storage requirements for your virtual disks and the configuration file are different, you can associate different storage policies with the VM configuration file and the selected virtual disks.
- In the vSphere Web Client, start the virtual machine provisioning process and follow appropriate steps.
- Assign the same storage policy to all virtual machine files and disks.
- On the Select Storage page, select the storage policy compatible with Virtual Volumes, for example VVols Silver, from the VM Storage Policy drop-down menu.
- Select the virtual datastore from the list of available datastores and click Next.
The datastore becomes the destination storage resource for the virtual machine configuration file and all virtual disks.
- Change the storage policy for the virtual disk.
Use this option if requirements for storage placement are different for virtual disks.
- On the Customize Hardware page, expand the New hard disk pane.
- From the VM storage policy drop-down menu, select the appropriate storage policy, for example VVols Gold, that you want to assign to the virtual disk.
- Complete the virtual machine provisioning process.
After you create the virtual machine, the Summary tab displays the assigned storage policies and their compliance status.
What to do next
If storage placement requirements for the configuration file or the virtual disks change, you can later modify the virtual policy assignment. See Change Storage Policy Assignment for Virtual Machine Files and Disks.