Installing a Debian VE on the Dell 2950 with OpenVZ

Well, it’s been a while, but tonight is playing time again. I’m going to install another VE on the OpenVZ host on a Dell Poweredge 2950.

Fedora 4 is already running but required quiet a lot of tuning. I’m anxious to see if that’s the same with a Debiain-on-Debian system. I found a tutorial on HowToForge and I’m going to try to follow that.

First, I needed a template. Luckily, I could download it from the fellows at OpenVZ. First steps were easy:

vzctl create 102 --ostemplate debian-3.1-x86_64-minimal.tar.gz --config vps.basic
vzctl set 102 --onboot yes --save
vzctl set 102 --hostname test101.mytest.org --save
vzctl set 102 --ipadd 10.0.0.101 --save
vzctl set 102 --numothersock 120 --save
vzctl set 102 --nameserver 10.0.0.2 --save
vzctl set 102 --privvmpages 500000:750000 --save
vzctl start 102
vzctl exec 102 passwd

All I changed was the ip: the machine will receive an outside address. The nameserver was copied from the nameserver from the Host. Next thing we need: upgrade the distribution. To do so, we need to copy a working sources.list to the VE and then upgrade the VE:

cp /etc/apt/sources.list > /var/lib/vz/root/102/etc/apt/sources.list
apt-get dist-upgrade

Deb-conf asks me a few questions about the configuration, most of it can be answered with a simple Enter. After the installation was succesfully completed, I updated the sources again. What do you know : the same error about GPG

apt-get update
W: GPG error: http://debian.systs.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C694690C52A9498A
W: You may want to run apt-get update to correct these problems

I used the fix I used before. I took the liberty of mirroring the file, so you can grab it here. Now, we need to prepare the system as a webhost. I figured we need at leas the common packages: Apache2, PHP5, MySQL5. Fiddling with apt-get, I figured I also need common packages emacs and less. Here are the commands I entered:

apt-get install emacs less
apt-get install apache2

Here we go: errors. Skipping to the host and doing a check, told me I needed to upgrade the numfiles. So I gave it twice the limits:

cat /proc/user_beancounters
vzctl set 102 --numfile 4096 --save

Logging back on to the host, I thought it would be wise to reinstall apache. After that, I installed PHP5 with the packages I need, and the latest version of MySQL. Inspite of giving the last version, I just needed to give a generic name for MySQL:

apt-get install php5-imagick php5-sqlite php5-cli php5-gd php5-mysql libapache2-mod-php5
apt-get install mysql-server mysql-common mysql-admin

Oops: something went wrong. After I was asked to set a password for the root user (nice! used to be done manually) the system complained about a missing package mysql-server-5.0. Apparantly, that needs to be set explicitely. Installing that, I received an error about allocating memory. Been there, done that: upgrade the kmemsize. So, here we go again: log off, alter the machine and log back in. After trying a few values, I finally found one that worked:

vzctl set 102 --kmemsize 16384 --save

To be sure, I did the reinstall option again on the mysql-server-5.0. Now, everything works perfectly fine, but in order to save this VE as a base to create other VE’s, I want to reboot the Host first. That will come tomorrow. After that, I’ll see if I can work through the next tutorial.

Add to your favorites:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • StumbleUpon

This entry was posted on Wednesday, May 9th, 2007 at 22:17 and is filed under Debian, OpenVZ, Testing. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “Installing a Debian VE on the Dell 2950 with OpenVZ”

Beulbek » Blog Archive » February’s top hits July 6th, 2008 at 16:57

[...] /2007/05/09/installing-a-debian-ve-on-the-dell-2950-with-openvz [...]

Leave a Reply