RE: [Vserver] Problem with 64bit OpenSuSE
sent again replace attachements with links -Original Message- From: Manthey, Holger, NMI-DB Sent: Dienstag, 7. Februar 2006 13:55 To: 'Herbert Poetzl' Cc: vserver@list.linux-vserver.org Subject: RE: [Vserver] Problem with 64bit OpenSuSE -Original Message- From: Herbert Poetzl [mailto:[EMAIL PROTECTED] Sent: Dienstag, 7. Februar 2006 04:05 To: Manthey, Holger, NMI-DB Cc: vserver@list.linux-vserver.org Subject: Re: [Vserver] Problem with 64bit OpenSuSE On Mon, Feb 06, 2006 at 01:07:30PM +0100, [EMAIL PROTECTED] wrote: Dear all, i installed new Serverhardware with 64bit OpenSuSE Kernel 2.6.15-vs2.0.1.2-smp and util-vserver-0.30.210. where is the kernel from? how is it configured? I build the kernel from vanilla sources with oldconfig from original suse kernel, see kernel.config attached. I'm not sure if the attachements delivered to the mailinglist, so i put them on the web: http://vserver.csservice.de/kernel.config http://vserver.csservice.de/VSLPAPT2.out http://vserver.csservice.de/VSLPAPT3.out http://vserver.csservice.de/testme.sh.out http://vserver.csservice.de/vserver-info.out The testme.sh script works fine, but i can't start any virtual machine. I copied a working virtual machine from another host, but the start hungs. output of the latest script might give some clues ... i started the server using 'vserver --debug VSLPAPT2 start VSLPAPT2.out 21', see output attached in VSLPAPT2.out start process hang after: vserver VSLPAPT2 start ipv4root is now 1.2.3.4 127.0.0.2 New security context is 49152 is your guest 64bit too or 32bit? if 32bit, did you set the proper personality? The guest is 32bit. I set uts/machine to i686, but no personality. I tried again with personality=PER_LINUX_32BIT with same result (see VSLPAPT3.out) Kernel ist compiled with IA32_EMULATION=Y. vps -ef |grep VSLP root 13473 0 MAIN 13040 0 11:37 pts/0 00:00:00 /DBA/vserver/util-vserver/0.30.210/sbin/vnamespace --new -- /DBA/vserver/util-vserver/0.30.210/sbin/vserver nonamespace VSLPAPT2 start root 13477 0 MAIN 13473 0 11:37 pts/0 00:00:00 /bin/bash /DBA/vserver/util-vserver/0.30.210/sbin/vserver nonamespace VSLPAPT2 start root 13485 0 MAIN 13477 0 11:37 pts/0 00:00:00 /DBA/vserver/util-vserver/0.30.210/lib/util-vserver/lockfile /var/lock/vserver.DBAvserverutilvserver030210etcvserversVSLPAPT2.start up /tmp/vserver-lock.k13482 root 13562 49152 VSLPAPT1 13477 0 11:37 pts/0 00:00:00 /bin/bash /etc/rc.d/rc 3 root 13563 49152 VSLPAPT1 13562 0 11:37 pts/0 00:00:00 /bin/bash /etc/rc.d/rc 3 The same virtual machine works fine with 32bit OpenSuSE Kernel 2.6.15-vs2.0.1.2-smp and util-vserver-0.30.210. I couldn't kill the processes via 'vkill --xid 49152 -s 9 13562 13563' only a reboot helps here. Is the 64bit version not working in general, should i reinstall the server with an 32bit version? works fine on 64bit debian and 64bit madriva, so I'd say it must be something else ... I hope we'll find this something ;-) best, Herbert best regards Holger ___ 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] Problem with 64bit OpenSuSE
Dear all, i installed new Serverhardware with 64bit OpenSuSE Kernel 2.6.15-vs2.0.1.2-smp and util-vserver-0.30.210. The testme.sh script works fine, but i can't start any virtual machine. I copied a working virtual machine from another host, but the start hungs. start process hang after: vserver VSLPAPT2 start ipv4root is now 1.2.3.4 127.0.0.2 New security context is 49152 vps -ef |grep VSLP root 13473 0 MAIN 13040 0 11:37 pts/000:00:00 /DBA/vserver/util-vserver/0.30.210/sbin/vnamespace --new -- /DBA/vserver/util-vserver/0.30.210/sbin/vserver nonamespace VSLPAPT2 start root 13477 0 MAIN 13473 0 11:37 pts/000:00:00 /bin/bash /DBA/vserver/util-vserver/0.30.210/sbin/vserver nonamespace VSLPAPT2 start root 13485 0 MAIN 13477 0 11:37 pts/000:00:00 /DBA/vserver/util-vserver/0.30.210/lib/util-vserver/lockfile /var/lock/vserver.DBAvserverutilvserver030210etcvserversVSLPAPT2.startup /tmp/vserver-lock.k13482 root 13562 49152 VSLPAPT1 13477 0 11:37 pts/000:00:00 /bin/bash /etc/rc.d/rc 3 root 13563 49152 VSLPAPT1 13562 0 11:37 pts/000:00:00 /bin/bash /etc/rc.d/rc 3 The same virtual machine works fine with 32bit OpenSuSE Kernel 2.6.15-vs2.0.1.2-smp and util-vserver-0.30.210. I couldn't kill the processes via 'vkill --xid 49152 -s 9 13562 13563' only a reboot helps here. Is the 64bit version not working in general, should i reinstall the server with an 32bit version? best regards Holger ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Adding IPs without restarting the vserver
I'm running vservers on SuSE with Kernel 2.6.x and utils 0.30.207 1. How can i add an ip-address to an running vserver without restart? 2. My VServer Master hat 2 Interfaces eth0 and eth1, eth0 for the vserver and eth1 for backups, with an extra gateway. How can i use this gateway inside a vserver without adding an ip for each vserver? Normally all ip-requests has the source ip added by chbind command. Thanxs in advance Holger Manthey ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
AW: [Vserver] VServer utils vlan interface problem
Change content of file 'dev' to 'eth1' and add another file in same directory called 'name' with '4000'. regards Holger -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 24. Februar 2005 11:56 An: vserver@list.linux-vserver.org Betreff: [Vserver] VServer utils vlan interface problem Heyaz, I am trying to migrate to the new configuration method of util-vserver (0.30.196) and have come across the following problem: * vlan support is either broken, or changed in a way I am unable to understand (very probable as this is my first go at the new configuration method); an example: I create /etc/vservers/${SVRNAME}/interfaces/0/dev containing 'eth1.4000'. When I start ${SVRNAME} using vserver ${SVRNAME} start; it gives me the following output: ERROR: trying to add VLAN #0 to IF -:eth1 4000:- error: Invalid argument Cannot find device eth1.4000 SIOCGIFFLAGS: No such device Cannot find device eth1.4000 SIOCGIFFLAGS: No such device On a side note (no pun intended); why moving from a single file configuration to a configuration tree ? In my opinion this will make things more complicated than needed: A config file with comments containing examples say a thousand words and give the user a head start with his first install. The configuration tree (without examples) will cause for a steep learning curve; it takes time to find your way around the tree. If the idea is to put the configuration tree into a database I'm all for it, but ATM I can't see how the move will simplify things for the average vserver admin. Regards, Dennis ___ 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
AW: [Vserver] Routing Problem with VServer Kernel
I found the reason / solution of this problem ! I started the sshd with v_sshd wrapper. The chbind bound the sshd and all subprocesses to my ipv4root on eth0, so requests via eth1 interface fails. I configured /etc/ssh/sshd_config to listen only on one address and didn't use v_sshd, now everything works fine. regards Holger -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 21. Januar 2005 13:50 An: vserver@list.linux-vserver.org Betreff: [Vserver] Routing Problem with VServer Kernel Hi, i have a strange behavior of Kernel 2.6.10-vs1.9.3.17 on SuSE 9.2. The kernel uses the wrong route/interface (see below). If i reboot the system with original suse kernel or unpatched vanilla 2.6.10 with same configuration, the outgoing request uses the right interface eth1. This is not inside a vserver, the only change i did was applying the vserver-patch and enabling CONFIG_VSERVER_HARDCPU=y, there are no further iptable or policy routing defines. thanks in advance Holger Manthey My configuration: The 2 network devices eth0 inet addr:x.y.z.10 Bcast:x.y.z.127 Mask:255.255.255.128 eth1 inet addr:172.25.128.10 Bcast:172.25.128.127 Mask:255.255.255.128 and this is my routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.23.152.0172.25.128.1255.255.255.192 UG0 0 0 eth1 172.25.128.00.0.0.0 255.255.255.128 U 0 0 0 eth1 x.y.z.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 x.y.z.1 0.0.0.0 UG0 0 0 eth0 ping 172.25.128.1 PING 172.25.128.1 (172.25.128.1) 56(84) bytes of data. From x.y.z.10: icmp_seq=2 Destination Host Unreachable ___ 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] Limits
I run VServers on an SuSE 9.2 with Kernel 2.6.10-vs1.9.3.17 and util-vserver 0.30.196 There're several flags e.g. sched_hard, hide_mount, hide_netif, virt_mem, virt_uptime etc. to limit vservers. Is there any documentation for all flags, i only found Thorstens Mini Howto for cpu limits in this mailinglist. For the ulimits i need some help. I found a really good documentation at http://www-user.tu-chemnitz.de/~ensc/util-vserver/doc/conf/configuration .html but currently i'm not able to configure ulimits. Can anyone post a sample, how to configure ulimits (see below) on startup for the whole vserver? ulimit -m 262144 -n 512 -u 256 max memory size (kbytes, -m) 262144 open files(-n) 512 max user processes(-u) 256 best regards Holger ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
AW: [Vserver] Limits
Thank you, i got it. I traced the vlimit command. Valid keywords are: (cpu, fsize, data, stack, core, rss, nproc, nofile, memlock, as, locks) with a suffix (.soft, .hard, .min) To set a hardlimit of 256 for the number of processes use: echo 256 /etc/vservers/vserver-name/rlimits/nproc.hard To verify the result: cat /proc/virtual/xid/limit PROC:1 4 256 0 VM: 12852914 -1 0 VML: 0 0 -1 0 RSS: 5151779 -1 0 FILES:2929 -1 0 SOCK:1 1 -1 0 best regards Holger -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 4. Februar 2005 16:40 An: vserver@list.linux-vserver.org Betreff: Re: [Vserver] Limits On 2005.02.04 13:20:02 +0100, [EMAIL PROTECTED] wrote: I run VServers on an SuSE 9.2 with Kernel 2.6.10-vs1.9.3.17 and util-vserver 0.30.196 There're several flags e.g. sched_hard, hide_mount, hide_netif, virt_mem, virt_uptime etc. to limit vservers. Is there any documentation for all flags, i only found Thorstens Mini Howto for cpu limits in this mailinglist. For the ulimits i need some help. I found a really good documentation at http://www-user.tu-chemnitz.de/~ensc/util-vserver/doc/conf/configuration .html but currently i'm not able to configure ulimits. As that page says, ulimits only apply to 2.4 kernels. For 2.6 kernels use rlimits instead to limit the whole context. ulimits work 'as usual' within the context and limit processes. HTH Björn ___ 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
AW: [Vserver] Routing Problem with VServer Kernel
The routing works fine with an unpatched vanilla 2.6.10 kernel and the SuSE kernel, i tried both -Ursprüngliche Nachricht- Von: Herbert Poetzl [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 21. Januar 2005 20:04 An: Manthey, Holger, NMI-DB Cc: vserver@list.linux-vserver.org Betreff: Re: [Vserver] Routing Problem with VServer Kernel On Fri, Jan 21, 2005 at 01:50:17PM +0100, [EMAIL PROTECTED] wrote: Hi, i have a strange behavior of Kernel 2.6.10-vs1.9.3.17 on SuSE 9.2. The kernel uses the wrong route/interface (see below). If i reboot the system with original suse kernel or unpatched vanilla 2.6.10 with same configuration, the outgoing request uses the right interface eth1. This is not inside a vserver, the only change i did was applying the vserver-patch and enabling CONFIG_VSERVER_HARDCPU=y, there are no further iptable or policy routing defines. hmm, interesting ... will try to reproduce, maybe you could check if the behaviour is different with 2.6.10 vanilla, or maybe this is a vendor patch issue? thanks in advance Holger Manthey best, Herbert My configuration: The 2 network devices eth0 inet addr:x.y.z.10 Bcast:x.y.z.127 Mask:255.255.255.128 eth1 inet addr:172.25.128.10 Bcast:172.25.128.127 Mask:255.255.255.128 and this is my routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.23.152.0172.25.128.1255.255.255.192 UG0 0 0 eth1 172.25.128.00.0.0.0 255.255.255.128 U 0 0 0 eth1 x.y.z.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 x.y.z.1 0.0.0.0 UG0 0 0 eth0 ping 172.25.128.1 PING 172.25.128.1 (172.25.128.1) 56(84) bytes of data. From x.y.z.10: icmp_seq=2 Destination Host Unreachable ___ 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] Routing Problem with VServer Kernel
Hi, i have a strange behavior of Kernel 2.6.10-vs1.9.3.17 on SuSE 9.2. The kernel uses the wrong route/interface (see below). If i reboot the system with original suse kernel or unpatched vanilla 2.6.10 with same configuration, the outgoing request uses the right interface eth1. This is not inside a vserver, the only change i did was applying the vserver-patch and enabling CONFIG_VSERVER_HARDCPU=y, there are no further iptable or policy routing defines. thanks in advance Holger Manthey My configuration: The 2 network devices eth0 inet addr:x.y.z.10 Bcast:x.y.z.127 Mask:255.255.255.128 eth1 inet addr:172.25.128.10 Bcast:172.25.128.127 Mask:255.255.255.128 and this is my routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.23.152.0172.25.128.1255.255.255.192 UG0 0 0 eth1 172.25.128.00.0.0.0 255.255.255.128 U 0 0 0 eth1 x.y.z.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 x.y.z.1 0.0.0.0 UG0 0 0 eth0 ping 172.25.128.1 PING 172.25.128.1 (172.25.128.1) 56(84) bytes of data. From x.y.z.10: icmp_seq=2 Destination Host Unreachable ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver