Setting up host
Basic configuration
echo 'deb http://download.openvz.org/debian-systs etch openvz' >> /etc/apt/sources.list wget http://download.openvz.org/debian-systs/dso_archiv_signing_key.asc apt-key add dso_archiv_signing_key.asc apt-get update apt-get install ovzkernel-2.6.18-smp vzctl vzquota bridge-utils update-rc.d vz defaults 95 reboot
Create OS template
apt-get install vzctl-ostmpl-debian
Or use debootstrap.
Networking
Replace eth0 config in /etc/network/interfaces:
brctl addbr br0 auto br0 iface br0 inet dhcp bridge_ports eth0
Creating VEs
veid's are integers greater than 100.
vzctl create $VEID --ostemplate debian-4.0-i386-minimal vzctl set $VEID --netif_add eth0 --hostname $VE_HOSTNAME --save vzctl start $VEID brctl addif br0 veth${VEID}.0
TODO: VE startup script
Configuring VE
- Set root password
- Add eth0 to /etc/network/interfaces
TODO: AFS