Re: [Vserver] /dev/null: Permission denied

2005-12-06 Thread Cedric Veilleux
Hi,

 Whenever I start the vserver, init scripts accessing /dev/null (or any
 subsequent commands) returns Permission denied. Re-creating /dev/null
 outside the vserver does not help. ls -l shows this is a proper device
 file:

Ensure the partition were your vserver is located is not mounted with
the NODEV option.

The mount command in the host should show it if that is the problem. I
think a default debian install has all but the root partition mounted
with NODEV.. 


Cedric

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


Re: [Vserver] SSH login inside vserver not working

2004-03-15 Thread Cedric Veilleux




Hi,

 Thanks for the tip, I was not aware of it.

 I did finally fix this issue. The problem was missing /dev/pts support in the kernel. What's really strange is that ssh was working on the host system but not inside the vservers, but after enabling /dev/pts, everything worked.. 

Anyhow, thanks everyone for the help!


--
Cedric



On Mon, 2004-03-15 at 15:10, Sam Vilain wrote:

Use sshd -t -p NNN (where NNN is a port number) inside the vserver.

then ssh -v -p NNN yourhost

All will be revealed.  If you don't even see the daemon process do
anything, then you have a more basic firewalling / routing / etc
issue.  `tcpdump' and `netstat -plunt' are also highly recommended.

Sam.

On Sat, 13 Mar 2004 06:02, Cedric Veilleux wrote;

   Thanks for the hint, but unfortunately, even after restarting sshd, I
   still have the same problem.
   
   
   Thank you.
   
   --
   Cedric Veilleux
   
   
   On Fri, 2004-03-12 at 11:39, Gregory (Grisha) Trubetskoy wrote:
   
Have you tried restarting sshd after starting vserver:

# vserver blah exec service sshd restart
[or whatever the command may be for your Linux distro]

I'm curious if this is a similar problem to what I saw (see messages 
from
last week) with permission denied to pts/X (X is a number). For me
restarting sshd fixed the problem, though I still don't know what the
problem is and would like to have it solved.

Grisha

   
   
  





[Vserver] Which devices are required inside the vserver?

2004-03-15 Thread Cedric Veilleux




Hi,

 I am sorry for posting about such a basic issue. I do not use the vserver script to build the vservers, and I haven't found a clear answer to this question on the Wiki...

 So, what are the minimum devices required inside a vserver? This must be documented somewhere so if someone can point me in the right direction it would be very welcome.


Thank you!




--
Cdric








Re: [Vserver] SSH login inside vserver not working

2004-03-12 Thread Cedric Veilleux




Thanks for the hint, but unfortunately, even after restarting sshd, I still have the same problem.


Thank you.

--
Cedric Veilleux


On Fri, 2004-03-12 at 11:39, Gregory (Grisha) Trubetskoy wrote:

Have you tried restarting sshd after starting vserver:

# vserver blah exec service sshd restart
[or whatever the command may be for your Linux distro]

I'm curious if this is a similar problem to what I saw (see messages from
last week) with permission denied to pts/X (X is a number). For me
restarting sshd fixed the problem, though I still don't know what the
problem is and would like to have it solved.

Grisha







[Vserver] SSH login inside vserver not working

2004-03-12 Thread Cedric Veilleux
Hi,

After upgrading from an old-world 2.4.20ctx-17 to 2.4.25-vs1.26, I
can no longer login to an SSH server running inside a vserver.

Beside the change to the host server, nothing has changed with the
virtual server.

When login in with openssh's ssh client, it just hangs there
indifinately after asking for the password. When login with putty, I get
the message Server refused to allocate pty.

I tried to change the shell of the user of the vserver from bash to
sash (static shell), and I was able to login into a somehow broken
shell. Here's the output of me logging in and then typing the 'w'
command:


bash-2.05b$ ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
$ readline: warning: rl_prep_terminal: cannot get terminal settings
11:22:53  up 3 days, 20:43,  0 users,  load average: 0.00, 0.00, 0.00
   
  USER TTY  FROM  
LOGIN@   IDLE   JCPU   PCPU  WHAT
   $ readline: warning:
