Add commom support to create VM template

Signed-off-by: Ramon Medeiros <ramonn@linux.vnet.ibm.com>