[Vserver] Error message when starting a new vserver on Gentoo
Hi, I do run a couple of (Gentoo-based) vservers on Gentoo and after I created one with my little copy script (which did work fine up to now) I get the following error messages and the vserver refuses to start: # vserver pmiller start save_ctxinfo: symlink(/etc/vservers/pmiller,/etc/vservers/pmiller/run.rev/18): No such file or directory An error occured while executing the vserver startup sequence; when there are no other messages, it is very likely that the init-script (/sbin/rc default) failed. Common causes are: * /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build method knows how to deal with this, but on existing installations, appending 'true' to this file will help. Failed to start vserver 'pmiller' --- Any ideas what might cause this? The file /etc/vservers/username/run.rev/18 does not exist for any other vserver so why does he want the file now? Where must it point to? My version of util-vserver is 0.30.196 and my kernel is 2.6.11.6-grsec-vs1.9.5 with grsec not activated. Thanks a lot. Best regards, Werner ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] rlimit for memory usage
Hi, again because I didn't understand it: How can I give each of my vservers a maximum RAM limit of 64 MB? Thanks and bye, Werner ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] rlimit for memory usage
Hi, what would that do? I don't know about rlimits/ directory, but for vlimit it can look like: vlimit --xid X --data 1572864 Is there a way to limit each vserver's maximum memory usage to 64 MB? Thanks and bye, Werner ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Limiting a vserver's ressources
Hi, I do run 15 vservers on a AMD Athlon(tm) XP 3000+ with 1gig of RAM. Last night I tried to backup my system remotely using rsync and the system load did temporarly go up to 60 (and higher). Consequently my system was not available for several hours. Therefore I would like to know how I can restrict the ressources a vserver is allowed to use (e.g. ram etc.). Thanks. Best regards, Werner ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Limiting a vserver's ressources
Hi, I know this doesn't answer your question; I don't use that feature myself. I do use rsync for my backups, and what I've noticed is that the first time I do a backup it uses a lot of system resources, especially I/O, which causes a high server load. After that, rsync doesn't take too long and there's not much additional load. my rsync (4 million files) run did take very long and stopped the machine from responding. You may not need the limiting features unless you will be doing a full backup every day, and if you are, don't use rsync. I now need to do a full backup as this is a new server. Obviously I will do incremental backups in the near future but not now :-) Thanks. Bye, Werner. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] MySQL inside a vserver - permission denied?
Hi, I am trying to set up a vserver with MySQL etc. However when I try to start MySQL inside the vserver I get the following error message: / # /etc/init.d/mysql stop * Stopping mysqld... [ !! ] / # /etc/init.d/mysql start * Starting mysqld... [ ok ] / # mysql ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) In the logfiles I get the following error message: 050526 02:39:24 mysqld started 050526 2:39:24 Can't start server : Bind on unix socket: Permission denied 050526 2:39:24 Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ? 050526 2:39:24 Aborting I am using util-vserver 0.30.205-r1 on kernel 2.6.11.6-grsec-vs1.9.5 (Gentoo). What permissions do I have to grant to the vserver in order to make MySQL start successfully? Where do I have to set them? All the best thanks, Werner. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to copy/debug a vserver
Hi, I re-installed all the vserver stuff and rebuild my images, however my problem still exists. After starting a copied vserver I get: # vserver test321 start * Caching service dependencies... * Setting DNS domainname to network.local... [ ok ] * Starting syslog-ng... [ ok ] * Loading key mappings... Couldnt get a file descriptor referring to the console * Error loading key mappings /sbin/rc: line 250: rc_splash: command not found [ !! ] * Mounting network filesystems... [ ok ] * Starting vixie-cron... [ ok ] * Starting local... My system is Gentoo, and I am still using util-vserver X on 2.6.11-rc3-vs1.9.4. My USE flags do include vserver and portage overlay is set to /usr/local/portage (both inside the vserver). When I execute mc inside the vserver I also get mc subshell.c: couldn't open master side of pty pty_open_master: No such file or directory Any ideas what might cause this? Bene? Bye and thanks, Werner ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to copy/debug a vserver
Hi, fantastic deleting everything in /vservers/test321/var/lib/init.d/* did work. Great and thanks again. Just one small thing. When I start my new vserver I get the following error message: # vserver test321 start * Caching service dependencies... * Setting DNS domainname to network.local... [ ok ] * Starting syslog-ng... [ ok ] * Loading key mappings... Couldnt get a file descriptor referring to the console * Error loading key mappings /sbin/rc: line 250: rc_splash: command not found [ !! ] [ ... ] The vserver itself is up and running but this minor problem still exists. Has anyone ever seen this and if so, how to solve this? Thanks a lot and bye, Werner ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to copy/debug a vserver
Hi, yeah I actually used the Gentoo vserver-specific baselayout to build my vserver image in the first place?! Is there a way I can check whether I got the right baselayout installed in my vserver? Thanks and all the best, Werner. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to copy/debug a vserver (follow-up)
Hi, inside the vserver I am using the vserver-specific baselayout of Gentoo. Anyone got the same issue with this? Again as I said I get the following error message when starting my vserver on Gentoo: # vserver test321 start * Caching service dependencies... * Setting DNS domainname to network.local... [ ok ] * Starting syslog-ng... [ ok ] * Loading key mappings... Couldnt get a file descriptor referring to the console * Error loading key mappings /sbin/rc: line 250: rc_splash: command not found [ !! ] * Mounting network filesystems... [ ok ] * Starting vixie-cron...[ ok ] * Starting local... It works as espected, however those error messages appear. Anyone? All the best thanks, Werner. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] How to copy/debug a vserver
Hi guys, I am trying to copy an existing vserver using rsync and sed to modify all files necessary (by the way what files do I need to modify?). Unfortunately I can't start the new vserver afterwards. How do I debug this? All the best, thanks. Bye, Werner ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] How to copy/debug a vserver
Hi, apologies for not providing all information necessary. As I said I am trying to copy an existing vserver to create a new one. So I created a little perl script that basically does the following: - Copy the entire vserver (template) directory (/vservers/template) to a new one (/vservers/customer1) - Copy all the config files in /etc/vservers/template to /etc/vservers/customer1 - Edit /etc/passwd and /etc/shadow inside of /vservers/customer1 - Edit the IP, context number, nodename and name files in /etc/vservers/customer1 - Correct the /etc/vservers/.defaults/vdirbase/customer1 link to point to /etc/vservers/customer1 Optionally I will (whenever this thing works) edit /etc/hostname, sshd_config inside the new vserver etc. I am on Gentoo with version 0.30.205-r1 of the util-vserver and kernel 2.6.11-rc3-vs1.9.4. Whenever I try to start the new vserver I get: # vserver test321 start * Caching service dependencies... And that's it?! How can I debug this, how can I solve this? Any ideas? Thanks and all the best, Werner ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Traffic shaping
Hi, is there a way to use traffic shaping with vserver? So I would like to give 50 kb/sec or something to every vserver, is that possible? Thanks a lot and bye, Werner ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Performance of vserver
Hi, I would like to run 10-15 vservers on my system (AMD 2600+, 512 MB RAM) that should all have Apache, MySQL and PHP running. What about performance? Is this an issue? Do you guys use vservers for hosting customers? Thanks a lot. Bye, Werner ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Documentation on 1-line configuration files
hi guys, where can i find a documentation and explanation (and not only a list) of the new configuration schema of vserver? thanks a lot and bye, werner. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] /proc in vserver environment
Hi guys, I am trying to get my vserver running on Gentoo and when I try to start it I get the following error message: # vserver --verbose gentoo-template start ipv4root is now 10.0.5.1 ipv4root is now 10.0.5.1 New security context is 49153 * Checking all filesystems... /dev/hda1: clean, 36/24576 files, 11275/98248 blocks [ ok ] * Mounting local filesystems... mount: permission denied * Some local filesystem failed to mount [ !! ] grep: /proc/filesystems: No such file or directory grep: /proc/filesystems: No such file or directory * Activating (possibly) more swap... [ ok ] grep: /proc/cpuinfo: No such file or directory * Setting system clock to hardware clock [UTC]... * Failed to set system clock to hardware clock [ !! ] * ERROR: Problem starting needed services. * syslog-ng was not started. * Bringing eth0 up (10.0.5.1)... SIOCSIFADDR: Permission denied SIOCSIFFLAGS: Permission denied SIOCSIFBRDADDR: Permission denied SIOCSIFFLAGS: Permission denied SIOCSIFNETMASK: Permission denied [ !! ] * ERROR: Problem starting needed services. * sshd was not started. * ERROR: Problem starting needed services. * vixie-cron was not started. Error: /proc must be mounted To mount /proc at boot you need an /etc/fstab line like: /proc /proc procdefaults In the meantime, mount /proc /proc -t proc How can I make /proc available in the vserver environment? Can somebody provide with a sample configuration file for Gentoo and where to put that file? Thanks. Bye, Werner. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Vserver instead of chroot
Hi, I am working for a small ISP and we would like to give our users shell access on the systems. Therefore I thought of implementing a chroot environment but there is the problem that I need to copy everything into the chroot environment to make it work properly and that can be quite a mess. So my question is: Could I implement vserver like a chroot environment for every user without giving him or her root privileges? Can I implement vserver only with one public IP for the host and every guest vserver environment? Thanks a lot. Bye, Werner. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver instead of chroot
Hi Herbert, thanks for your mail. what kind of shell access? like a typical 'user' account? Yes, I meant normal user access. Is there a way NOT to give users root privileges in the vserver environment because I don't want the users to be able to locally install software, they should just be able to access e.g. mysql or passwd locally. So the user logs in via SSH, is able to do his or her stuff (e.g. edit his own web site or upload it via SCP) and e.g. change his or her local password or access local applications (e.g. tar, gzip, imagemagick etc.). Is that possible with vserver? Thanks a lot. Bye, Werner. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver