[Vserver] Samba and Vserver Best Practices

2006-02-03 Thread Charles Baker
I'm setting up a host server and several vservers that developers in my
organization will use to test bug fixes of our software. They will
occasionally need access to certain directories on the vservers to check
logs, etc.

For convenience sake samba shares to the needed directories would be the
thing to have. Is the best practice to set up samba on the host server
and share directories within the /vservers/$SERVERNAME/path/to/log/dir
or set up samba w/in the vserver itself and share it that way?
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] /dev/null

2004-10-20 Thread Charles Baker
I'm using some vservers on RedHat 7.3 w/ kernel 2.4.24-vs1.26. I'm
running apache and jboss on the vservers. I've been patching our custom
ears, jars etc. Now all of a sudden the /dev/null devices on two of the
vservers are showing up as rw-r--r-- instead of crw-rw-rw- . I noticed
this when switching to a non-root user and bash reports:

bash: /dev/null: Permission denied

And when I try to start jboss I get:

run.sh: /dev/null: Permission denied

jboss never starts. Any ideas before I go monkeying around and try to
recreate the device. Can I even recreate a device in a vserver?


Charles H. Baker
O: 864.422.5349 C: 864.201.8456
[EMAIL PROTECTED] 
Whatever you vividly imagine, ardently desire, sincerely believe and
enthusiastically act upon must inevitably come to pass! -- Paul J. Meyer

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] /dev/null

2004-10-20 Thread Charles Baker
Thanks, that appears to have done the trick. I appreciate it.

-Original Message-
From: Herbert Poetzl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 20, 2004 10:34 AM
To: Charles Baker
Cc: [EMAIL PROTECTED]
Subject: Re: [Vserver] /dev/null

On Tue, Oct 19, 2004 at 05:15:18PM -0400, Charles Baker wrote:
 I'm using some vservers on RedHat 7.3 w/ kernel 2.4.24-vs1.26. I'm
 running apache and jboss on the vservers. I've been patching our
custom
 ears, jars etc. Now all of a sudden the /dev/null devices on two of
the
 vservers are showing up as rw-r--r-- instead of crw-rw-rw- . I noticed
 this when switching to a non-root user and bash reports:
 
 bash: /dev/null: Permission denied
 
 And when I try to start jboss I get:
 
 run.sh: /dev/null: Permission denied
 
 jboss never starts. Any ideas before I go monkeying around and try to
 recreate the device.

hmm, well, I'd say some smart 'root' user removed the
device (which is possible inside a vserver) and then
failed to recreate it (because that isn't allowed inside
a vserver) so s/he decided to create a file instead ..

(probably nobody will notice ;)

if that 'theory' doesn't hold, you are encountering severe 
filesystem corruption and I'd suggest to check the fs
immediately ... 

 Can I even recreate a device in a vserver?

yes, you can, given that you have proper capabilities,
but for sure you can create the device from 'outside'
so a simple 'cp -va /dev/null /vservers/name/dev/null'
should be sufficient

HTH,
Herbert

 
 Charles H. Baker
 O: 864.422.5349 C: 864.201.8456
 [EMAIL PROTECTED] 
 Whatever you vividly imagine, ardently desire, sincerely believe and
 enthusiastically act upon must inevitably come to pass! -- Paul J.
Meyer
 
 ___
 Vserver mailing list
 [EMAIL PROTECTED]
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Kernel Patching Questions

2003-11-30 Thread Charles Dale
1. include/linux/sys.h: vanilla 2.4.21 had 
  #define NR_syscalls 270

  but RHEL 2.4.21 has

  #define NR_syscalls 271

  So should I make NR_syscalls now 274 or 275?

2. include/linux/sched.h: any ideas what to do with this hunk (following)?
There's nothing even vaguely like it that I can see.
***
*** 956,961 
out_of_line_bug();
write_lock_irq(tasklist_lock);
nr_threads--;
unhash_pid(p);
REMOVE_LINKS(p);
list_del(p-thread_group);
--- 968,975 
out_of_line_bug();
write_lock_irq(tasklist_lock);
nr_threads--;
+   if (p-s_info)
+   p-s_info-nr_threads--;
unhash_pid(p);
REMOVE_LINKS(p);
list_del(p-thread_group);

3. forget_original_parent in exit.c seems to have changed completely - looks
like the vanilla 2.4.21 used a read_lock while the RH one uses
list_for_each_safe which I assume locks as it goes. But that means there's
nowhere left to put the additional bit from the vserver patch (not sure what
it does exactly, it tries to find a new parent for vchild_reaper I think).


Boy I'm tired, that's way too much kernel hacking in one day for me. 10
rejects down, 20 to go... Any help appreciated. 

BTW, there are 266 patches applied inside the RHEL3 kernel SRPM... Grr.

Have a good day =)
Chuck

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Compat Libs required for vserver-0.28

2003-11-29 Thread Charles Dale
Hi Jacques,

Just a note: I had to install the compat-gcc-c++ RPM and associated
dependencies in order to get the 0.28 tools to install on RH9. This wasn't
needed with 0.25 or 0.26.

Any reason why this is needed?

# rpm -Uvh vserver-0.28-1.i386.rpm
warning: vserver-0.28-1.i386.rpm: V3 DSA signature: NOKEY, key ID 687255b5
error: Failed dependencies:
libstdc++-libc6.2-2.so.3 is needed by vserver-0.28-1
Suggested resolutions:
/usr/local/redhat/9/compat-gcc-c++-7.3-2.96.118.i386.rpm

# rpm -q libstdc++
libstdc++-3.2.2-5

# rpm -Uvh --aid vserver-0.28-1.i386.rpm
warning: vserver-0.28-1.i386.rpm: V3 DSA signature: NOKEY, key ID 687255b5
Preparing...# [100%]
   1:compat-libstdc++   # [ 20%]
   2:compat-libstdc++-devel # [ 40%]
   3:compat-gcc # [ 60%]
   4:vserver# [ 80%]
   5:compat-gcc-c++ # [100%]

P.S. Is anyone running vservers on RHEL3? Anyone got a script for creating a
minimal RHEL3 vserver? If not I'll put together a minimal package list and
post it.

Cheers,
Chuck

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Rpms for vserver 0.27 (got it)

2003-11-23 Thread Charles Dale
Hi Tyrone,

Unfortunately the documentation is still under development so you'll have to
do a bit of work to understand how things function. That said, there is some
documentation already, could you start from there and let us know what you
need explained more? Then perhaps we can fill in the details for others too.


If you're not willing to get your hands dirty you might want to go with
Virtuozzo - the vserver project is not nicely polished like it might be. But
that's better, because you'll actually learn how everything works, and so be
able to fix it when it breaks!

[Firstly: yes vservers work on RH9. You won't be able to use FreeVPS though,
you'll have to use the standard vserver patches and tools that are available
from linux-vserver.org. This means you can't use a Red Hat modified kernel
but that shouldn't be a problem (I'm running my vservers on RH9 with a
vanilla kernel at the moment).]

The Step-by-Step Guide[1] outlines the general steps required: building a
kernel, installing the vserver tools, then setting up your vserver.

1. http://www.linux-vserver.org/index.php?page=Step-by-Step+Guide

Unfortunately the details aren't there. The FAQ[2] contains lots of useful
hints.


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 [EMAIL PROTECTED]
 Sent: Sunday, 23 November 2003 4:52 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [Vserver] Rpms for vserver 0.27 (got it)
 
 
 Can I set the vservers up on rh9, or will they only work on 
 rh7.3? I want to run plesk6 in a vserver, and run into 
 problems with bind (capset failed), I currently tried this 
 with Freevps on RH7.3. What will be the best way to go, 
 without purchasing something like virtuozzo. There's a site 
 called (jvds.com) with environment already built, but I dont 
 understand how to setup and manage them, if you have any 
 place information on where I can gain some knowledge please 
 respond. Thanks TyroneM, 
  
  From: Jacques Gelinas [EMAIL PROTECTED]
  Date: 2003/11/22 Sat PM 10:16:21 EST
  To: Vserver mailing list [EMAIL PROTECTED]
  Subject: [Vserver] Rpms for vserver 0.27 (got it)
  
  
 

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: RE: [Vserver] Rpms for vserver 0.27 (got it)

2003-11-23 Thread Charles Dale
Hmm can someone else answer this one please, I've lost track of what
happened to the Per Context Quota  Disk Limit patches after 1.0. Herbert
did they get merged into the main patch?

Some of the memory  process limits are controlled by ulimit settings - see
the ULIMIT= variable in your vserver.conf.

