added template and env for vm with policy

Change-Id: Iafbf1746d0e2534c3b1f27ed4c553e612557899e