I'm interested in improving the situation of OpenVZ templates for Gentoo. Currently, the latest OpenVZ template for Gentoo that I can find is the 2008.0 one by Daniel Robbins. It's quite old and that makes it a bit more difficult to upgrade (profile issues, etc.). So I am working on a script that can convert stage3 tarballs into OpenVZ templates.
The great thing is, is that it works. Well, the other great thing is, is that unlike following the crazy hacks on many configuration files from the OpenVZ wiki, which is unmaintainable (too many files to track) and breaks when updating to baselayout-2, this script takes advantage of baselayout-2's rc_sys variable by first updating the template to baselayout-2 then applying the single configuration change needed. Plus all the other things like enabling ssh, locking the root password by default, etc.
Any questions? Suggestions? I'd be glad to take advice and answer any comments. Hopefully we can improve the state of Gentoo on OpenVZ!
Major features:
- baselayout-2 compatible
- upgradable configuration changes
- uses host's /usr/portage if found
- adds sshd to default runlevel
- installs dhcpcd
- upgrades stage3 to baselayout-2
For more information: http://azabani.com/gentoovz/
My first successful template, published: gentoo-openvz-stage3-amd64-20110428.tar.gz
These templates are already being used by Fanatical, my VPS provider. If you want to see these available on your VPSes, just let your administrator know, they can add it quickly.




