In vSphere, activating data services that I/O filters provide is a two-step process. You create a virtual machine policy based on data services that the I/O filters provide, and then attach this policy to a virtual machine.
Prerequisites
For the cache I/O filters, configure the virtual flash resource on your ESXi host before activating the filter. See Set Up Virtual Flash Resource.
For information about cache I/O filters, see Using Cache I/O Filters with Flash Storage Devices on ESXi Hosts.
Procedure
Assign the I/O Filter Policy to Virtual Machines
To activate data services that I/O filters provide, associate the I/O filter policy with virtual disks. You can assign the policy when you create or edit a virtual machine.
You can assign the I/O filter policy during an initial deployment of a virtual machine. This topic describes how to assign the policy when you create a new virtual machine. For information about other deployment methods, see the vSphere Virtual Machine Administration documentation.
Prerequisites
Verify that the I/O filter is installed on the ESXi host where the virtual machine runs.
Procedure
Results
What to do next
You can later change the virtual policy assignment. See Change Storage Policy Assignment for Virtual Machine Files and Disks.
Migrating Virtual Machines with I/O Filters
When you migrate a virtual machine with I/O filters, specific considerations apply.
If you use Storage vMotion to migrate a virtual machine with I/O filters, a destination datastore must be connected to hosts with compatible I/O filters installed.
- Common Rules for the I/O filters
- Rule Set 1 for the VMFS datastore. Because Storage Policy Based Management does not offer an explicit VMFS policy, the rule set must include tag-based rules for the VMFS datastore.
- Rule Set 2 for the Virtual Volumes datastore
When Storage vMotion migrates the virtual machine, the correct rule set that corresponds to the target datastore is selected. The I/O filter rules remain unchanged.
If you do not specify rules for datastores and define only Common Rules for the I/O filters, the system applies default storage policies for the datastores.