added template and env for vm with policy

Change-Id: I0cb3a178efe677442784956092a1aa8ef86ec759