vserver 0.19 changes log

vserver 0.19 changes log

previous versions: 0.18
Change log index


C++ issues

The pfstream stuff has been removed so the utility should compile with newer libraries (the pfstream stuff was deprecated).

Debian support

The vserver command now support Debian. It does it on the fly. It knows where to find the runlevel start-up script, how to turn on and off a service and so on.

There are still few things to do to completely support Debian, notably the unification of DEB package. We are getting there.

Multi IP on several devices

Since kernel ctx-12, you can setup up to 16 IPs per vserver. All those IPs had to be on the same device (IPROOTDEV). It is now possible to assign those IPs to several devices, using the explicit syntax:

	IPROOT="eth0: eth1:"

In the above example, IP will be setup on device eth0, will be installed on eth1 and will go on eth2 (IPROOTDEV is used by default).


All the scripts have been modified to allow the package to be moved in a different location. All the /usr/sbin and /usr/lib/vserver have been change to use $USR_SBIN and $USR_LIB_VSERVER. At the top of each script, those macros are defined. The install-fix.sh utility patch the script with the effective value of those macros.

This way, the package could be moved to /usr/local/sbin and /usr/local/lib/vserver if needed.

vrpm enhancements

The vrpm command is trying to run the rpm command in the proper context (if the vserver is running) so post-install script will have proper effect (and won't interfere with the root server).

vserver command enhancements

The "suexec" command was added. You can execute a command in a vserver context under a specific user-id (known to the vserver). It works like this

	vserver NAME suexec user command args ...

The "status" command was added. It reports some information about a given vserver. Here is an example:

	$ /usr/sbin/vserver smb001 status
	Server smb001 is running
	18 processes running
	Vserver uptime: 12:01

The --silent general option was added. It kills all informative messages. It is generally used with the exec or running command. For example:

	# Counting the processes
	vserver --silent XXX exec ps ax | wc -l

v_xxx pseudo services support multi-IP

The various pseudo services such as v_httpd and friends have been reworked. Previously they were setting the ipv4root to eth0 and starting the real service. It was possible to override the IP by providing a small configuration file in /etc/vservices. For a pseudo service v_xxx, you could setup /etc/vservices/xxx.conf and inside, define the variable IP. It was possible to enter one IP only. Now it is possible to enter two or more IP like this

	# File /etc/vservices/xxx.conf