Installing OpenVZ on Ubuntu

Using 7.10 Gutsy Gibbons

I primarily use OpenVZ on top of CentOS for my machines; however, recently I setup a 4U at home to backup all my data to. Not caring to take the few hours that downloading my CentOS installation media would take, I opted to install Ubuntu since I had a 7.10 disk handy. Wanting to move my VE's to this new machine, I did the following. Most of it is directly from the OpenVZ WIKI about how to install on Debian, but I like having direct-notes in case I want to do this again:

Please! Please! Let me know if I have done anything incorrectly here so I do not lead others down the wrong path! Feel free to copy/paste/redistribute this anywhere, just if you change it, please credit the changes so that your modifications don't land people angry at me!
root@glutton:~# echo "deb http://download.openvz.org/debian etch main" >> /etc/apt/sources.list

root@glutton:~# apt-cache search linux-image-2.6.18-openvz
	linux-image-2.6.18-openvz-12-1etch1-486 - Linux kernel binary image for version 2.6.18-openvz-12-1etch1-486
	linux-image-2.6.18-openvz-12-1-486 - Linux kernel binary image for version 2.6.18-openvz-12-1-486
	linux-image-2.6.18-openvz-12-1-686 - Linux kernel binary image for version 2.6.18-openvz-12-1-686
	linux-image-2.6.18-openvz-12-1-k7 - Linux kernel binary image for version 2.6.18-openvz-12-1-k7
	linux-image-2.6.18-openvz-13-39.1d2-486 - Linux kernel binary image for version 2.6.18-openvz-13-39.1d2-486
	linux-image-2.6.18-openvz-12-1etch1-686 - Linux kernel binary image for version 2.6.18-openvz-12-1etch1-686
	linux-image-2.6.18-openvz-12-1etch1-k7 - Linux kernel binary image for version 2.6.18-openvz-12-1etch1-k7
	linux-image-2.6.18-openvz-13-1etch4-486 - Linux kernel binary image for version 2.6.18-openvz-13-1etch4-486
	linux-image-2.6.18-openvz-13-1etch4-686 - Linux kernel binary image for version 2.6.18-openvz-13-1etch4-686
	linux-image-2.6.18-openvz-13-1etch4-k7 - Linux kernel binary image for version 2.6.18-openvz-13-1etch4-k7
	linux-image-2.6.18-openvz-486 - Linux kernel binary image for version 2.6.18-openvz-486
	linux-image-2.6.18-openvz-686 - Linux kernel binary image for version 2.6.18-openvz-686
	linux-image-2.6.18-openvz-k7 - Linux kernel binary image for version 2.6.18-openvz-k7
	linux-image-2.6.18-openvz-13-39.1d2-686 - Linux kernel binary image for version 2.6.18-openvz-13-39.1d2-686
	linux-image-2.6.18-openvz-13-39.1d2-k7 - Linux kernel binary image for version 2.6.18-openvz-13-39.1d2-k7