I've yet to investigate doing complete limiting so I can't give you much
more specific info.

Cheers,
Chuck

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 [EMAIL PROTECTED]
 Sent: Monday, 24 November 2003 3:04 PM
 To: [EMAIL PROTECTED]
 Subject: Re: RE: [Vserver] Rpms for vserver 0.27 (got it)
 
 
 Hey Chuck, 
 
 It worked out perfectly, and I know have it running on RH9 
 (w/min.RH9 vserver). My question is how do I set the 
 limitation for disk space, memory, and processes for a 
 vserver. I noticed when I ssh/logged into the vserver that 
 all the diskspace was available to the vserver. The thing I 
 liked most about Freevps is that it had several perl scripts 
 to setup, and monitor the vserver, is this possible with what 
 I have now? I want to setup my vserver environments based on 
 web hosting plan for vps services.
 
 I appreciate your help in getting me this far.
 Thanks
 TyroneM
  
  From: Charles Dale [EMAIL PROTECTED]
  Date: 2003/11/23 Sun AM 09:04:27 EST
  To: [EMAIL PROTECTED]
  CC: [EMAIL PROTECTED]
  Subject: RE: [Vserver] Rpms for vserver 0.27 (got it)
  
  [Sorry accidentally sent this half way through writing it.]
  
  Hi Tyrone,
  
  Unfortunately the documentation is still under development 
 so you'll 
  have to do a bit of work to understand how things function. 
 That said, 
  there is some documentation already, could you start from there and 
  let us know what you need explained more? Then perhaps we 
 can fill in 
  the details for others too.
  
  
  If you're not willing to get your hands dirty you might want to go 
  with Virtuozzo - the vserver project is not nicely polished like it 
  might be. But that's better, because you'll actually learn how 
  everything works, and so be able to fix it when it breaks!
  
  [Firstly: yes vservers work on RH9. You won't be able to 
 use FreeVPS 
  though, you'll have to use the standard vserver patches and 
 tools that 
  are available from linux-vserver.org. This means you can't 
 use a Red 
  Hat modified kernel but that shouldn't be a problem (I'm running my 
  vservers on RH9 with a vanilla kernel at the moment).]
  
  The Step-by-Step Guide[1] outlines the general steps required: 
  building a kernel, installing the vserver tools, then 
 setting up your 
  vserver.
  
  Unfortunately the details aren't there, so you might have 
 trouble if 
  you're not used to compiling your own kernel etc.
  
  The FAQ[2] contains lots of useful hints. For example it 
 explains that 
  you need to enable the CAP_SYS_RESOURCE capability for 
 vservers that 
  run BIND (that or recompile your BIND with --disable-linux-caps.)
  
  Also Jacques' paper on vserver[3] is awesome, it's worth a read 
  through.
  
  1. http://www.linux-vserver.org/index.php?page=Step-by-Step+Guide
  2. http://www.linux-vserver.org/index.php?page=Linux-Vserver+FAQ
  3. http://www.solucorp.qc.ca/miscprj/s_context.hc?prjstate=1nodoc=0
  
  Hope this helps. Let us know any problems you have.
  
  Cheers,
  Chuck
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
   [EMAIL PROTECTED]
   Sent: Sunday, 23 November 2003 4:52 PM
   To: [EMAIL PROTECTED]
   Subject: Re: [Vserver] Rpms for vserver 0.27 (got it)
   
   
   Can I set the vservers up on rh9, or will they only work 
 on rh7.3? I 
   want to run plesk6 in a vserver, and run into problems with bind 
   (capset failed), I currently tried this with Freevps on 
 RH7.3. What 
   will be the best way to go, without purchasing something like 
   virtuozzo. There's a site called (jvds.com) with 
 environment already 
   built, but I dont understand how to setup and manage them, if you 
   have any place information on where I can gain some 
 knowledge please
   respond. Thanks TyroneM, 

From: Jacques Gelinas [EMAIL PROTECTED]
Date: 2003/11/22 Sat PM 10:16:21 EST
To: Vserver mailing list [EMAIL PROTECTED]
Subject: [Vserver] Rpms for vserver 0.27 (got it)


   
  
  ___
  Vserver mailing list
  [EMAIL PROTECTED] 
  http://list.linux-vserver.org/mailman/listinfo/vserver
  
 
 ___
 Vserver mailing list
 [EMAIL PROTECTED] 
 http://list.linux- vserver.org/mailman/listinfo/vserver
 

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] make on vserver with mandrake-9.2

