Avoid naming conflicts by naming vm corresponding to template