Re: [vserver] reboot

2005-03-09 Thread Herbert Poetzl
On Wed, Mar 09, 2005 at 10:08:12AM +0100, Timo Müller wrote:
 Bjoern Steinbrink wrote:
 
 On 2005.03.09 08:23:18 +0100, Timo Müller wrote:
  
 
 Hi,
 ho can I reboot a vserver, when I´m in a vserver?

 
 
 With init (i.e. plain initstyle):
 reboot
 Otherwise:
 reboot -f
  
 
 I think that don´t  work!
 
 -bash-2.05b# reboot
 
 Broadcast message from root (pts/4) (Wed Mar  9 10:07:19 2005):
 
 The system is going down for reboot NOW!
 init: /dev/initctl: No such file or directory

try the other one ;)

 ___
 
 
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 
 
  
 
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] [vservers] Two Problems

2005-03-09 Thread Timo Müller
Hey, I´ve 2 Problems:
First:
I´ve build a fc2 vserver and I can start it and enter it but I can´t 
stop it.
This error comes or it dont go on (i think it can´t shutdown that 
interface) But why ??:

Loopback Interface herunterfahren:

Second:
I wanna build a fc3 vserver, but in ./distrubotion is only fc2, so i 
make a new directory
fc3 and add a soource list to 
/etc/vservers/.distributions/fc3/apt/sources.list
And now i wanne build it and then:

-bash-3.00# vserver vs-fc3-3 build --force -m apt-rpm --hostname 
vsfc3-3.a.de --netdev et
0 --interface xxx.xxx.xxx.xxx/26  -- -d fc3 -m apt-rpm --hostname 
vsfc3-3.a.de --netdev eth0
Renamed '/usr/local/etc/vservers/.defaults/vdirbase/vs-fc3-3' to 
'/usr/local/etc/vservers/.defaults/vdirbase/vs-fc3-3.~1110372532~'
Renamed '/usr/local/etc/vservers/vs-fc3-3' to 
'/usr/local/etc/vservers/vs-fc3-3.~1110372532~'
Renamed '/usr/local/etc/vservers/.defaults/vdirbase/.pkg/vs-fc3-3' to 
'/usr/local/etc/vservers/.defaults/vdirbase/.pkg/vs-fc3-3.~1110372532~'
E: Konnte Datei 
/usr/local/etc/vservers/vs-fc3-3/apps/pkgmgmt/base/apt/etc/rpmpriorities 
nicht öffnen - open (2 Datei oder Verzeichnis nicht gefunden)
E: könnte Paket-Prioritäten-Datei 
/usr/local/etc/vservers/vs-fc3-3/apps/pkgmgmt/base/apt/etc/rpmpriorities 
nicht öffnen
W: Release-Dateien einiger Repositories konnten nicht geholt 
oderauthentifiziert werden.Derartige Repositories werden ignoriert.
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
-bash-3.00#

What is that?
THANKS TO ALL ;-)

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] [vservers] Two Problems

2005-03-09 Thread Enrico Scholz
[EMAIL PROTECTED] (Timo Müller) writes:

 I´ve build a fc2 vserver and I can start it and enter it but I can´t
 stop it.
 This error comes or it dont go on (i think it can´t shutdown that
 interface) But why ??:

mmh... the network initscripts should have been disabled by
'vserver ... build' (the initpost command is responsible for
doing that).


 Second:
 I wanna build a fc3 vserver, but in ./distrubotion is only fc2, so i
 make a new directory
 fc3 and add a soource list to
 /etc/vservers/.distributions/fc3/apt/sources.list

you should add an 'rpmpriorities' there also. Next util-vserver
version will have apt support for fc3 also.


 And now i wanne build it and then:

 -bash-3.00# vserver vs-fc3-3 build --force -m apt-rpm --hostname
 vsfc3-3.a.de --netdev et
 0 --interface xxx.xxx.xxx.xxx/26  -- -d fc3 -m apt-rpm --hostname
 vsfc3-3.a.de --netdev eth0
 Renamed '/usr/local/etc/vservers/.defaults/vdirbase/vs-fc3-3' to
   ~~