2003-11-20 Thread Charles Dale
Hi Jean!

Mm I think you're a little confused. The vserver package that you've
downloaded doesn't have anything to do with the kernel - that's the
userspace tools. And you don't need to compile them for yourself, because
you can download a binary RPM here:

http://www.13thfloor.at/vserver/s_release/v1.00/

Have you patched  recompiled the kernel?

BTW the compile failed below because gcc couldn't find libc, the fundamental
Unix library. You probably need to install the glibc-devel RPM.

Regards,
Chuck

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Jean Christophe
 Sent: Friday, 21 November 2003 1:06 AM
 To: [EMAIL PROTECTED]
 Subject: [Vserver] make on vserver with mandrake-9.2
 
 
 Hi,
 I never touch a kernel before but this is maybe one another 
 story. I am trying to install it on a mandrake 9.2 and I am 
 missing a how I 
 did it.
 
 I would like to know if I have to make some changes in the make 
 xconfig when I run the patch ?
 
 I have downloaded the vserver package.
 Pack it out
 make a cd /home/user/vserver-xxx
 write: make
 I get this:
 gcc -static -funsigned-char -Wall -g -O -DVERSION=\0.26\ 
 vreboot.cc -o 
vreboot
 
 /usr/bin/ld: cannot find -lc
 collect2: ld returned 1 exit status
 make: ***[vreboot] error 1
 
 Question:
 Do I have to make make ?
 Why do I have a problem ?
 What should I write when I have solved (if you can help me!) 
 to install 
 the vserver ?
 
 I can't find a vadmin for mandrake or others system than 
 redhat. Is it 
 true ?
 
 Thank's for your help,
 Regards
 -- 
 ;-) Jean Christophe
 [EMAIL PROTECTED]
 http://jeanchristophe.dyndns.dk
 registred Linux user nr: 326786
 
 ___
 Vserver mailing list
 [EMAIL PROTECTED] 
 http://list.linux- vserver.org/mailman/listinfo/vserver
 

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] vserver on Pentium 200 MHz MMX

2003-11-19 Thread Charles Dale
Hi Edy,

1. Grab either the v1.0 (stable) or v1.1.5 (development, release candidate)
releases from http://linux-vserver.org/. Further kernel patch development is
happening on linux-vserver.org, superseding the downloads on
www.solucorp.qc.ca

2. If you use the development (1.1.5) release you will need to use Enrico's
util-vserver tools rather than the original vserver tools. The
functionality is the same, different backend.

3. You need to post the error message that you got.

Cheers,
Chuck

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Edy Khang
 Sent: Thursday, 20 November 2003 2:37 PM
 To: [EMAIL PROTECTED]
 Subject: [Vserver] vserver on Pentium 200 MHz MMX
 
 
 Hi All,
 
 I hope someone able to answer my problem.
 
 I have one machine Pentium 200MHz MMX with 256 RAM and 10 GB 
 HDD. I am trying to install vserver (from www.solucorp.qc.ca) 
 on it with Debian Distro. I able to recompile the kernel 
 2.4.22ctx or 2.4.21ctx and able to installed it.
 
 When come to compile vserver-0.26, I always got error.
 
 Last time I able to installed on VMWare for testing with 
 vserver-0.22 and kernel 2.4.20.
 
 Any minimum requirement for vserver to run?

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] A night with a Wiki

2003-11-18 Thread Charles Dale
Hi Everyone,

The recent Christmas joviality spurred me into some doc writing. I started a
bit of reorganisation at good ol' linux-vserver.org.

