rpearce: Ensure the vm is defined first (so we can find it).
   * Optimisation - Create a config first then use it.