feature #1664: Add template handling to VM resources