determine the virt_type based on the grains['virtual'] value