I've created a Step-by-Step Guide. It's rather malnourished at the moment
(no it's not as simple as it might seem!), but remember that, unlike at the
zoo, you're welcome to feed it:
http://www.linux-vserver.org/index.php?page=Step-by-Step+Guide

Also I've added a News section to the main page. It would be nice if this
could not take up so much page real estate but the Wiki isn't so flexible on
layout.

Also I've created an Examples page. This is where you can help! Please add
details of how _you_ use vservers - VDS/security/backup/coffee/whatever:
http://www.linux-vserver.org/index.php?page=Examples

This will hopefully get people excited about the various possibilities.

In terms of site organisation I think we should aim towards a 3-way split:

1. Users - New
2.   - Current
3. Developers

New users need: 

* Project overview (quick introduction)
* Examples of vservers in action
* Step-by-Step VServer Setup Guide (goes through everything required to get
a functioning vserver)
* FAQ
* Links to getting further help

Users need:

* Release news, changelogs, download links
* FAQ
* Links/documentation on extra features like per-context quota  disk limits
* Man pages for the tools (or not?)
* Explanation of the vserver patch (maybe this is for developers)

Developers need:

(everything that users need, plus:)
* Their own area to discuss stuff (Syscall switch, todo lists).
* I don't know, I'm not a developer!

Most of these elements are coming together. We need to (1) fill out the
current docs, then (2) fit everything together nice and cleanly.

That's enough for tonight, goodnight!
Chuck =)

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: OT: Re: [Vserver] Vserver + OpenMosix...

2003-11-10 Thread Charles Dale
Well Dovecot is quite nice (dovecot.something.fi, hmm you better ask Googs). BUT
don't try it with mbox mailboxes. I got some pretty bad borkage. I also
couldn't understand how the chrooting worked - it failed for some of my users
but I couldn't work out why.

It's probably great if you run it with Maildirs. Actually UW-IMAP would probably
go quicker with Maildirs anyway...

Man UW-IMAP sucks! Some software just lasts too long! Hey I shouldn't be
complaining though, it's worked well enough, if I try and forget how bloody
slow it is...

Re: CHPOSX thing, it looks pretty cool. But I fail to see how it would be
particularly useful for a vserver running typical hosting tasks such as web
server  mail. Is Apache going to be very happy to be knocked out, find itself
awake on a different machine and then try to keep talking with the clients it
was talking to before?? I'd crash myself if I found open network sockets
disappearing all around me... Or is there something I'm missing?

Chuck

Quoting Dariush Pietrzak [EMAIL PROTECTED]:

  I now tried another imap daemon and it is pretty better and faster.
  Could please share a secret as to what another imap daemon?
 I've been trying to get rid of uw-imapd for years..
 
 -- 
 Key fingerprint = 40D0 9FFB 9939 7320 8294  05E0 BCC7 02C4 75CC 50D9
 Namagumi namagomi namagoroshi
 ___
 Vserver mailing list
 [EMAIL PROTECTED]
 http://list.linux-vserver.org/mailman/listinfo/vserver
 


___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Red Hat kernels (NPTL)

2003-11-06 Thread Charles Dale
Mm, bugger. I had tried 

# rpm -q --redhatrequires libdb.so.4
# rpm -q --redhatrequires db4

but not

# rpm -q --redhatrequires libdb-4.0.so

The latter gives the following list:

cyrus-sasl-2.1.10-4
db4-utils-4.0.14-20
gnucash-1.8.1-3
httpd-2.0.40-21
inn-2.3.4-2
libtabe-0.2.6-3
openoffice-libs-1.0.2-4
pam-0.75-48
perl-5.8.0-88
perl-DB_File-1.804-88
php-4.2.2-17
postfix-1.1.11-11
python-2.2.2-26
ruby-libs-1.6.8-5
sendmail-8.12.8-4
subversion-0.17.1-4503.0
webalizer-2.01_10-11
xemacs-21.4.12-6

Of those I currently have cyrus-sasl, pam, python  perl installed, but I
haven't noticed any problems with them. Although I did have some
difficulties with perl the other day, can't remember what went wrong
though...

Chuck

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Sam Stickland
 Sent: Thursday, 6 November 2003 9:04 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [Vserver] Red Hat kernels (NPTL)
 
 
 
 
  OK thanks Enrico.
 
  Fortunately there are only 2 RH9-included packages which 
 require db4 - 
  libtabe (Chinese lexicons library for xcin-2.5's bimsphone input 
  method. don't think I'll be needing that one) and XEmacs.
 
 Doesn't PAM also need db4?
 
 Sam
 
 ___
 Vserver mailing list
 [EMAIL PROTECTED] 
 http://list.linux- vserver.org/mailman/listinfo/vserver
 

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Vserver rpm errors

