I’m building this off of here but looks like a few things need changing.

Upgrade ubuntu

sudo apt-get update && sudo apt-get upgrade

Install Required Packages

sudo apt-get install linux-image-extra-virtual

Download OpenVZ Kernel

wget "https://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab145.3/linux-headers-2.6.32-openvz-042stab145.3-amd64_1_amd64.deb"
wget "https://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab145.3/linux-image-2.6.32-openvz-042stab145.3-amd64_1_amd64.deb"
wget "https://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab145.3/linux-image-openvz-amd64_042stab145.3_amd64.deb"

$ shasum -a 256 *.deb
2695be2ec6d160fee4fef2b1c9b3c840f22306132c01321657eb90e049ae853f  linux-headers-2.6.32-openvz-042stab145.3-amd64_1_amd64.deb
1e37294f119e9f37a7fb5eac70b568672175d1b1b6de98c24e64fb8b8718330f  linux-image-2.6.32-openvz-042stab145.3-amd64_1_amd64.deb
e79059c123c77078a59f7201ea45674b0b15689d839aa52d411707f6c8842370  linux-image-openvz-amd64_042stab145.3_amd64.deb

Reboot and try it out

sudo vzctl --version