Profile
Engels started playing with Linux® in 1991 and obtained his Red Hat Certified Engineer (RHCE), Red Hat Certified Instructor (RHCI), and Red Hat Certified Examiner (RHCX) certifications in 2002. He is in charge of Bluepoint's Total Linux®, Linux Kernel Internals®, Perl & Python Programming, and Extreme PHP curriculum and instruction development.
/* Conveniently yanked from the Bluepoint Institute profile page */
Navigation
People
Elvin Joseph Sanico was one of the best professors I was privileged to have at the UP National Institute of Physics in Diliman. His use of the continuity equation for steady one-dimensional flow to prove the "silent waters run deep" axiom was really cool!
mortega.net
In loving memory of CPT Mario B. Mortega Sr., USAFFE, VET (1920-2004)
OpenVZ
Tuesday, Jul 4, 2006, 7:31 PM
OpenVZ is an operating system-level server virtualization solution built on Linux. It creates isolated, secure virtual environments - VEs (otherwise known as virtual private servers or VPSs) on a single physical server enabling better server utilization and ensuring that applications do not conflict. Each VPS performs and executes exactly like a stand-alone server; VPSs can be rebooted independently and have root access, users, IP addresses, memory, processes, files, applications, system libraries and configuration files.


INGREDIENTS

SRC
patch-026test015-combined.gz
http://download.openvz.org/kernel/devel/026test015.2/patches/patch-026test015-combined.gz

linux-2.6.16.tar.bz2
http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2


RPM
ovzkernel-2.6.16-026test015.2.i686.rpm
http://download.openvz.org/kernel/devel/026test015.2/ovzkernel-2.6.16-026test015.2.i686.rpm


RPM (FC5)
kernel-2.6.16-1.2111_FC5.026test012.i686.rpm
http://download.openvz.org/kernel/fc5/2.6.16-1.2111_FC5.026test012/kernel-2.6.16-1.2111_FC5.026test012.i686.rpm


SRC/RPM/RPM (FC5)
vzctl-3.0.10-1.i386.rpm
http://download.openvz.org/utils/vzctl/3.0.10/vzctl-3.0.10-1.i386.rpm

vzctl-lib-3.0.10-1.i386.rpm
http://download.openvz.org/utils/vzctl/3.0.10/vzctl-lib-3.0.10-1.i386.rpm

vzquota-3.0.8-1.i386.rpm
http://download.openvz.org/utils/vzquota/3.0.8/vzquota-3.0.8-1.i386.rpm


TEMPLATES
fedora-core-5-i386-minimal.tar.gz
http://download.openvz.org/template/precreated/fedora-core-5-i386-minimal.tar.gz

centos-4-i386-minimal.tar.gz
http://download.openvz.org/template/precreated/centos-4-i386-minimal.tar.gz

debian-3.1-i386-minimal.tar.gz
http://download.openvz.org/template/precreated/debian-3.1-i386-minimal.tar.gz

gentoo-20060317-i686-stage3.tar.gz
http://download.openvz.org/template/precreated/gentoo-20060317-i686-stage3.tar.gz

opensuse-10-i386-default.tar.gz
http://download.openvz.org/template/precreated/opensuse-10-i386-default.tar.gz

slackware-10.2-i386-minimal.tar.gz
http://download.openvz.org/template/precreated/contrib/slackware-10.2-i386-minimal.tar.gz

ubuntu-6.06-i386-minimal.tar.gz
http://download.openvz.org/template/precreated/contrib/ubuntu-6.06-i386-minimal.tar.gz


PROCEDURE

SRC
# cd /var/tmp/
# wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2
# tar xjpf linux-2.6.16.tar.bz2
# cd linux-2.6.16/
# wget http://download.openvz.org/kernel/devel/026test015.2/patches/patch-026test015-combined.gz
# gzip -dc patch-026test015-combined.gz | patch -p1

# vi Makefile

Makefile

LOOK FOR:
EXTRAVERSION =

CHANGE TO:
EXTRAVERSION = openvz-026test015

# make menuconfig
# make bzImage
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.16-openvz-026test015
# cp System.map /boot/System.map-2.6.16-openvz-026test015

MODULAR
# make modules
# make modules_install
# mkinitrd /boot/initrd-2.6.16-openvz-026test015.img 2.6.16-openvz-026test015

CLEAN-UP
# cd /var/tmp/
# rm -rf linux-2.6.16/ linux-2.6.16.tar.bz2

GRUB
# vi /etc/grub.conf

grub.conf

ADD:
title OpenVZ (2.6.16-openvz-026test015)
root (hd0,0)
kernel /vmlinuz-2.6.16-openvz-026test015
# Uncomment the next line if kernel is "modular"
# initrd /initrd-2.6.16-openvz-026test015.img

# reboot


RPM
# wget http://download.openvz.org/kernel/devel/026test015.2/ovzkernel-2.6.16-026test015.2.i686.rpm
# rpm -ivh ovzkernel-2.6.16-026test015.2.i686.rpm
# rm -f ovzkernel-2.6.16-026test015.2.i686.rpm
# reboot


RPM (FC5)
# wget http://download.openvz.org/kernel/fc5/2.6.16-1.2111_FC5.026test012/kernel-2.6.16-1.2111_FC5.026test012.i686.rpm
# rpm -ivh kernel-2.6.16-1.2111_FC5.026test012.i686.rpm
# rm -f kernel-2.6.16-1.2111_FC5.026test012.i686.rpm
# reboot


SRC/RPM/RPM (FC5)
# wget http://download.openvz.org/utils/vzctl/3.0.10/vzctl-3.0.10-1.i386.rpm
# wget http://download.openvz.org/utils/vzctl/3.0.10/vzctl-lib-3.0.10-1.i386.rpm
# wget http://download.openvz.org/utils/vzquota/3.0.8/vzquota-3.0.8-1.i386.rpm
# rpm -Uvh vzctl-3.0.10-1.i386.rpm vzctl-lib-3.0.10-1.i386.rpm vzquota-3.0.8-1.i386.rpm
# rm -f vzctl-3.0.10-1.i386.rpm vzctl-lib-3.0.10-1.i386.rpm vzquota-3.0.8-1.i386.rpm

# vi /etc/sysctl.conf

sysctl.conf

LOOK FOR:
net.ipv4.ip_forward = 0

CHANGE to:
net.ipv4.ip_forward = 1

# sysctl -p


TEMPLATES
# wget http://download.openvz.org/template/precreated/fedora-core-5-i386-minimal.tar.gz
# mv fedora-core-5-i386-minimal.tar.gz /vz/template/cache/
# vzctl create 101 --ostemplate fedora-core-5-i386-minimal
# vzctl set 101 --ipadd 1.2.3.4 --save
# vzctl set 101 --nameserver 1.2.3.53 --save
# vzctl set 101 --hostname host101.domain.com --save
# vzctl set 101 --onboot yes --save
# vzctl start 101
# vzctl exec 101 passwd


ACCESS
# ssh 1.2.3.4
# vzctl enter 101
# cd /vz/private/101/
# chroot /vz/private/101/


MANAGEMENT
# vzlist -a
# vzctl status 101
# vzctl stop 101
# vzctl restart 101


MORE
# man vzctl
# man vzlist
# man vzquota
Search