kvm: converted templates to jinja2