adding updates to allow vm creation with affinity_groups