rl_prep_terminal: cannot get terminal settings


   I did some research on the rl_prep_terminal: cannot get terminal
settings error message, but didn't find anything.

   I checked if the proper devices were setup inside the vserver. I am
not sure what should be there, but I haven't changed anything and it did
work before the upgrade..

Content of /dev:

crw-rw-rw-1 root root   1,   7 Dec 21  2002 full
prw---1 root root0 Mar 10 14:31 initctl
srw-rw-rw-1 root root0 Mar 10 15:00 log
crw-rw-rw-1 root root   1,   3 Dec 21  2002 null
crw-rw-rw-1 root root   5,   2 Dec 21  2002 ptmx
drwxr-xr-x2 root root  192 Mar 11 01:18 pts
crw-r--r--1 root root   1,   8 Dec 21  2002 random
crw-rw-rw-1 root root   5,   0 Mar 10 14:55 tty
crw-r--r--1 root root   1,   9 Dec 19 01:07 urandom
crw-rw-rw-1 root root   1,   5 Dec 21  2002 zero


Content of /dev/pts:

crw--w1 root tty  136,   0 Mar 11 01:18 0
crw--w1 root tty  136,   1 Mar 10 23:59 1
crw--w1 root tty  136,   2 Mar 10 23:59 2
crw--w1 root tty  136,   3 Mar 10 15:38 3
crw--w1 root tty  136,   5 Mar 10 16:15 5
crw--w1 root tty  136,   6 Mar 10 16:15 6



   I have not granted any additional capabilities to the vserver.


   As you can see I have tried everything I could. I just can't figure
out what's the problem. Besides sshd, everything works flawlessly inside
the vserver (apache, syslog, cron, xinetd+vsftpd).


Any help greatly appreciated!

--
Cédric Veilleux

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


Re: [Vserver] vserver gentoo, anyone?

2003-11-19 Thread Cedric Veilleux
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On November 18, 2003 05:56 pm, ian douglas wrote:
 any 'gtochas' that you care to share up-front?
 
 I've never even seen gentoo, I'm just getting the ISO's onto my system now
 to burn CD's to see what the installation is like. A buddy of mine says
 that
 everything compiles from source as part of the installation and took
 his system an awfully long time (12+ hours) to get set up on a PIII-1Ghz;
 is that about right?

If you don't even know gentoo why do you want to use it in a vserver 
environment?

No matter which distro you use, you will need a fairly good knowledge of the 
inner working of the distribution you choose to get things running smoothly.. 

Now, regarding the actual topic, I've been using Gentoo hosts and vservers in 
production environment for web and email hosting (Main applications I run are 
Apache, Qmail, mySQL, Tomcat and postgresql). It does work very well.

I would recommend staying away completly from gentoo's init system inside the 
vserver. I did managed it to somewhat work but it must be customized quite a 
lot. Basically, all boot level scripts must be disabled, but most 
application's init scripts will depend on them, so you need to modify pretty 
much all the script you need. The /sbin/rc script also performs quite a few 
nasty stuff you don't want to be happening inside the vserver (mounting a tmp 
filesystem for example) so it needs to be tweaked a bit too, which makes 
things hard to maintain for such a simple task. After all, you only need an 
automated way to start a few processes...

I've recently come up with a much easier solution that works even better. The 
vserver script will execute /etc/rc.d/rc inside the vserver when starting 
and stopping it. This file is the rc script on RedHat I guess, and it does 
not exist on Gentoo.

So I created one from scratch which looks like this:

- -8---
#!/bin/sh

case $1 in

3)
/etc/rc.d/boot.sh
;;
6)
/etc/rc.d/halt.sh
;;

esac
- -8---


Then I created a script named boot.sh containing the commands to start the 
needed services and an halt.sh that stops them.



Hope that helps,

Cedric
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/uuY/89yRvHuHBtURAim4AKCChKXnqeQSma0+UC6QWJLhxlOq8ACeJrex
o85/uiKm/OOXRNzB2FyJXos=
=Ru1b
-END PGP SIGNATURE-
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver