[Vserver] [x86] 2.6.16-vs2.0.2-rc13 works with FC5 (and FC4)
Hi there, rc13 looks good on FC5/x86 (also FC4, tested before but no testme.sh avail). testme.sh of FC5 for the records: snip # ./testme.sh -Lv Linux-VServer Test [V0.15] Copyright (C) 2003-2006 H.Poetzl chcontext is working. chbind is working. chcontext 0.30.210 -- allocates/enters a security context This program is part of util-vserver 0.30.210 Copyright (C) 2004 Enrico Scholz This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. Linux 2.6.16-vs2.0.2-rc13 #4 Wed Mar 22 23:09:47 CET 2006 i686 Ea 0.30.210 273/glibc (DSa) v13,net VCI: 0002:0001 273 0376 (TbLgnP) ([EMAIL PROTECTED]) (gcc-Version 4.1.0 20060304 (Red Hat 4.1.0-3)) #4 Wed Mar 22 23:09:47 CET 2006 --- [000]# chcontext true chcontext --xid 45678 true [000]# succeeded. [001]# chcontext --xid 45678 egrep 'context|VxID' /proc/self/status [001]# succeeded. [011]# chcontext --secure --xid 45678 mknod /tmp/testme.sh.f14154/node c 0 0 [011]# succeeded. [031]# chcontext --hostname zaphod.14151 uname -a | grep -q zaphod.14151 [031]# succeeded. [101]# chbind --ip 192.168.0.42 true [101]# succeeded. [102]# chbind --ip 192.168.0.1/255.255.255.0 --ip 10.0.0.1/24 true [102]# succeeded. [201]# chcontext --xid 45678 --flag fakeinit bash -c 'test $$ -eq 1' [201]# succeeded. [202]# chcontext --flag fakeinit bash -c 'test $$ -eq 1' [202]# succeeded. --- [L01]# chcontext --xid 45601 bash -c 'true ' [L01]# succeeded. [D01]# chcontext bash -c 'true ' [D01]# succeeded. [L02]# chcontext --xid 45602 bash -c 'true | true' [L02]# succeeded. [D02]# chcontext bash -c 'true | true' [D02]# succeeded. [L03]# chcontext --xid 45603 bash -c 'true true' [L03]# succeeded. [D03]# chcontext bash -c 'true true' [D03]# succeeded. [L11]# chcontext --xid 45611 bash -c 'true /dev/null' /dev/zero [L11]# succeeded. [D11]# chcontext bash -c 'true /dev/null' /dev/zero [D11]# succeeded. [L12]# chcontext --xid 45612 bash -c 'true /dev/zero' /dev/null [L12]# succeeded. [D12]# chcontext bash -c 'true /dev/zero' /dev/null [D12]# succeeded. [L21]# chcontext --xid 45621 bash -c 'bash -c true ' [L21]# succeeded. [D21]# chcontext bash -c 'bash -c true ' [D21]# succeeded. [L22]# chcontext --xid 45622 bash -c 'bash -c false | true ' [L22]# succeeded. [D22]# chcontext bash -c 'bash -c false | true ' [D22]# succeeded. [L31]# chcontext --xid 45631 bash -c 'echo `ls`' [L31]# succeeded. [D31]# chcontext bash -c 'echo `ls`' [D31]# succeeded. snap -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Problem binding to 0.0.0.0
This is what we've got Linux svr26.xxx 2.6.15-1.1833_FC4.vs2.0.2.0.rc10.1 #1 Thu Mar 2 12:57:13 EST 2006 i686 athlon i386 GNU/Linux util-vserver-devel-0.30.210-4.fc4 util-vserver-build-0.30.210-4.fc4 util-vserver-lib-0.30.210-4.fc4 util-vserver-legacy-0.30.210-4.fc4 util-vserver-0.30.210-4.fc4 util-vserver-core-0.30.210-4.fc4 util-vserver-sysv-0.30.210-4.fc4 The problem is that v_httpd which calls /usr/lib/util-vserver/vsysvwrapper httpd start is binding to 0.0.0.0:80 on the host server so no vservers can start httpd If I stop v_httpd and start apache on a vserver then httpd starts on the vserver as 0.0.0.0:80 and neither the host nor any other vserver on the box can then start apache. If I set the listen and bind directives within the vservers httpd.conf file to set the vservers IP address and port 80 then apache fails with the error below even though there are no apache process running anywhere on the host or other vservers and nothing is bound to port 80 [crit] (98)Address already in use: make_sock: could not bind to port 80 Any clues on a fix, I've spent the best part of 2 hours trying to figure out what the problem is. Regards John ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Problem binding to 0.0.0.0
On Thursday 23 March 2006 14:43, John Lyons wrote: This is what we've got Linux svr26.xxx 2.6.15-1.1833_FC4.vs2.0.2.0.rc10.1 #1 Thu Mar 2 12:57:13 EST 2006 i686 athlon i386 GNU/Linux util-vserver-devel-0.30.210-4.fc4 util-vserver-build-0.30.210-4.fc4 util-vserver-lib-0.30.210-4.fc4 util-vserver-legacy-0.30.210-4.fc4 util-vserver-0.30.210-4.fc4 util-vserver-core-0.30.210-4.fc4 util-vserver-sysv-0.30.210-4.fc4 The problem is that v_httpd which calls /usr/lib/util-vserver/vsysvwrapper httpd start is binding to 0.0.0.0:80 on the host server so no vservers can start httpd If I stop v_httpd and start apache on a vserver then httpd starts on the vserver as 0.0.0.0:80 and neither the host nor any other vserver on the box can then start apache. If I set the listen and bind directives within the vservers httpd.conf file to set the vservers IP address and port 80 then apache fails with the error below even though there are no apache process running anywhere on the host or other vservers and nothing is bound to port 80 [crit] (98)Address already in use: make_sock: could not bind to port 80 You should set the listen adress on the host, not on the guests. Then start httpd with the regular init script. Any clues on a fix, I've spent the best part of 2 hours trying to figure out what the problem is. Regards John ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- Xavier Montagutelli Tel : +33 (0)5 55 45 77 20 Service Commun Informatique Fax : +33 (0)5 55 45 77 60 Universite de Limoges 123, avenue Albert Thomas 87060 Limoges cedex ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] host - guest network interface interaction oddity
I have situation I'm not sure I am interpreting correctly. The problem is that restarting a guest on a host (both Debian 2.6.15, default vserver capabilities) somehow manages to bring down one interface of the host as well, but only _on guest restart_, I cannot down the interface from inside the guest (which is as is should be). I have two addresses on the same subnet (one is a failover address) on the same card. ifconfig on the host gives: eth0 Link encap:Ethernet HWaddr 00:E0:81:27:C6:A6 inet addr:94.152.112.53 Bcast:94.152.112.255 Mask:255.255.255.0 RX bytes:1444026448 (1.3 GiB) TX bytes:1549809611 (1.4 GiB) Base address:0xc000 Memory:f200-f202 eth0:0Link encap:Ethernet HWaddr 00:E0:81:27:C6:A6 inet addr:94.152.112.55 Bcast:94.152.112.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Base address:0xc000 Memory:f200-f202 eth1 Link encap:Ethernet HWaddr 00:E0:81:27:C6:A7 inet addr:10.10.10.53 Bcast:10.10.10.255 Mask:255.255.255.0 ifconfig on the guest (as it is and should be): eth0 Link encap:Ethernet HWaddr 00:E0:81:27:C6:A6 inet addr:94.152.112.53 Bcast:94.152.112.255 Mask:255.255.255.0 guest:/# ifconfig eth0:0 down SIOCSIFFLAGS: Permission denied when I do a vserver guest restart on the host I get the following host:~# vserver guest restart Stopping periodic command scheduler: cron. Stopping MySQL database server: mysqld. Saving the System Clock time to the Hardware Clock... hwclock is unable to get I/O port access: the iopl(3) call failed. Hardware Clock updated to Thu Mar 23 14:25:48 CET 2006. Stopping deferred execution scheduler: atd. Stopping kernel log daemon: klogd. Stopping system log daemon: syslogd. Sending all processes the TERM signal...done. Sending all processes the KILL signal...done. Saving random seed...done. Unmounting remote and non-toplevel virtual filesystems...done. Deconfiguring network interfaces...done. Cleaning up ifupdown...done. Deactivating swap...umount: none: not found umount: /tmp: must be superuser to umount Not superuser. done. Unmounting local filesystems...umount: none: not found umount: /tmp: must be superuser to umount umount: /dev/hdv1: not found umount: /: not mounted done. mount: permission denied Rebooting... ifdown: shutdown eth0: Permission denied ifdown: shutdown eth1: Permission denied Cannot find device eth0:0 Cannot find device eth0:0 and from this point I no longer have eth0:0 on the host OR the default route which was going through eth0. Any ideas why this is happening (and where is the host digging up eth1/eth0:0 when the guest supposedly has nothing to do with them) ? Versions: Kernel: 2.6.15v VS-API: 0x00020001 util-vserver: 0.30.209; Jan 8 2006, 12:24:41 Features: CC: gcc, gcc (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5) CXX: g++, g++ (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5) CPPFLAGS: '' CFLAGS: '-Wall -g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time' CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 -funit-at-a-time' build/host: i486-pc-linux-gnu/i486-pc-linux-gnu Use dietlibc: yes Build C++ programs: yes Build C99 programs: yes Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts ext2fs Source: e2fsprogs syscall(2) invocation: alternative vserver(2) syscall#: 273/glibc ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Problem binding to 0.0.0.0
This is strange. Normally, a vserver is bound to one IP address and even a bind to 0.0.0.0 should be mapped to this single IP address. Agreed, we've been runnning vservers since v0.3 and never had a problem like this. What's the result of a netstat -tpln and chcontext --xid 1 netstat -tpln executed on the host (perhaps before and after starting httpd on the guest) ? Doesn't seem to suggest anything odd taht I can see. [EMAIL PROTECTED] 0]# netstat -tpln Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 0.0.0.0:36331 0.0.0.0:* LISTEN 1761/rpc.statd tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1744/portmap tcp0 0 195.69.95.46:80 0.0.0.0:* LISTEN 15724/httpd tcp0 0 127.0.0.1:5335 0.0.0.0:* LISTEN 2021/mDNSResponder [EMAIL PROTECTED] 0]# chcontext --xid 1 netstat -tpln Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 0.0.0.0:90000.0.0.0:* LISTEN 15392/perl tcp0 0 0.0.0.0:33060.0.0.0:* LISTEN 12671/mysqld tcp0 0 0.0.0.0:90020.0.0.0:* LISTEN 9928/perl tcp0 0 0.0.0.0:36331 0.0.0.0:* LISTEN 1761/rpc.statd tcp0 0 0.0.0.0:110 0.0.0.0:* LISTEN 12605/xinetd tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1744/portmap tcp0 0 195.69.95.46:80 0.0.0.0:* LISTEN 15724/httpd tcp0 0 0.0.0.0:21 0.0.0.0:* LISTEN 13440/pure-ftpd (SE tcp0 0 195.69.95.131:33814 0.0.0.0:* LISTEN 15288/xinetd tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN 15269/sshd tcp0 0 127.0.0.1:5335 0.0.0.0:* LISTEN 2021/mDNSResponder tcp0 0 195.69.95.230:250.0.0.0:* LISTEN 13303/sendmail: acc tcp0 0 0.0.0.0:25 0.0.0.0:* LISTEN 9800/sendmail: acce Stopped http on host box. Enter vserver, start httpd and I get the error [crit] (98)Address already in use: make_sock: could not bind to port 80 comment out the line in the vserver httpd.conf ...Listen 80 and BindAddress 195.69.95.131 start httpd within the vserver and it works but the httpd in the list below is now running within the guest vserver vs131 [EMAIL PROTECTED] 0]# vps -aufx | grep http root 16863 49179 vs131 0.0 0.9 77108 4404 ?Ss 22:59 0:00 /usr/sbin/httpd [EMAIL PROTECTED] 0]# chcontext --xid 1 netstat -tpln Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 0.0.0.0:90000.0.0.0:* LISTEN 15392/perl tcp0 0 0.0.0.0:33060.0.0.0:* LISTEN 12671/mysqld tcp0 0 0.0.0.0:90020.0.0.0:* LISTEN 9928/perl tcp0 0 0.0.0.0:36331 0.0.0.0:* LISTEN 1761/rpc.statd tcp0 0 0.0.0.0:110 0.0.0.0:* LISTEN 12605/xinetd tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1744/portmap tcp0 0 0.0.0.0:80 0.0.0.0:* LISTEN 16863/httpd tcp0 0 0.0.0.0:21 0.0.0.0:* LISTEN 13440/pure-ftpd (SE tcp0 0 195.69.95.131:33814 0.0.0.0:* LISTEN 15288/xinetd tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN 15269/sshd tcp0 0 127.0.0.1:5335 0.0.0.0:* LISTEN 2021/mDNSResponder tcp0 0 195.69.95.230:250.0.0.0:* LISTEN 13303/sendmail: acc tcp0 0 0.0.0.0:25 0.0.0.0:* LISTEN 9800/sendmail: acce All very strange John ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Problem binding to 0.0.0.0
On Thu, Mar 23, 2006 at 05:22:31PM -, John Lyons wrote: ipv4root: 835f45c3/00ff 017f/00ff ipv4root_bcast: why do you add 127.0.0.1 to the guest config? I didn't think we did but now you mention it, I've found that in the loopback interface on each vs. Having said that it's the same setup thats included on another host which doesn't have the 0.0.0.0:80 problems. the guest should never be able to bind host-only IPs, but OTOH, the host will not succeed to bind guest specific IPs when they are already bound HTH, Herbert John ___ 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
Re: [Vserver] [x86] 2.6.16-vs2.0.2-rc13 works with FC5 (and FC4)
On Thu, Mar 23, 2006 at 06:43:15PM +0100, Guenther Fuchs wrote: Hi there, on Thursday, March 23, 2006 at 6:23:17 PM there was posted: WH but then one thing happened I couldn't resolve: apache stopped WH working in cleartext when it had to load images!!! You're quite ight - I rechecked on the test system (FC5 Host now, FC4 guest) and found that crazy behaviour beeing true and even more suspicious: There's also several other files with other mime-types then text/html not beeing loaded. Very strange, true - so 2.6.16 doesn not really work on that 8-( Switching back to 2.6.15.6 is recommended therefore until this is investigated and solved. please if possible, pay a visit to the channel (#vserver @ irc.oftc.net) because I would like to investigate this issue a little more TIA, Herbert -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ 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
Re: [Vserver] [x86] 2.6.16-vs2.0.2-rc13 works with FC5 (and FC4)
Hi there, on Thursday, March 23, 2006 at 7:00:04 PM there was posted: HP please if possible, pay a visit to the channel HP (#vserver @ irc.oftc.net) because I would like HP to investigate this issue a little more Never had used IRC before - so could anyone send me a link to a good and easy to use client pls? -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] [x86] 2.6.16-vs2.0.2-rc13 works with FC5 (and FC4)
Hi there, on Thursday, March 23, 2006 at 6:43:15 PM I posted: GF There's also several other files with other mime-types then GF text/html not beeing loaded. Very strange, true - so 2.6.16 GF doesn not really work on that 8-( Maybe it's an adressing issue - I just realised, that a pic of 254 bytes (in phpmyadmin) loads well, so it could be an adress byte boundary problem. -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] [x86] 2.6.16-vs2.0.2-rc13 works with FC5 (and FC4)
On Thu, Mar 23, 2006 at 07:06:24PM +0100, Guenther Fuchs wrote: Hi there, on Thursday, March 23, 2006 at 7:00:04 PM there was posted: HP please if possible, pay a visit to the channel HP (#vserver @ irc.oftc.net) because I would like HP to investigate this issue a little more Never had used IRC before - so could anyone send me a link to a good and easy to use client pls? no problem, it should be fixed by this patch (which will be tested shortly) http://vserver.13thfloor.at/Experimental/delta-sendfile-fix04.diff it seems that 2.1.1 changes hitting mainline changes did make it into stable too ... HTH, Herbert -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ 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
Re: [Vserver] [x86] 2.6.16-vs2.0.2-rc13 works with FC5 (and FC4)
Hi there, on Thursday, March 23, 2006 at 7:53:55 PM Herbert posted: HP no problem, it should be fixed by this patch HP (which will be tested shortly) MP HP http://vserver.13thfloor.at/Experimental/delta-sendfile-fix04.diff No, unfortunately not. Neither has David's FC5 kernel RPM a fix in it. 8-( -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] [x86] 2.6.16-vs2.0.2-rc13 works with FC5 (and FC4)
On Thu, Mar 23, 2006 at 07:06:24PM +0100, Guenther Fuchs wrote: Hi there, on Thursday, March 23, 2006 at 7:00:04 PM there was posted: HP please if possible, pay a visit to the channel HP (#vserver @ irc.oftc.net) because I would like HP to investigate this issue a little more Never had used IRC before - so could anyone send me a link to a good and easy to use client pls? irssi is a nice command line client, xchat for x11 just google for irc client to find 100 more ... HTH, Herbert -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ 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
Re: [Vserver] [x86] 2.6.16-vs2.0.2-rc13 works with FC5 (and FC4)
On Thu, Mar 23, 2006 at 08:03:17PM +0100, Guenther Fuchs wrote: Hi there, on Thursday, March 23, 2006 at 7:53:55 PM Herbert posted: HP no problem, it should be fixed by this patch HP (which will be tested shortly) MP HP http://vserver.13thfloor.at/Experimental/delta-sendfile-fix04.diff No, unfortunately not. Neither has David's FC5 kernel RPM a fix in it. 8-( hmm, I missed a hunk in that version, could you give the rc14 a try and let me know if that works for you as expected? hopefully this is the last iteration of the sendfile fixes ... TIA, Herbert -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ 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] fc5 rpm-fake.so: vc_set_vhi_name(): function not implemented
hello I try to build a vserver on fc5 on my laptop ( under vmware workstation...) and I've got the following error: vserver test1 build -m yum --hostname=test.ac-montpellier.fr --interface test0=eth0:192.168.253.130/24 -- -d fc5 rpm-fake.so: vc_set_vhi_name(): Function not implemented rpm-fake.so: failed to initialize communication with resolver Maybe I am too impatient ? ./testme.sh Linux-VServer Test [V0.15] Copyright (C) 2003-2006 H.Poetzl chcontext is working. chbind is working. Linux 2.6.16-1.2064_FC5.vs2.0.2.0.rc13.1 #1 Tue Mar 21 14:32:21 EST 2006 i686 Ea 0.30.210 273/glibc (DSa) compat,v11,fscompat,v13,net,oldproc,olduts VCI: 0002:0001 273 0336 (TbLgnP) --- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. utilvserver came from dhozac repository jmp ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] fc5 rpm-fake.so: vc_set_vhi_name(): function not implemented
jean-marc pouchoulon wrote: hello I try to build a vserver on fc5 on my laptop ( under vmware workstation...) and I've got the following error: vserver test1 build -m yum --hostname=test.ac-montpellier.fr --interface test0=eth0:192.168.253.130/24 -- -d fc5 rpm-fake.so: vc_set_vhi_name(): Function not implemented rpm-fake.so: failed to initialize communication with resolver Maybe I am too impatient ? ./testme.sh Linux-VServer Test [V0.15] Copyright (C) 2003-2006 H.Poetzl chcontext is working. chbind is working. Linux 2.6.16-1.2064_FC5.vs2.0.2.0.rc13.1 #1 Tue Mar 21 14:32:21 EST 2006 i686 Ea 0.30.210 273/glibc (DSa) compat,v11,fscompat,v13,net,oldproc,olduts VCI: 0002:0001 273 0336 (TbLgnP) --- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. utilvserver came from dhozac repository jmp I'm aware of the problem, and I'm building a new kernel to see if that helps (if not, it should help with debugging it). -- Daniel Hokka Zakrisson GPG id: 06723412 GPG fingerprint: A455 4DF3 990A 431F FECA 7947 6136 DDA2 0672 3412 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver