If your storage requirements for the applications on the virtual machine change, you can edit the storage policy that was originally applied to the virtual machine.

You can edit the storage policy for a powered-off or powered-on virtual machine.

When changing the VM storage policy assignment, you can apply the same storage policy to the virtual machine configuration file and all its virtual disks. You can also associate different storage policies with the VM configuration file and the virtual disks. You might apply different policies when, for example, storage requirements for your virtual disks and the configuration file are different.

Procedure

  1. Browse to the virtual machine.
    Option Actions
    In the vSphere Web Client
    1. From the vSphere Web Client Home, click Policies and Profiles > VM Storage Policies.
    2. On the VM Storage Policies tab, click the storage policy you want to change.
    3. Click the VMs tab and click Virtual Machines.

      You can see the list of virtual machines that use this storage policy.

    4. Click the virtual machine whose policy you want to modify.
    In the vSphere Client
    1. Click Menu > Policies and Profiles.
    2. Under Policies and Profiles, click VM Storage Policies.
    3. Click the storage policy you want to change, and click VM Compliance.

      You can see the list of virtual machines that use this storage policy.

    4. Click the virtual machine whose policy you want to modify.
  2. Click the Configure tab and click Policies.
  3. Click Edit VM Storage Policies.
  4. Specify the VM storage policy for your virtual machine.
    Option Actions
    Apply the same storage policy to all virtual machine objects (in the vSphere Web Client)
    1. Select the policy from the VM storage policy drop-down menu.
    2. Click Apply to all.
    Apply different storage policies to the VM home object and virtual disks (in the vSphere Web Client)
    1. Select the object, for example, VM home.
    2. In the VM Storage Policy column, select the policy from the drop-down menu.
    Apply the same storage policy to all virtual machine objects (in the vSphere Client) Select the policy from the VM storage policy drop-down menu.
    Apply different storage policies to the VM home object and virtual disks (in the vSphere Client)
    1. Turn on the Configure per disk option.
    2. Select the object, for example, VM home.
    3. In the VM Storage Policy column, select the policy from the drop-down menu.
  5. If you use Virtual Volumes policy with replication, configure the replication group.
    Replication groups indicate which VMs and virtual disks must be replicated together to a target site.

    You can select a common replication group for all objects or select different replication groups for each storage object.

  6. Click OK to save the VM storage policy changes.

Results

The storage policy is assigned to the virtual machine and its disks.