2003-11-06 Thread Charles Dale
Seeing as they work on with RPM 4.0 but not with 4.2 I assume it is some bug
in the version of RPM used to build them. Of all the similar failures I
found on Google, none of them required updating the client RPM, just that
the packages would be rebuilt (probably with an updated RPM).

That doesn't make things much clearer... Maybe Jack can tell us which rpm
he's using.

Chuck

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Herbert Poetzl
 Sent: Friday, 7 November 2003 3:05 AM
 To: Charles Dale
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Vserver] Vserver rpm errors
 
 
 On Thu, Nov 06, 2003 at 05:14:21PM +1100, Charles Dale wrote:
  OK rebuilt vserver-0.26 i386 RPM  SRPM available here until 
  Jack/Herbert update theirs:
  
  http://aphid.net/vserver/
 
 hmm, do you actually know why jacks RPMs fail?
 
 I suspect some digital signature they added to
 their packages, but I'm not sure ...
 
 TIA,
 Herbert
 
  They work for me, that's the only testing they've had though.
  
  Chuck
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of 
   Lucian Daniel Kafka
   Sent: Thursday, 6 November 2003 4:46 PM
   To: [EMAIL PROTECTED]
   Subject: [Vserver] Vserver rpm errors
   
   
   Hi.
   
   I'm getting RPM errors on all new vserver RPMs (using RH9):
   
error: vserver-0.26-1.i386.rpm: rpmReadSignature
   failed: region 
   trailer: BAD, tag 61 type 7 offset 48 count 16
error: vserver-0.26-1.i386.rpm cannot be installed
   
   Any ideas?
   
   
   Kind regards,
   
   Lucian Kafka
   www.conexim.com.au
   
   ___
   Vserver mailing list
   [EMAIL PROTECTED]
   http://list.linux- vserver.org/mailman/listinfo/vserver
   
  
  ___
  Vserver mailing list
  [EMAIL PROTECTED] 
  http://list.linux-vserver.org/mailman/listinfo/vserver
 ___
 Vserver mailing list
 [EMAIL PROTECTED] 
 http://list.linux- vserver.org/mailman/listinfo/vserver
 

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Red Hat kernels (NPTL)

2003-11-05 Thread Charles Dale
 On Thursday, November 06, 2003 10:28 AM NZT,
 Jan-Hendrik Heuing [EMAIL PROTECTED] wrote:
 
  It looks a bit like there is no straight way using redhat9 with 
  vserver, am I right with this conclusion ?
 
 Correct... that's assuming redhat9 uses NPTL, I'm pretty sure 
 it does but somebody correct me if I'm wrong...

Yes the RH kernel's got NPTL, but I'm using RH9 with a vanilla kernel fine
here. That's probably because I'm not using any threaded apps, and my main
vserver is running RH6.2 (legacy). There aren't many standard apps that
would be threaded, you'd be more talking Java/threaded Apache/etc, so NPTL
is only an issue if you actually use threaded apps.

Anyone know which standards apps threads?

As to the O(1) scheduler well that doesn't really matter too much - it just
means you'll get worse performance, everything should work fine without it.
Herbert's got O(1) scheduler patches for 2.4 if you want it though.

Also you could _possibly_ rip the RedHat NPTL patches out of their kernel
SRPM and apply them to a vanilla 2.4.22 kernel. Looking at the spec file
you'd need these patches:

  # threading backport and O(1) scheduler backport; 
  # last because they need to
  # be ifarch'd and touch a lot of code
  Patch11000: linux-2.4.20-o1-sched+threading-backport.patch
  Patch11001: linux-2.4.20-noresched.patch
  Patch11002: linux-2.4.20-futex-debug.patch
  Patch11003: linux-2.4.20-softlockup.patch
  Patch11004: linux-2.4.20-ptrace.patch
  Patch11005: linux-2.4.22-security-nptl.patch
  Patch11006: linux-2.4.20-ntpl-signal-delivery-fix.patch
  Patch11030: linux-2.4.20-noscheduler.patch
  Patch11031: linux-2.4.20-ptrace-hammer.patch
  Patch11032: linux-2.4.22-security.patch

Still, it would probably get ugly pretty quickly.

Anyone up for porting the v1.0 vserver patch to a Red Hat kernel? There'd be
lots of happy customers =) ...

Chuck

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] 1.0 release - I agree!

2003-11-03 Thread Charles
hi jack and chunk,

