Home

Search this site:
 

Horshack’s
very
own site

 

This is Bavaria, Germany!
You will find links to Perl,
bootdisks for system administration,
a lot of Linux,
Windows administration
and some personal belongings.
Debian Etch and Vserver

Debian Etch and Vserver

Installing a new vserver

cd /data/vservers
vserver svn \ build -m debootstrap \ --hostname svn.rosi13.de \ --netdev eth0 \ --interface v00=10.1.1.72/24 \ --context 72 \ -- -d etch -m ftp://ftp.debian.de/debian
After that start the vserver, enter it (ignore the error) and update /etc/apt/sources.list
vserver svn start

mother# vserver svn enter

svn# vi /etc/apt/sources.list

# stable

deb http://ftp.hosteurope.de/pub/linux/debian/ etch main

# Security-updates

deb http://security.debian.org/ etch/updates main contrib

svn# vi /etc/profile

...

# set proxy-server

ftp_proxy=http://proxy.rosi13.de:3128

export ftp_proxy

http_proxy=http://proxy.rosi13.de:3128

export http_proxy

svn# exit

mother# vserver svn enter

svn# apt-get update

Get:1 http://ftp.at.debian.org sarge/main Packages [3347kB]
Get:2 http://security.debian.org stable/updates/main Packages [155kB]
Get:3 http://security.debian.org stable/updates/main Release [110B]
...


Now the very basic system is there. Installing a few basic things

svn# apt-get install locales
svn# # base-config does not exist anymore in etch
svn# dpkg-reconfigure locales

svn# apt-get install vim xinetd ssh less screen mailutils
svn# apt-get install build-essential
svn# apt-get install postfix
svn# # install c-compiler, make

Start Vserver automatically

echo default >/etc/vservers/YOUR_VSERVER_NAME/apps/init/mark

Capabilities for Vserver

When you let dhcpd run in a vserver you need capabilities to let this work. Create a file /etc/vservers/YOUR_VSERVER/bcapabilities like this:
CAP_NET_RAW
CAP_NET_BROADCAST
CAP_NET_ADMIN
There are more capabilities which let a vserver mount volumes and more things. CAP_SYS_RAW is for allowing everything, there is a list in http://archives.linux-vserver.org/200401/0081.html.


Last modified:
19.09.2009 14:23
Impressum
Wozu Witze ausdenken? Das Leben schreibt sie selbst:
Das haben wir jetzt 40 Jahre so gemacht, warum sollten wir das ändern?
Why inventing jokes? Real life does a better job:
We are doing it this way for 40 years, why should we change it?