Applying rules to a list of VMs