Docunext

  • About

Trying OpenVZ

July 24th, 2007

I'm installing OpenVZ on a little valley d201gly folllowing http://wiki.openvz.org/InstallationonDebian#installthekernel-image:

  1. Edit sources.list:
# Added for OpenVZ

deb http://download.openvz.org/debian etch main
  1. Update
  2. Install kernel linux-image-2.6.18-openvz-686
  3. Install vzctl and vzquota?

At this point I was a little confused - what's a template, where do they live? So I followed openvz.org/Debiantemplatecreation and howtoforge.com/debianetchopenvz.

I created a folder private inside /var/lib/vz/, and a folder 101 inside that, then debootstrap 101, and then started 101, and entered 101, but no network. :-( I got an error about proxy arp so I set that, but still no go. Aha, found out what the problem was. Needed "OSTEMPLATE=debian-4.0" in the /etc/vz/conf/101.conf file. :-)

Wow. OpenVZ rocks. So far I've built two VMs:

  • 101 - basic debian etch, copied to template, keeping for ongoing modifications as I find them (like adding sudo and rsync)
  • 102 - installing subversion for public GPL code we're working on

For 102 (the subversion server):

apt-get install subversion libapache2-svn php5

I'm not sure if I needed it, but I installed php5 because I use it almost everywhere. Hmm, having some problems with ssl, might need ca-certificates.

Also setup 103, which is a lamp server, while I was at it I created a copy of this to clone later.

While I'm thinking about it, I want to remind myself that it would be a good idea to use some intelligent numbering schemes for these virtual machines. Any number will do, as long as the they are larger than 100.

Yee-haw, just got a gentoo vm setup! :-) Too bad you can't run FreeBSD inside an OpenVZ VM. Just ran into a problem with the gentoo vm, had to increase the disk quota, but after that, no problem. Also ran into a shadow and pam-login conflict, but found a solution pretty quick.

Related:

OpenVZ Docunext Wiki Page

Yearly Indexes: 2010 2003 2005 2006 2007 2008 2009 2004 2011 2012 2013 2015 2019 2020