add support for convert vm into template