Here are some openvz container build scripts... both for deb and rpm based systems