thanks for your info, the procedures are really great!

i followed and merged both procedures to create my vserver and it works!!
i'm using redhat7.3 inside redhat 7.3 (and will migrate to redhat 9 later),
i did some additional steps (for somebody new to vserver like me):

inside the vserver (after vserver new enter):
- remove the /etc/rc.d/init.d/halt
- remove the files/directories inside /proc
- remove the files/directories inside /dev except (full, null, pts, zero,
ptmx, random, urandom)   -- pls tell me which file i could further remove
or should be retained
- modify the /etc/fstab to /dev/hdv1 / ext2 defaults 1 1
- modify the /etc/mtab to /dev/hdv1 / ext2 rw 0 0
- remove the /boot
- remove unnecessary packages (like grub, apmd, etc)

questions:
how could i create a vserver by using link instead of copy so that i
could share the disk space?

cheers,
charles

- Original Message -
From: Jacques Gelinas [EMAIL PROTECTED]
To: Vserver mailing list [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 1:58 AM
Subject: Re: [Vserver] 1.0 release - I agree!


 On Fri, 31 Oct 2003 12:48:00 -0500, Charles wrote
  hi chuck,
 
  can you tell me how to make it work?
  do i need to modify the setting of the rh6.2 after rsync?
 
  i've got a rh7.3/rh9 host server, and like to run a rh7.3/rh9 vserver
  inside.
 
  thanks a lot!

 After copying, create a new configuration file in /etc/vservers

 Then enter the vserver

 vserver new enter

 Then turn off all services

 cd /etc/rc.d/init.d
 for serv in *
 do
 /sbin/chkconfig $serv off
 done

 Then turn only the services you need. Generally

 chkconfig crond on
 chkconfig syslog on
 chkconfig httpd on
 ...

 exit

 and start the vserver

 -
 Jacques Gelinas [EMAIL PROTECTED]
 vserver: run general purpose virtual servers on one box, full speed!
 http://www.solucorp.qc.ca/miscprj/s_context.hc
 ___
 Vserver mailing list
 [EMAIL PROTECTED]
 http://www.solucorp.qc.ca/mailman/listinfo/vserver
 ___
 Vserver mailing list
 [EMAIL PROTECTED]
 http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] 1.0 release - I agree!

2003-11-03 Thread Charles
hi matthew,

thanks for your hints!!  i will try it!

cheers,
charles

- Original Message -
 Ah, I see.  Well, you probably want your /etc files to be manageable on a
 per vserver basis, so that'd be bad to link.  Also, /var/log/* and
probably
 some or all of /var/lib should not be linked.  I think /usr is an
excellent
 candidate for linking.

 There are others on this list that have already tackled this issue so it
 shouldn't be hard to get a conclusive answer.  Additionally, the linuxconf
 vserver tools can automate this work, so it should be possible to simply
 look at that code to see what is and isn't linked.

 This would probably be a good reference item for the wiki.  If/when we get
a
 solid answer, we should probably post it there.

 Matthew Nuzum | ISPs: Make $200 - $5,000 per referral by
 www.followers.net | recomending Elite CMS to your customers!
 [EMAIL PROTECTED] | http://www.followers.net/isp



 - Original Message -
 From: Matthew Nuzum [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 10:48 PM
 Subject: RE: [Vserver] 1.0 release - I agree!


 
  questions:
  how could i create a vserver by using link instead of copy so that i
  could share the disk space?
 
  cheers,
  charles
 
  Charles, forgive me if I misunderstood your question, I am by no means
an
  expert at setting up vservers.  However, regarding this issue, if you do
  cp -al file1 file2 (that's lower case A L ) it simply makes a hardlink
 from
  file1 to the other.  That way, you can make links from the comfort of
your
  copy command.
 
  Matthew Nuzum | ISPs: Make $200 - $5,000 per referral by
  www.followers.net | recomending Elite CMS to your customers!
  [EMAIL PROTECTED] | http://www.followers.net/isp
 
 
 
  ___
  Vserver mailing list
  [EMAIL PROTECTED]
  http://list.linux-vserver.org/mailman/listinfo/vserver

 ___
 Vserver mailing list
 [EMAIL PROTECTED]
 http://list.linux-vserver.org/mailman/listinfo/vserver

 ___
 Vserver mailing list
 [EMAIL PROTECTED]
 http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver