create vm with affinity and vnet options