root@glutton:~# apt-get install linux-image-2.6.18-openvz-13-1etch4-686
	Reading package lists... Done
	Building dependency tree       
	Reading state information... Done
	Suggested packages:
	  linux-doc-2.6.18-openvz-13-1etch4-686 linux-source-2.6.18-openvz-13-1etch4-686
	The following NEW packages will be installed:
	  linux-image-2.6.18-openvz-13-1etch4-686
	0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
	Need to get 16.4MB of archives.
	After unpacking 47.2MB of additional disk space will be used.
	WARNING: The following packages cannot be authenticated!
	  linux-image-2.6.18-openvz-13-1etch4-686
	Install these packages without verification [y/N]? y
	Get:1 http://download.openvz.org etch/main linux-image-2.6.18-openvz-13-1etch4-686 028.18.1etch4 [16.4MB]
	Fetched 16.4MB in 6m6s (44.7kB/s)                                                                                                                                     
	Preconfiguring packages ...
	Selecting previously deselected package linux-image-2.6.18-openvz-13-1etch4-686.
	(Reading database ... 90322 files and directories currently installed.)
	Unpacking linux-image-2.6.18-openvz-13-1etch4-686 (from .../linux-image-2.6.18-openvz-13-1etch4-686_028.18.1etch4_i386.deb) ...
	Done.
	Setting up linux-image-2.6.18-openvz-13-1etch4-686 (028.18.1etch4) ...
	
	 Hmm. There is a symbolic link /lib/modules/2.6.18-openvz-13-1etch4-686/build
	 However, I can not read it: No such file or directory
	 Therefore, I am deleting /lib/modules/2.6.18-openvz-13-1etch4-686/build
	
	
	 Hmm. The package shipped with a symbolic link /lib/modules/2.6.18-openvz-13-1etch4-686/source
	 However, I can not read the target: No such file or directory
	 Therefore, I am deleting /lib/modules/2.6.18-openvz-13-1etch4-686/source
	
	Running depmod.
	Finding valid ramdisk creators.
	Using mkinitramfs-kpkg to build the ramdisk.
	find: /lib/firmware/2.6.18-openvz-13-1etch4-686: No such file or directory
	find: /lib/firmware/2.6.18-openvz-13-1etch4-686: No such file or directory
	find: /lib/firmware/2.6.18-openvz-13-1etch4-686: No such file or directory
	find: /lib/firmware/2.6.18-openvz-13-1etch4-686: No such file or directory
	find: /lib/firmware/2.6.18-openvz-13-1etch4-686: No such file or directory
	find: /lib/firmware/2.6.18-openvz-13-1etch4-686: No such file or directory
	Running postinst hook script /sbin/update-grub.
	Searching for GRUB installation directory ... found: /boot/grub
	Searching for default file ... found: /boot/grub/default
	Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
	Searching for splash image ... none found, skipping ...
	Found kernel: /boot/vmlinuz-2.6.22-14-generic
	Found kernel: /boot/vmlinuz-2.6.18-openvz-13-1etch4-686
	Found kernel: /boot/memtest86+.bin
	Updating /boot/grub/menu.lst ... done

root@glutton:~# apt-get install vzctl vzquota
	Reading package lists... Done
	Building dependency tree       
	Reading state information... Done
	Suggested packages:
	  kernel-patch-openvz
	The following NEW packages will be installed:
	  vzctl vzquota
	0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded.
	Need to get 257kB of archives.
	After unpacking 1225kB of additional disk space will be used.
	Get:1 http://us.archive.ubuntu.com gutsy/universe vzquota 3.0.9-2 [70.6kB]
	Get:2 http://us.archive.ubuntu.com gutsy/universe vzctl 3.0.16-4 [186kB]                                                                                              
	Fetched 257kB in 31s (8085B/s)                                                                                                                                        
	Selecting previously deselected package vzquota.
	(Reading database ... 92449 files and directories currently installed.)
	Unpacking vzquota (from .../vzquota_3.0.9-2_i386.deb) ...
	Selecting previously deselected package vzctl.
	Unpacking vzctl (from .../vzctl_3.0.16-4_i386.deb) ...
	Setting up vzquota (3.0.9-2) ...
	Setting up vzctl (3.0.16-4) ...
	invoke-rc.d: initscript vz, action "status" failed.
*At this point, check out your /boot/grub/menu.lst to make sure that your default= corresponds to the OpenVZ entry.
root@glutton:~# shutdown -fr now
*You'll get booted, then log back in:
root@glutton:~# uname -a
	Linux glutton 2.6.18-openvz-13-1etch4-686 #1 SMP Tue Aug 21 11:34:29 CEST 2007 i686 GNU/Linux

root@glutton:~# /etc/init.d/vz start
	Starting OpenVZ: ..done
	Bringing up interface venet0: ..done
	Configuring interface venet0: ..done

root@glutton:~# /etc/init.d/vz status
	OpenVZ is running...

root@glutton:~# ln -s /var/lib/vz /vz
Now, the only big things on using Ubuntu for this rather than CentOS:
CentOSUbuntu
/vz/var/lib/vz
service vz start/etc/init.d/vz start
/etc/sysconfig/vz-scripts//etc/vz/conf/