Are you sure that there are no conflicts? Above, you mentioned
/etc/... as the place for the configuration.


 E: Konnte Datei
 /usr/local/etc/vservers/vs-fc3-3/apps/pkgmgmt/base/apt/etc/rpmpriorities
 nicht öffnen - open (2 Datei oder Verzeichnis nicht gefunden)



Enrico


pgpr68ZOtnvw7.pgp
Description: PGP signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] PostgreSQL 8 in Vserver

2005-03-09 Thread Roderick A. Anderson
On Tue, 8 Mar 2005, Bjoern Steinbrink wrote:

 chcon is a tool to change the security context of a file, which is part
 of the SELinux stuff, about which I know absolutely nothing ;)
 So it's not linux-vserver related (i believe).

It appears to be an issue with creating a Vserver from a distribution 
CDROM.  I'll do some more checking.  I've semi-resolved this issue but it 
might have spawned another that has me going around in circles.

The short question is : has anyone got PostgreSQL 8.0.1 running in a
2.6.10-vs1.9.4 vserver?

The results I'm getting while trying to start postgresql are inconsistent
so I need some more tests to see if there is a discernible pattern.


Rod
-- 
Open Source Software - You usually get more than you pay for...
 Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL




___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Debian vserver guest

2005-03-09 Thread Gilles
Hello.


[Until we have a plug-n-play debian package with the latest version
of vserver patch and tools,] I'm again trying to configure Debian
vservers on Debian from source.
Compiling kernel 2.6.11, patched with patch-2.6.11-vs1.9.5-rc1.diff,
and util-vserver-0.30.203 went fine.

I built a Debian template vserver with

  vserver template build -m debootstrap \
   --hostname template \
   --netdev dummy0 --interface 192.168.83.99/24 \
   --context 99 -- -d sarge

The procedure completed fine too.  But problems remains, some of which
I had mentioned a few weeks ago.

Ideally, the template should be with the minimum functionality, with
everything that's necessary (to make it comfortable to install the server 
applications) and nothing that comes in the way of vserver (i.e. all
hardware- and kernel-related packages).

So here is a list of steps that could be added to the vserver build
script to come closer to such a ready-to-use vserver environment:

1. Removing dispensable packages:

 pciutils fdutils ipchains makedev ppp pppconfig pppoe pppoeconf
 dhcp-client console-common console-data console-tools klogd sysklogd

   [Note: klogd still triggers that cpu-hogging behaviour, which makes it 
   *indispensable* to remove...]

   Others?

2. Installing indispensable packages:

 less ssh

   Others?

3. Prepare for package installation:
   (a) Copy the contents of the host's /etc/apt/sources.list
   (b) Run apt-get update

4. Network interfaces
   (a) In the /etc/init.d/reboot script:  Remove the -i option (to avoid
   the guest trying to deconfigure the network interfaces upon halting).
   (b) Remove spurious links to scripts that will try to configure the
   interfaces:
 update-rc.d -f ifupdown remove
 update-rc.d -f ifupdown-clean remove
 update-rc.d -f networking remove

5. ... [Not yet finished.]


Some more questions:

(a) Should I remove the mount package (to suppress any attempt by the vserver
guest to try such things)?  [The Debian package management issues a strong 
warning when uninstalling it (package is essential).]

Or should I only remove the symlinks as for the networking scripts?

(b) At vserver template stop, the following error is printed:

   Rebooting... /usr/local/util-vserver/sbin/vserver: line 740: test: too 
many arguments

but there are only 273 lines in that file!

(c) Inside the vserver, typing mount shows

 /dev/hdv1 on / type ufs (defaults)
 none on /proc type proc (defaults)
 none on /tmp type tmpfs (size=16m,mode=1777)
 none on /dev/pts type devpts (gid=5,mode=620)

The contents of /etc/vservers/template/fstab is:

  none/proc   procdefaults0 0
  none/tmptmpfs   size=16m,mode=1777  0 0
  none/dev/ptsdevpts  gid=5,mode=620  0 0

So I wonder: Where does that /dev/hdv1 entry come from?
And rightly, when stopping the vserver, I get the error:

  umount: /dev/hdv1: not found

(d) The file /etc/hostname, inside the vserver, contains the host's name 
instead of the
guest name. Is it supposed to be so?  [uname -n provides the right name.]

(e) I must be missing something with vprocunhide because I can't seem to make 
it
visible... I looked at

  
http://www-user.tu-chemnitz.de/~ensc/util-vserver/doc/conf/configuration.html

but the only reference is in /etc/vservers/.defaults/apps/vprocunhide, 
which
does not appear in my config directory.



Thanks for your patience.
Gilles

  
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Debian vserver guest

2005-03-09 Thread Matthew Sayler
On Wed, Mar 09, 2005 at 10:29:31PM +0100, Gilles wrote:
 (e) I must be missing something with vprocunhide because I can't seem to 
 make it
 visible... I looked at
 
   
 http://www-user.tu-chemnitz.de/~ensc/util-vserver/doc/conf/configuration.html
 
 but the only reference is in /etc/vservers/.defaults/apps/vprocunhide, 
 which
 does not appear in my config directory.

I too am working on Vserver under Debian.  What you need to do is
configure the vprocunhide script to be run on the main (master/host)
system at least once:  

jose:/etc/rc2.d# ls -ltrc
...
lrwxr-xr-x  1 root root 25 Mar  6 12:19 S20vservers-legacy - 
../init.d/vservers-legacy
lrwxr-xr-x  1 root root 26 Mar  6 12:19 S20vservers-default - 
../init.d/vservers-default
lrwxr-xr-x  1 root root 21 Mar  6 12:19 S20vprocunhide - ../init.d/vprocunhide

I figured this out eventually, but the documenation is very confusing
(it actually references 3 different paths for vprocunhide locations--the
master one is $LIBDIR/util-vserver/defaults/vprocunhide-files )

Matt
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Debian vserver guest

2005-03-09 Thread Kilian Krause
Hi Gilles,

 [Until we have a plug-n-play debian package with the latest version
 of vserver patch and tools,] I'm again trying to configure Debian
 vservers on Debian from source.

what's wrong with the one from experimental? like
http://ftp.de.debian.org/debian/pool/main/u/util-vserver/util-vserver_0.30.203-1_i386.deb

It's in official Debian already, just not 204 but 203.

-- 
Best regards,
 Kilian


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Debian vserver guest

2005-03-09 Thread Bjoern Steinbrink
On 2005.03.09 22:29:31 +0100, Gilles wrote:
 Hello.
 
 
 [Until we have a plug-n-play debian package with the latest version
 of vserver patch and tools,] I'm again trying to configure Debian
 vservers on Debian from source.
 Compiling kernel 2.6.11, patched with patch-2.6.11-vs1.9.5-rc1.diff,
 and util-vserver-0.30.203 went fine.
 
 I built a Debian template vserver with
 
   vserver template build -m debootstrap \
--hostname template \
--netdev dummy0 --interface 192.168.83.99/24 \
--context 99 -- -d sarge
 
 The procedure completed fine too.  But problems remains, some of which
 I had mentioned a few weeks ago.
 
 Ideally, the template should be with the minimum functionality, with
 everything that's necessary (to make it comfortable to install the server 
 applications) and nothing that comes in the way of vserver (i.e. all
 hardware- and kernel-related packages).
 
 So here is a list of steps that could be added to the vserver build
 script to come closer to such a ready-to-use vserver environment:
 
 1. Removing dispensable packages:
 
  pciutils fdutils ipchains makedev ppp pppconfig pppoe pppoeconf
  dhcp-client console-common console-data console-tools klogd sysklogd
 
[Note: klogd still triggers that cpu-hogging behaviour, which makes it 
*indispensable* to remove...]
 
Others?
 
 2. Installing indispensable packages:
 
  less ssh
 
Others?

Hm, i could live without less in some vservers... Anyway, there would
have to someone maintaining the list of includes/excludes if we stop
simply relying on debootstrap to do it right, changes in the
dependencies may cause trouble. You can always pass parameters to
debootstrap with your build command and include/exclude packages in your
builds.

 
 3. Prepare for package installation:
(a) Copy the contents of the host's /etc/apt/sources.list

The sources.list from the vserver configuration should be copied.

(b) Run apt-get update
 
 4. Network interfaces
(a) In the /etc/init.d/reboot script:  Remove the -i option (to avoid
the guest trying to deconfigure the network interfaces upon halting).
(b) Remove spurious links to scripts that will try to configure the
interfaces:
  update-rc.d -f ifupdown remove
  update-rc.d -f ifupdown-clean remove
  update-rc.d -f networking remove
 
 5. ... [Not yet finished.]
 
 
 Some more questions:
 
 (a) Should I remove the mount package (to suppress any attempt by the 
 vserver
 guest to try such things)?  [The Debian package management issues a 
 strong 
 warning when uninstalling it (package is essential).]
 
 Or should I only remove the symlinks as for the networking scripts?

Just the symlinks i'd say, secure mounts may become reality sometime.

 
 (b) At vserver template stop, the following error is printed:
 
Rebooting... /usr/local/util-vserver/sbin/vserver: line 740: test: too 
 many arguments
 
 but there are only 273 lines in that file!
 
 (c) Inside the vserver, typing mount shows
 
  /dev/hdv1 on / type ufs (defaults)
  none on /proc type proc (defaults)
  none on /tmp type tmpfs (size=16m,mode=1777)
  none on /dev/pts type devpts (gid=5,mode=620)
 
 The contents of /etc/vservers/template/fstab is:
 
   none/proc   procdefaults0 0
   none/tmptmpfs   size=16m,mode=1777  0 0
   none/dev/ptsdevpts  gid=5,mode=620  0 0
 
 So I wonder: Where does that /dev/hdv1 entry come from?
 And rightly, when stopping the vserver, I get the error:
 
   umount: /dev/hdv1: not found

mount just reads /etc/mtab, it doesn't care about the real mounts
(listed in /proc/mounts, but with less information).
The error message is most probably issued by some initscript that tries
to umount -a

 
 (d) The file /etc/hostname, inside the vserver, contains the host's name 
 instead of the
 guest name. Is it supposed to be so?  [uname -n provides the right 
 name.]
 
 (e) I must be missing something with vprocunhide because I can't seem to 
 make it
 visible... I looked at
 
   
 http://www-user.tu-chemnitz.de/~ensc/util-vserver/doc/conf/configuration.html
 
 but the only reference is in /etc/vservers/.defaults/apps/vprocunhide, 
 which
 does not appear in my config directory.

Did you look at /usr/local/etc...? Since you didn't specify a prefix
while configuring the tools, everything got installed below /usr/local/

HTH
Bjoern
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Debian vserver guest

2005-03-09 Thread Gilles
Hi.

 what's wrong with the one from experimental? like
 http://ftp.de.debian.org/debian/pool/main/u/util-vserver/util-vserver_0.30.203-1_i386.deb

 It's in official Debian already, just not 204 but 203.

Sorry :-{, I didn't give it a try.  All the discussions about 
unstable vs development vs experimental vs stable left me a bit
confused.  Maybe I missed the conclusion(s).

Is the current experimental vserver-patch for 2.6.x Debian-packaged?
Is the vserver-debiantools package compatible with the new vserver-util?
Do the latest vserver-debiantools correct the problems I mentioned in my
mail?


Thanks.
Gilles
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver