It is very easy. Let <veid> is upgraded VE, which you want use as a template.
1) clean network setting and other VE-specific information
2) stop VE
3) tar.gz VEs private area and place the archive in /vz/templates/cache/
4) now you can create VEs based on your template.