From: Enrico Scholz (enrico.scholz_at_informatik.tu-chemnitz.de)
Date: Thu 28 Jul 2005 - 23:35:32 BST
bipsen-dated-1123189280.620c33_at_andebakken.dk (Brian Ipsen) writes:
> Trying to build a new vserver using:
>
> # ./vserver-build -m yum -n test2 --hostname test2.domain.dk --interface
> test2=eth0:192.168.3.37/24 --context 10037 -- -d wbel4
>
> Due to the fact, that after RPM installation, I get a whole bunch of errors:
>
> vcontext: vc_create_context(): File exists
> vcontext: vc_create_context(): File exists
> vcontext: vc_create_context(): File exists
These errors are not fatal; they are coming from the 'initpost' script
which tries to disable some services. The services will be still on (and
cause lot of (non-fatal) error messages at vserver startup), but the
vserver was built
You can fix the vserver by disabling all unneeded services manually; by
default (= when 'vserver ... build' succeeds), only 'syslog' is enabled.
> I started investigating what was going on.... What I discovered, was
> the the specified context in fact existed.. This is what happens:
>
> Yum installs all the rpms.. Before it reports which RPM's that have been
> installed, I grabbed this in another shell:
>
> # vps aux | grep minilog
> root 6564 10037 0.0 0.0 1520 376 ? Ss 21:02
> 0:00 minilogd
> root 6597 0 MAIN 0.0 0.0 3904 568 pts/3 S+ 21:02
> 0:00 grep minilog
You could try to start 'syslogd' in the vserver (without killing
minilogd). Then, the generated syslog will probably give an indication
why minilogd was started.
I suspect some initscript which was executed by an rpm %scriptlet (when
syslogd is not running, minilogd will be invoked by the initscripts).
You could try to enter the context also shortly after the ./vserver-build
and watch the processlist to see when and by what minilogd was started.
> Installed: MAKEDEV.i386 0:3.15-2 NetworkManager.i386 0:0.3.1-3.WB1
> SysVinit.i386 0:2.85-34 acl.i386 0:2.2.23-5 acpid.i386 0:1.0.3-2
mmh... there seems to be lot of unneeded stuff in this list.
E.g. NetworkManager, apmd or acipd are useless in vservers and not
required by core packages.
Enrico
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver