[00:00] s/reason/explanation/ [00:00] I can just change the chattr flags if you like ;) [00:01] well, we probably need 2-3 tools ... [00:02] a) something to list/set the IUNLINK (that's what its called now) [00:02] b) soemthing to list/set xid (context assignment) [00:02] c) something to sum up (like du) but with respect to the xid [00:03] a and b could be one tool huh? [00:03] I'm not sure if we should 'just' adapt the fileutils ... [00:03] or write some 'specialzied' tools which can do more ... [00:03] depends if you can get the patches integrated, otherwise it'll be more hassle maintaining the patches [00:04] well, I'd say, 'NO CHANCE' for an integration ;) [00:04] exactly ;) [00:05] but on the other hand, it would not require to reinvent du/lsattr/chattr and do the bugtracking for this stuff twice ... [00:06] enrico? are you here? [00:07] yep [00:07] do you plan to add such tools to the util-vserver package? [00:07] I am about to write lsxid/chxid with a -R flag [00:08] ah okay, that could probably be used for the IUNLINK flag to, right? [00:08] s/to/too/ [00:08] it can be probably reused for setattr/showattr [00:09] could this become a multicall binary? [00:09] yes [00:09] great! [00:09] how much trouble would it cause you to add a xid based 'du -k' to that? [00:10] should be not very much, I guess [00:10] so basically while doing the lsxid -R summing up the file sizes and number of files ... [00:10] that would be perfect for the cqdlim setup ... [00:10] well, it actually could be part of that ... [00:11] I dont want to add to your task/todo list, but it would be a great help, I guess ... [00:15] Simon: you have to explain your vskel stuff to me, when you've got some time ... [00:15] it looks like it's accepted by the community, so it must be useful ;) [00:17] :) [00:26] nathan_ (~nathan@209-6-130-26.c3-0.sbo-ubr1.sbo-ubr.ma.cable.rcn.com) left irc: Ping timeout: 492 seconds [00:52] Simon, when you get back, I have another question for you. [01:50] Nick change: Doener -> doener_zz [01:55] JonB (~jon@129.142.112.33.ip.tele2adsl.dk) left irc: Quit: Client exiting [02:04] do I need to keep /lib/modules in a vserver? [02:04] WSU: nope [02:04] didn't think so [02:04] thanks [02:05] what are some of the common things I should take out? [02:05] kernel sources, development stuff (if not required) [02:06] tools for filesystems, and hardware detection, etc... [02:06] check [02:07] morning [02:07] morning! [02:08] hey herbert :) [02:08] vserver rules! :) [02:08] yeah, that's the spirit! [02:10] What is the correct configuration for sendmail in a vserver so that is not listen to external address? I use 'DAEMON_OPTIONS(`Address=127.0.0.1,Name=MTA')dnl [02:11] which works on real hosts, but with vservers I can telnet to port 25 still [02:14] well, you probably need to add 127.0.0.1 to your list of allowed ips ... [02:19] yes, this works but I used 127.0.0.2 [02:20] or is 'lo' interface local to vserver also? [02:20] nope, not yet ... [02:26] but jack is working on it, I guess ;) [03:23] kestrelw (~athomas@o2rosock0a.optus.net.au) joined #vserver. [03:57] kestrelw (~athomas@o2rosock0a.optus.net.au) left irc: Quit: brb [04:10] serving (~serving@213.186.189.86) left irc: Ping timeout: 499 seconds [04:11] Bert you still around? [04:11] yup [04:11] -k-, I have a prob, hopefully you can help me, I may have to talk to simon [04:11] I am using his vskel script [04:11] creating 5 vservers off the same skell [04:12] if I delete a file from inside a vserver that is global it only does it for that vserver [04:12] if I edit it, it edits it for all vservers [04:12] yeah, that is supposed to be so ... [04:13] but you should not be able to 'edit' shared files .. [04:13] yes, the delete [04:13] -k- [04:13] then why, how do I fix it [04:14] well you should check, why those files are editable at all ... [04:14] check with lsattr and showattr (from the vserver tools) [04:15] [root@localhost root]# /usr/local/lib/util-vserver/showattr /vservers/.skel/skel1/global/bin/zcat [04:16] / vservers/.skel/skel1/global/bin/zcat 00000000 [04:17] that is a file I deleted from on vserver. all good [04:17] I edited in another [04:18] and changed it in all [04:19] well, it should be immutable and iunlink ... [04:19] but it has none of those flags set, so the result is somewhat expected ... [04:20] -k- [04:20] so [04:20] if you do setattr --immutable --immulink [04:20] on that file, before you 'try' to modify it from a vserver, you will get the expected result ... [04:21] does it support recursive? [04:22] no .. but applying to all files would disable your vservers immediately ... [04:22] Well, I have global type things, like /bin that I want users to be able to delete [04:23] but not change accross every vserver [04:23] ie. user = root from inside a vserver [04:23] well, I guess the vskel tool should take care of setting those flags [04:24] Action: WSU pokes Simon [04:28] chattr -R +it $skelpath/global/* [04:29] that is what is done when the global is created [04:30] hmm [04:30] I think I fixed it [04:30] hmm, well it's not correct, and obviously didn't catch ... [04:30] yeah [04:30] I'm checking right now [04:34] hmm, what kernel/patch combo do you use? [04:34] somehow that +it didn't stick, or didn't happen [04:34] I just reran that command [04:34] and it is working as expected [04:35] WSU: what did you edit with? [04:35] just vi -b [04:35] deleted the elf header [04:35] did the inode change? [04:35] It was that the +it attributes were missing [04:36] were they missing before you edited it? [04:36] yes [04:36] Not sure why, they should have been there [04:36] but they weren't [04:37] # touch test ; chattr +it test ; lsattr test ; ls -i test [04:37] ----i------t- test [04:37] 1933666 test [04:37] # vi test [04:37] [:w!] [04:37] # ls -i test ; lsattr test [04:37] 1933668 test [04:37] ------------- test [04:37] you see what the editor does? [04:37] new inode [04:38] yeah, but when you look at test.orig [04:38] (if you have backup enabled) [04:38] you'll see that this is the shared inode ... [04:38] right [04:38] and a change to the 'new' inode, could in no case propagate to the shared inode ... [04:39] which was the case for WSU ... [04:39] hmm [04:39] let me see if I can re-create that [04:39] I would suspect the path argument in that script ... [04:40] a chattr +it will have no effect at all, when done on /tmp ;) [04:40] :) [04:40] all my global files have +it on them [04:41] and my skeleton-derived vservers have +it on the proper files [04:41] yes I think something must have happened when I merged/split the skel [04:41] and please, all users of chattr, keep in mind that +t will change soon ... [04:41] What will be required to migrate? [04:42] hopefully we'll have a tool by then, which is capable to convert an entire partition ... [04:43] but the +t flag actually is the notail flag, so we'll discontinue the use ... and switch to an unused flag ... [04:43] Question about using iptables in a vserver [04:44] answer: don't do it! [04:44] I thought that that was working? [04:44] yup it is, but it is a security leak ... [04:44] explain [04:45] well, there is no per vserver networking atm., so manipulating iptables, means access to the host iptables [04:45] granting NET_ADMIN to vserver is required to do this ... [04:46] ah ok, so that is what you were talking about earlier lo device being hsared [04:46] *shared [04:46] yeah, basically you have bind/conenct checks, but a 'shared' networking stack ... [04:47] Do you have a devel patch that supports this? [04:47] virtual networking or what? [04:48] yeah [04:48] I would like to be able to let each vserver have it's own iptables [04:49] you could always provide a web interface for iptables to each of your vserver clients [04:49] well, I was working on some virtual network device, but the netfilter guy wasn't able (or willing) to help me ... so this is on hold :( [04:49] the use of in vserver iptables is limited ... [04:50] -k- [04:50] accounting and firewalling seem to be the only valid usages [04:50] MrBawb, I was thinking of the same thing. [04:51] both can be done more efficiently on the host, and distributed to the vservers ... but anyway, if there is big demand for such things, work will continue ... [04:51] Bertl: after seeing the sourcecode, it seems to be a very good idea to let tools like ipppd run in an own vserver... [04:52] ensc: don't trust ipppd? [04:52] (and enable exec-shield, and/or use libsafe) ;) [04:52] dan: well nobody does ... [04:52] heh [04:52] how about running it as a user, chrooted? [04:52] the best choice is to run it on a separate box ;) [04:52] chroot() has nothing to do with security... [04:53] ensc: if its chroot()+setuid(!=0) then it does [04:53] thanks for the help [04:53] something booting from CD ... [04:53] gotta go [04:53] cu [04:53] Nick change: WSU -> WSU_away [04:54] MrBawb: afaik, ipppd must run as root [04:54] ensc: ah, thats much more trouble then [04:54] (he says obviously) [04:55] okay, any suggestions which proc entries could be required in a vserver? [04:55] and would be useful to have? any chance to test this? [04:57] I wonder how many people's /proc entries have random data from a hostile root in mind [05:00] hmm, no suggestions? well it's quite clean with 'self' + pids ... [05:14] dionv (~dionv@masq-van7ant.skynet.ca) joined #vserver. [05:14] hi dionv! [05:15] hi Bertl [05:32] does anybody need anything from me? [05:33] (because if not, I'm off to bed ;) [05:35] okay, have a good whatever ... [05:35] Nick change: Bertl -> Bertl_zZ [05:54] say (~say@212.86.243.154) left irc: Ping timeout: 499 seconds [06:08] dionv (~dionv@masq-van7ant.skynet.ca) left #vserver (Client exiting). [08:41] click (click@gonnamakeyou.com) joined #vserver. [08:42] vat (vat@pD9E374A3.dip0.t-ipconnect.de) joined #vserver. [08:42] huhu [08:42] vat [08:42] click :) [08:43] herb's sleeping again [08:43] hihi. [08:43] bertl_zz: when you wake up, do this in a vserver: [08:43] no problem at all ;-). [08:43] (in a script) [08:43] #!/bin/bash [08:43] cat /dev/random >/dev/null [08:43] ./test.sh [08:43] ---done--- [08:43] and check the load [08:44] this may need some fixing [08:44] ack. [08:44] preventing total overloads [08:44] i think.. the box will perhaps crash if it runs some days.. [08:44] *g* [08:44] vat: did you apply any of the quota patches? [08:44] uhm. no. [08:44] we are using image files [08:44] mounting loops? [08:44] not a bad idea. [08:44] jup [08:44] gave me one :D [08:45] how do you create them? [08:45] ;-) [08:45] mom [08:45] it must give some overhead tho? [08:45] we got a mk_vdisk [08:46] care to send it over? [08:46] shall i post it? [08:46] yeah [08:46] here? ;) [08:46] how long is it? [08:46] 9 lines [08:46] would work I guess [08:47] #!/usr/bin/perl [08:47] [08:47] $filename = @ARGV[0]; [08:47] $size = @ARGV[1]; [08:47] $size = $size * 1024 ; [08:47] print "Erzeuge Image Files ".$filename."\nDies kann einige Minuten dauern... "; [08:47] system("dd if=/dev/zero of=".$filename." bs=".$size." count=1024"); [08:47] print "fertig.\n"; [08:47] print "Erzeuge Filesystem...\n"; [08:47] system("mkfs.ext3 ".$filename); [08:47] --done-- [08:47] usage: ./mk_vdisk name size-in-bytes [08:47] as long as its vserver-related I'll think herb would love it [08:47] and then mounting it with ? [08:47] vat: why don't you use sparse files for the image file? [08:47] click: /etc/fstab [08:48] after that -> debootstrap woody directory [08:48] enter, base-config blahblah ready [08:48] of course vserverconfig file first *g* [08:48] youam: how do we set a decent vquota? [08:48] youam, well. we need work :p [08:48] click: erm... no idea [08:49] youam: well, thats why :D [08:49] click: i thought so after you "hinted" my this :) [08:49] course we could make a clean baseimage file and copy it when we need..senseless use of diskspace, which we do not have ;); [08:49] :) [08:50] hm, THAT gave me a fucking good idea [08:50] we've got space enough anyway [08:50] hehe ;) [08:50] scsi SAN's are nice [08:50] we are using raid1 for the vservers. [08:51] youam: got a better idea for restricitng size on the vservers, except making partitions for each one? [08:51] well.. with the image files, we know when a disk is full.. that's the clue on it. [08:52] vat: you're doing a mount -t loop blabla /file for each vs in fstab? [08:52] what about quotas on them? [08:52] f.e. /vserver/disks/vl02s27.disk /vserver/vl02s27 ext3 defaults,loop 0 0 [08:52] well.. quotas are not such a good idea, since we need to know, when diskspace will getting full ;) [08:53] i'm thinking more of vserver quota [08:53] hm. [08:53] youam: are they implemented now? [08:53] it's easier to use for us, maybe. [08:53] click: i have *no* idea about that, sorry... [08:54] vat: well, i was thinking more of having vservers with quotas in the fs [08:54] but imho the one-partition-for-each thingie is bad because you can't share your free space [08:54] youam, hm. why? [08:54] you know when the disk is full.. [08:54] that's enough to know ;) [08:54] why should I need free space on the vserver partitions? [08:54] mhm, true, but I've got shellusers that we want to restrict as well [08:55] giving them max 10mb / account [08:55] swap is on another partition, the hostsystem, too. [08:55] vat: you can't have soft quotas with fixed partition sizes [08:55] youam, yup ;). therefore we use imagefiles ;). [08:56] youam: got a good implementation on how to fix my problem then? [08:56] vat: same problem here [08:56] using two imagefiles [08:56] one with the basesys and the other with (in the vserver) /home [08:57] click: none that i'd know of, but... i never used quota yet and vserver only since tuesday, so i'm just an average guy trying to help by making clueless remarks [08:58] _vat (vat@pD9E373CA.dip0.t-ipconnect.de) joined #vserver. [08:58] <_vat> i hate 24hrs disconnects.. [08:59] <_vat> really. [08:59] <_vat> ;-) [08:59] youam: hehe ok, well, I'm a bit further than that [08:59] vat: downing storm in a few, relocating it to a loop-mount [08:59] <_vat> okay. [09:00] <_vat> don't forget to patch kernel drivers/block/loop.c at anytime.. [09:00] <_vat> else you will just have max 8 loop devices [09:00] got to recompile for that [09:00] well, going to 2.4.24 anyway [09:00] thus, not a big problem [09:00] <_vat> dunno why kernel developers changed that value to this.. when 255 loops are possible [09:01] mem-wide I believe [09:01] _vat: you can adjust that by specifying "max_loop" on insmod or /etc/modules.conf [09:01] <_vat> youam, i know. but making it *real* in the kernel should be better IMHO [09:01] if loop is a module, yeah [09:02] click: if you have it compiled in hard, it should work specifying it on the kernel command line [09:02] <_vat> youam, nah. i don't like command line options : [09:02] <_vat> :p [09:02] hm, true [09:03] vat: when creating the fiskfile. you could ask for a filename and size using bash instead of perl [09:03] much easier [09:03] perl's implementation is so much bigger [09:03] diskfile [09:04] hm, never ran mke3fs on images before [09:04] storm.gonnamakeyou.com.vdisk is not a block special device. [09:04] Proceed anyway? (y,n) y [09:04] correct? [09:05] <_vat> hm [09:05] <_vat> thnik so [09:05] <_vat> think so, even. [09:06] vat (vat@pD9E374A3.dip0.t-ipconnect.de) left irc: Ping timeout: 492 seconds [09:06] Nick change: _vat -> vat [09:08] brb. [09:09] WSU (~irc@c-67-164-197-32.client.comcast.net) joined #vserver. [09:09] Hi [09:09] is there a simple way to uninstall the util-vserver tools? [09:10] I want to do them with a different prefix [09:10] squirt (uob@bb220-255-104-186.singnet.com.sg) left #vserver. [09:11] vat: had to mount without blocksize etc [09:11] then it plays nicely [09:11] make uninstall [09:11] actually works [09:11] nice :) [09:11] heh [09:11] :D [09:12] it is usually a good thing to check before asking :) [09:21] this should be fun [09:21] added a 4gb loopdisk [09:38] | perlarnings -mstrict -mData::Dumper -e 'my $seen; while (<>) { if (! defined $seen->{$_}) {print $_; $seen->{$_}="YES";} }; print "FOO".Dumper %{$seen};' [09:38] ups. [09:40] vat: found out the 255.0.0.0 thing [09:40] vat: i forgot to add broadcast on the ifaces-list in the cfg [09:55] hehe [09:55] okay ;) [09:55] played broadcast this time :P [09:55] eh [09:55] <- dumb. [09:55] bzflag ;) [09:56] tyr to log in now [09:56] vat / vat [09:56] added a few ip's as well, making sure I can control my own domains and vhosts ;] [09:56] :) [09:56] HAHA [09:57] apt-get install vat [09:57] it's actually a program [09:57] jaja [09:57] heh [09:57] ganz gut doch [09:57] it's value added tax also ;) [09:57] :) [09:57] hihi :) [09:59] hm, dmesg: operation not permitted, als root :) [09:59] grsec ist ja ganz ok [10:22] arghs. [10:22] got ip accounting error :/ [10:23] mysql querys ran wild [10:23] *fixx* [10:29] WSU (~irc@c-67-164-197-32.client.comcast.net) left irc: Ping timeout: 499 seconds [10:37] kestrel (~athomas@dialup51.optus.net.au) left irc: Ping timeout: 499 seconds [11:08] serving (~serving@213.186.190.94) joined #vserver. [11:33] argh, argh, argh.... I've still got that fucking 16 ip-limit... Gotta fix that and recompile, and then restart *sigh* [11:47] serving (~serving@213.186.190.94) left irc: Read error: Connection reset by peer [11:58] serving (~serving@213.186.190.94) joined #vserver. [12:41] vat (vat@pD9E373CA.dip0.t-ipconnect.de) left irc: Quit: Leaving [12:47] youam (~youam@sc-gw.scientific.de) left irc: Read error: Connection reset by peer [13:16] suhcoolbro (~Suh@216-161-89-24.ptld.qwest.net) left irc: Ping timeout: 499 seconds [15:40] Simon (~sgarner@apollo.quattro.net.nz) left irc: Quit: so long, and thanks for all the fish [15:42] kestrel (athomas@dialup51.optus.net.au) joined #vserver. [16:12] micah_ (micah@micha.hampshire.edu) joined #vserver. [16:19] micah (micah@micha.hampshire.edu) left irc: Ping timeout: 499 seconds [16:20] ccooke (~ccooke@80.1.164.238) left irc: Remote host closed the connection [16:26] Doener_zZz (~doener@pD9E12CCB.dip.t-dialin.net) joined #vserver. [16:29] maja (maharaja@is.the.one.who.rules.at) joined #vserver. [16:29] re [16:30] ensc: you reported a bug in the ext2 dev libraries. can you post/query/... the correct line? i fail to resolve this issue :-/ [16:31] https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448 [16:33] doener_zz (~doener@pD9E12B97.dip.t-dialin.net) left irc: Ping timeout: 492 seconds [16:39] ccooke (~ccooke@80.1.164.238) joined #vserver. [16:50] nathan_ (~nathan@209-6-130-26.c3-0.sbo-ubr1.sbo-ubr.ma.cable.rcn.com) joined #vserver. [17:09] TamaLunch (~a@193.173.84.237) joined #vserver. [17:09] oy [17:09] Nick change: TamaLunch -> Tamama [18:28] Nick change: micah_ -> micah [18:29] wheee [19:21] mount -o bind is nice :D [19:58] Pony (~jon@129.142.112.33.ip.tele2adsl.dk) joined #vserver. [19:58] Nick change: Pony -> JonB [20:21] when having 1GB RAM is it better to enable high memory support, or to lose some MB? [20:21] Nick change: Bertl_zZ -> Bertl [20:21] oops, wrong # [20:22] no [20:22] well enrico, in most cases it's better to lose some memory, will be 992 left [20:22] (why is irsii reordering # list at each restart?) [20:22] ok, thanks ;) [20:22] or was it 962? [20:22] when we are at hardware questions: is HyperThreading support stable in Linux? [20:22] ensc: it is not the wrong channel [20:23] 962 i guess [20:23] Nick change: Doener_zZz -> Doener [20:23] at least the text in menuconfig says so ;) [20:23] ensc: HT is stable, but not as efficient as real SMP [20:23] Bertl: why is it better to lose memory ? [20:23] well actually depends on the MB and chipset [20:24] but most machines do not support High I/O and that support is a little flakey too [20:24] so the well known bounce buffers will kick in, memory management will get confused about the 'small' highmem area ... [20:24] and buffering will get worse ... [20:25] okay, have to get something to eat, brb (20min) [20:25] Bertl: can it not just stuff things in there that does not need buffers? [20:25] Nick change: Bertl -> Bertl_oO [20:25] Bertl_oO: what about 1280MB memory ? [20:37] I just enabled high memory.. the hardware supports it just fine :D [20:43] suhcoolbro (~Suh@63-224-250-137.ptld.qwest.net) joined #vserver. [20:45] Nick change: Bertl_oO -> Bertl [20:45] stubbsd (~stubbsd@217.206.216.194) joined #vserver. [20:46] JonB: well I'd say with 2.4.x 1.5GB is the minimum for Himem ... [20:46] I'm trying to run "expect" on a vserver and it say that there are no ptys avalible any ideas? [20:46] hmm, doesn't expect use ptm/pts as everything else now? [20:47] I have know idea, I will go looking. [20:47] s/know/no/ [20:47] try to strace it (V >= 4.5) [20:48] Bertl: if the MB doesnt support high I/O, why not just put programs in that memory ? [20:49] because there is no way to make 2.4 NUMA on i386 easily [20:49] and I guess this would even require some code not present in 2.6 ;) [20:50] Bertl: can we back up a little [20:51] Bertl: i suppose the cpu cache can cache the whole 32 bit address space? [20:52] sure no problem with that .. [20:52] numa? [20:52] 4GB on x86 and 64GB on PTE machines ;) [20:53] Bertl: so, it is the DMA that can not access the hole 32 bit address space ? [20:54] yup [20:54] bingo [20:54] dma has been a pita for along time now (as well as only 16 irq lines) [20:54] oh well, just flaws we need to live with :) [20:55] well actually 4 lines.. heh [20:55] Bertl: okay, why cant the kernel put programs, and other stuff in the part of the memory where the dma wont work, stuff that only the cpu reads (other than one copy from the hd to the memory, using dma, and one copy to the high place (i mean, is there a technical hinder for that ? [20:56] it impacts speed (double copy needed) [20:57] no basically not, but you have to define 'DMA' and 'MEM' area and there is no 'EXEC' area per se [20:57] so where driver allocate special DMA areas, programs won't [20:57] this results in copying DMA space to MEM space ... and back (bounce buffering) [20:58] Bertl: that could be avoided with the right coding in the kernel, right ? [20:59] Bertl: how can i know if my MB uses bounce buffering ? [20:59] jup, as I said 2.4 in 2.6 the bounce buffering is much better, as is the memory allocation [20:59] well simple, do some disk benchmarking with and without highmem .. [21:00] Bertl: well, there is vserver 2.6 useable ? [21:00] if the benchmarks drop on highmem enabled .. its not advised to enable it ... [21:00] Bertl: hmm, i guess i have to test that then [21:01] and please let me know the outcome, I'm always interested in such test results ... [21:01] Bertl: sure [21:03] well SMP kernel seems to work so far.. but then again i still need to actually add the 2nd cpu [21:03] Action: Tamama whistles [21:04] hmm Tamama you are testing what exactly? [21:04] everything i come across [21:04] so it varies :) [21:04] ah, okay, and you have a SMP system available? [21:05] as i said, i still need to actually add the 2nd cpu.. but other than that, yeah [21:05] (for testing I mean) [21:05] hmm, will this take long? [21:05] depends on my supplier [21:05] heh [21:05] ah okay, so you are waiting for that cpu to ship? [21:06] pretty much, cleaning up configs here and there [21:06] is this ia32? [21:06] http://www.webcomfort.nl/sysinfo/ [21:07] hey that system looks nice? but you don't do testing on that, or? [21:07] it will be used for testing as it will also be used for production after that [21:07] hmm, could you run some tests on that one? [21:08] got anything you want me to run? [21:08] yup sure, otherwise I would bother you ;) [21:08] heh [21:08] just pass an url or email it to floris@vangog.net (prefer url :)) [21:08] I have a hopefully fixed 1.2.2.2 to test ... [21:09] 1.2.2.2 what? [21:09] you mean a different kernel patch? [21:10] http://vserver.13thfloor.at/Experimental/delta-2.4.24-vs1.22-vs1.2.2.2.diff [21:10] yes .. should get rid of the last few races ... [21:10] that's always good [21:10] but how could i actually test if those really happen? [21:10] but haven't had a chance to test iton a real SMP amchine yet ... [21:11] there is a test application called killer from Jonathan Sambrook [21:11] Bertl: i thought you had a smp machine [21:12] yeah, I have one, but remote reboot isn't working properly yet ... [21:12] ah bugger [21:12] root@powerhouse:/usr/src/linux-2.4.23-vserver# cat ../delta-2.4.24-vs1.22-vs1.2.2.2.diff | patch -p1 [21:12] patching file fs/proc/array.c [21:12] patching file include/linux/vcontext.h [21:12] patching file kernel/exit.c [21:12] patching file kernel/fork.c [21:12] patching file kernel/sched.c [21:12] patching file kernel/vcontext.c [21:12] any changed config elements? [21:12] or can i just rebuild? [21:12] nope, just race fixes ... [21:13] dep & bzImage [21:13] did nathan show up recently? [21:13] hm no idea.. it is compiling now [21:14] i just have 1 issue with this machine [21:14] it was originally a p2-350 with just eth0 [21:15] now with this new mobo it all works, but uuh, it doesnt initialise the network.. heh.. [21:15] not at boot anyway [21:15] so i'll wait with activating that kernel till i get home ;) [21:16] np [21:16] just try to kill it with killer ... [21:17] and a continues bash loop, which read /proc/self/status ... [21:17] s/read/reads/ [21:17] nathan should know more, he did some testing a few days ago ... [21:18] ok i found the killer email [21:20] doesnt compile though as it can not find vutil.h [21:20] hmm that is an old version I guess ... let me see what I can find ... [21:20] http://www.paul.sladen.org/vserver/archives/200311/0403.html [21:20] i got it from there [21:23] http://vserver.13thfloor.at/Experimental/killer-01.c [21:23] http://vserver.13thfloor.at/Experimental/killer-02.c [21:24] killer-02.c: In function `void start_ctx(int)': [21:24] killer-02.c:51: warning: passing negative value `-1' for argument passing 2 of [21:24] `int sys_vserver(unsigned int, unsigned int, void*)' [21:24] killer-02.c:51: warning: argument of negative value `-1' to `unsigned int' [21:24] but seemed to compile [21:25] what is the difference between 1 and 2? [21:25] Bertl, I discovered where my problem was yesterday. [21:25] Nick change: WSU_away -> WSU [21:25] great, lets hear! [21:26] Tamama: let me make a diff, to see what's the diff-erence ;) [21:26] With vskel when you merge the skel into a vserver, so you can apply rpm's, etc. [21:26] Tamama: MaxFork limit ... [21:27] WSU: yeah sounds somewhat expected ... [21:27] and then when it is split back into the global and local dirs it doesn't do the chattr -R +it [21:27] on the global [21:27] jmm, but you showed me a line which actually should do that, right? [21:28] 02:30 < WSU> chattr -R +it $skelpath/global/* [21:28] that did it when the skel was created from the current machine [21:28] that needs to be done also when a merged skel is split. [21:29] hmm, okay, but isn't that 'just' moving around? [21:29] Bertl: since you make so many diffs.. :) how do you make a patch.diff of a whole source dir? ^^ [21:30] diff -NurpP --minimal dir1 dir2 [21:30] Bert, system_print("cp -a $skelpath/global/* $tmpvspath"); [21:30] system_print("cp -a $skelpath/local/* $tmpvspath"); [21:30] that is the merge code [21:30] thanks :) [21:31] WSU: hmm, isn't that a little flawed, or is it intentional to make a copy? instead of linking them? [21:32] I think that is intentional [21:32] this is system_print("mv $tmpvspath/usr $skelpath/global/"); [21:32] system_print("mv $skelpath/global/usr/local $skelpath/global/usr/etc $skelpath/local/usr"); [21:32] system_print("mv $tmpvspath/bin $skelpath/global/"); [21:32] system_print("mv $tmpvspath/sbin $skelpath/global/"); [21:32] system_print("mv $tmpvspath/lib* $skelpath/global/"); [21:32] #system_print("mv $tmpvspath/lib64 $skelpath/global/") if (-d "$tmpvspath/lib64"); [21:33] system_print("mv $tmpvspath/* $skelpath/local/"); [21:33] that is the split code [21:33] hmm, okay, guess Simon will have to explain it to me, when he's back ... [21:33] Yeah [21:33] ok running killer-02 now [21:33] I wanted to ask him about it [21:33] wow that was fast! [21:34] try to run it inside a vserver ... [21:34] i just ran it as root :D [21:34] (ah forget that) [21:34] vservers cant change contexts [21:34] ;) [21:35] so... how long will this run? heh [21:35] my fault, forget what I said .. I was thinking of the fork bomb part, but I forgot, that it does the switching too ... [21:35] well start a bash loop which bangs on /proc//status ... from ctx1 [21:36] chcontext --ctx 1 bash -c "while true; do cat /proc/*/status >/dev/null; done" could do the trick ... [21:37] that would crash it? (or not of course :) [21:38] cat: /proc/9739/status: No such file or directory [21:38] cat: /proc/9740/status: No such file or directory [21:38] i'll just wait it out [21:39] heh [21:39] johnny (~johnny@ip68-10-185-29.hr.hr.cox.net) joined #vserver. [21:39] ooh [21:39] finally :) [21:40] hi johnny! [21:40] i finally noticed the link on the solucorp page [21:40] to get to the new site.. and then the irc channel [21:40] lol [21:41] hmm... i looked for it on freenode [21:41] never heard of this oftc thing before [21:41] it's hard to keep track of all the irc servers.. [21:42] fortunately the irc clients do that for you ... [21:42] yeah.. but you still gotta know the network [21:43] hmm. i have my kernel patched.. and .29 from the original site installed... should i change ? [21:44] yup, use util-vserver isntead, we hat too many reports of failing 0.29 er tools [21:44] are the tools being rewritten to be more distro agnostic ? [21:45] i will never put an rpm based distro on my server ... [21:45] or anywhere else for that matter [21:45] util-vserver is maintained by Enrico, you can talk to him, he should be around ... [21:45] what's the differenence between the two packages on the new site? [21:46] johnny: you might be interested in vskel, it makes a copy of your host install as a template for all your vservers [21:46] hm i just did that that vserver name build :D [21:47] i use gentoo [21:49] the thing doesnt' start though.. [21:50] mail vservers # vserver template-gentoo_stage3 start [21:50] Starting the virtual server template-gentoo_stage3 [21:50] Server template-gentoo_stage3 is not running [21:50] ipv4root is now 66.118.189.179 [21:50] Host name is now template [21:50] New security context is 13 [21:50] Can't chroot to directory . (Permission denied) [21:50] taht's what it says [21:51] stubbsd (~stubbsd@217.206.216.194) left irc: Quit: Leaving [21:52] johnny: try that one and let me know what it returns ...http://vserver.13thfloor.at/Stuff/testme.sh [21:52] re [21:53] Bertl: today I tried autofs from outside, I was going to expect that it may break inside the vserver, worked like a charm though ;) [21:54] it wanted to run it [21:54] even mount showed the autofs with a pid (pid from main server though of course) [21:55] hmm, why not ... [21:56] I thought vserver may deny something :) [21:57] well, what is 'running' on the host isn't limited ... [21:57] what's in the experimental branch ? [21:57] 2.6 kernel stuff for example ... [21:57] btw 2.6.1 relased [21:57] cool, I'll update ;) [21:58] := [21:58] :) [21:58] ahh.. [21:59] it succeded [21:59] except for the last one [21:59] it has that exploit fixed :) [21:59] johnny: okay, that is fine for the stable release, you use stable, right? [21:59] mail vservers # ./testme.sh [21:59] Linux-VServer Test [V0.05] (C) 2003-2004 H.Poetzl [21:59] chcontext is working. [21:59] chbind is working. [21:59] Linux 2.4.20-wolk4.9s i686/chcontext 0.29/chbind 0.29 [J] [21:59] --- [21:59] [001]# succeeded. [21:59] [011]# succeeded. [21:59] [031]# succeeded. [21:59] [101]# succeeded. [21:59] oh, the wolk version ... [21:59] [102]# succeeded. [22:00] [201]# succeeded. [22:00] [202]# failed. [22:00] wolk... [22:00] hmm, do you need the wolk kernel? [22:00] very old ctx version [22:00] i thought 17 was current? [22:00] nope vs1.22 is current stable ;) [22:00] ctx1.22 ? [22:00] heheh [22:01] http://linux-vserver.org/ [22:01] johnny: versioning system changed [22:01] ahh [22:01] http://www.linux-vserver.org/index.php?page=ChangeLog [22:01] ok.. it confused the crap out of me that's all [22:01] read the changelog and whince ... [22:01] ahh.. it was from the solucorp page that i got that idea :( [22:02] tons of changes ;) [22:02] ya'll didn't go and mess it up did ya? [22:02] of course we did ... [22:02] i wonder what kernel sources i should merge it with.. [22:02] well, there are some bugs fixed, which where there since ctx-2! [22:03] one hopefully that works with grsec... [22:03] there are grsec patches available on the linux-vserver site [22:03] Bertl: grsec + vserver works? [22:03] hey bert [22:03] hey nathan! [22:03] great to read you! [22:04] yeanh.. but now i need a patchset... [22:04] sorry i havent been around, everything went nuts the past few days [22:04] a stable featureful patchset... [22:04] :) [22:04] even got that ... [22:04] oxymoronic a bit.. [22:04] Bertl, where do we stand? I never got to do any of the testing you had asked, i have time now though. [22:04] http://www.13thfloor.at/vserver/patchset/overview/ [22:04] didn't vservers get merged into 2.6 ? [22:05] good, Tamama is doing some testing right now .. or was? [22:05] it's still running.. [22:05] johnny: nope, but there are experimental 2.6 patches ... [22:06] nathan_: http://vserver.13thfloor.at/Experimental/delta-2.4.24-vs1.22-vs1.2.2.2.diff [22:06] this should eliminate _all_ know races (hope it works) [22:06] s/know/known/ [22:06] lol [22:06] that sysinfo url doesnt even show the load averages anymore ;) [22:07] heh, funny stuff ... [22:07] Bertl, ok i will test it [22:07] Bertl, including /proc/virtual right? [22:07] and give Tamama some hintw how and with what tools to test ... [22:08] nathan_: no that has no /proc/virtual ... vs1.22 [22:08] Bertl, ah right sorry [22:08] Bertl, interesting thing in grsec btw..looking for it... [22:08] well this killer only crashed on SMP right? [22:08] Tamama: you 'have' SMP with 1 Xeon HT .... [22:09] hm dunno if i have HT enabled :) [22:09] Processors 2 [22:09] Bertl, do you have grsec on hand? [22:09] could verify with cat /proc/cpuinfo ... [22:09] nathan_: yes, I think so, why [22:09] Bertl, CONFIG_GRKERNSEC_CHROOT_SYSCTL [22:10] well if the cpu has it, but the os doenst use it... or is that impossible? [22:10] hmm, check with cat /proc/cpuinfo [22:10] Tamama, you can disable ht, look at cpuinfo [22:10] doesnt say anything about it.. flags has ht but isnt that just capabilities? [22:11] Tamama, did you build with smp? [22:11] hint: uname -a [22:11] yes its a SMP kernel [22:12] http://breakmygentoo.net/archives/000090.html [22:12] hmm [22:12] cpuinfo gives 2 the same CPUs.. the mobo can have 2, but only has 1 currently [22:12] that looks good .. a bit old though.. [22:12] grep processor /proc/cpuinfo [22:12] Tamama: so your HT is enabled and used [22:13] same here btw :) [22:13] ok [22:13] but I have P4 2,8 HT [22:13] well im running that killer program and so far it didnt do anything bad... [22:13] Tamama, its killer in combination with proc access [22:13] i am running a little one-liner Bertl gave [22:13] Tamama, chcontext --ctx 1 bash, then in that shell while true; do cat /proc/*/status; done [22:13] oh what did he give you [22:14] the same ;) [22:14] ah i see it [22:14] yep thats fine [22:14] chcontext --ctx 1 bash -c "while true; do cat /proc/*/status >/dev/null; done" [22:14] Bertl, run it a few times :) [22:14] add an & there and run it like 4 times [22:14] the cat does not redirect ok though [22:14] since it all spews on my dispaly [22:14] heh [22:15] redirect 2>&1 [22:15] chcontext --ctx 1 bash -c "while true; do cat /proc/*/status > /dev/null 2>&1; done" & [22:15] should give no output [22:15] 2 [22:15] whoops [22:17] that gave some weird loop with a bad redirect [22:17] heh [22:18] hang on let me test this before i feed it to you [22:18] root@plain [/usr/src]# chcontext --ctx 1 bash -c "while true; do cat /proc/*/status > /dev/null 2>&1; done" & [22:18] [1] 20223 [22:18] New security context is 1 [22:18] hmm [22:18] right now i am not running the patched kernel.. i just want it going down ;) [22:20] running 5 of them [22:22] nathan_: maybe Tamama need your modified kilelr version, I uploaded the two I had http://vserver.13thfloor.at/Experimental/killer-02.c [22:23] well its not crashing here for well over an hour now i think [22:23] unpatched kernel at that [22:23] heh [22:23] unpatched means? [22:23] plain vs1.22 [22:23] yes [22:24] well with that quota 0.9 patch that is [22:24] but otherwise plain [22:24] Tamama, type dmesg, are there any kernel oops? [22:24] quota 0.9? [22:24] yep i see oops [22:24] ok there we go :) [22:24] Code: 8b 80 0c 01 00 00 89 34 24 c7 44 24 04 a7 ef 34 c0 89 44 24 [22:24] <1>Unable to handle kernel NULL pointer dereference at virtual address 0000010c [22:25] i thought the entire machine had to go down or something.. [22:25] heh [22:25] nope that feature was remove in 1.21 ;) [22:25] dang and i was soo longing forward to that :P [22:25] well, you can test 1.00 with it ;) [22:26] shouldn't take more than a few seconds then ... [22:26] hehe [22:27] ok so after the patched kernel there should be no more oopses [22:27] nathan_: grsec: hmm, sounds interesting but only sysctl ... [22:28] Tamama: yes, 1.2.2.2 should fix any proc races ... [22:32] Bertl, yea thats only what i wanted you to look at [22:32] I ahve a pretty good solution for this proc issue ;) [22:33] but you can help me with that ... [22:34] last time we spoke you said you were going to lock it down the VX privs? [22:34] or do you have something new? [22:35] yup new ... [22:35] actually old, but a new kind of usage ... [22:44] nathan_: http://vserver.13thfloor.at/Experimental/delta-2.4.24-vs1.3.4.1-vs1.3.4.2.diff [22:47] hmm interesting [22:47] so everything gets defaulted to VX_ADMIN? [22:48] yup, what's still needed is a sane default for some entries, and an IOCTL to change/modify that ... [22:48] currently the proc is _very_ clean: , self thats it [22:48] an ioctrl to change what? the sane entries? [22:50] the VX_ADMIN default to 0 or VX_IDENT for example ... [22:50] for specific entries in the procfs ... [22:50] ah [22:51] Tamama, are you going to stress the fixed one btw? [22:51] so if you decide that /proc/scsi is safe ;) then just add that too ... [22:52] nathan: yeah but i need to reboot for that [22:52] k [22:52] and somehow with the new system after i reboot the config does not start up my ethernet card :S [22:52] so i'll wait till i get home [22:58] Tamama: when will you get home (really just a question) ? [22:59] hour orso [22:59] great, so well have some results till midnight CET ... [22:59] well before hopefully heh [22:59] it's 21:00 CET... [23:01] bah i'll go home now [23:01] :D [23:01] ttyl [23:01] Tamama (~a@193.173.84.237) left irc: [23:12] hio [23:13] hio rmoriz! [23:13] is there already a fixed version available? [23:13] for that procfs issue? [23:14] well, no, but you can help if you want a fixed version in the next few hours ;) [23:15] i'm such a bad programmer :( [23:15] I can assure you, it has nothing to do with programming ... [23:15] even worse. [23:16] you can just say, you don't want to help, and it's okay ... 8-) [23:16] ive got so many different kernel directories bert, i cant remember whats what anymore :( [23:17] nathan_: you should start naming them ... [23:17] and if possible use hard-links to reduce the size ... [23:17] i call them berttry1,2,3 :) [23:17] i use make-kpgk on debian :) [23:17] hehe [23:18] make-kpkg even [23:19] Bertl, while this one builds, do you think the procfs patch you just gave me and the current devel is stable for production? [23:19] ill just rip out /proc/virtual [23:20] well yeah, basically it should be .. 1.3.5 at least ... [23:20] does 1.3.5 address the /proc/virtual issue? [23:20] I hope that I get the /proc/virtual fixed, yes, but I'm not sure it will be in 1.3.5 [23:21] ok but /proc/virtual is the only real (known) outstanding stability issue? [23:21] maybe I'll just rip it out of 1.3.5 as you suggested [23:21] AFAIK, yes [23:21] k [23:21] i gotta get this dual up, having the two boxes is costing me a small fortune. [23:21] Bertl: i want to help but i'm not qualified :( [23:21] micah_ (micah@micha.hampshire.edu) joined #vserver. [23:22] im still seeking a dual so i can test locally and put my server to use [23:22] rmoriz: hmm, why do you think so? [23:22] im considering just building one [23:22] rmoriz, can you build and run a kernel? and once booted run a few programs/scripts? :) [23:22] that's possible of course nathan_ :) [23:22] rmoriz: so do you ahve a running vserver yet? [23:22] rmoriz, then you are more than qualified :) [23:22] Bertl: on my development box at home. yes [23:23] perfect, that would be more than sufficient, to get the proc issues fixed ;) [23:23] i had some troubles last night with the until-vserver [23:23] but i don't think it's a problem with util-vserver [23:23] i was only able to start one vserver. it was not possible to kill this one clearly or start another one clearly [23:24] i'll check it now. [23:24] http://vserver.13thfloor.at/Stuff/testme.sh [23:24] give this a spin, and let me know what it reports ... [23:24] (on the host) [23:26] Bertl, btw was the nproc issue addressed? [23:26] Bertl: so who is that test made? [23:27] s/so/for/ [23:29] micah (micah@micha.hampshire.edu) left irc: Ping timeout: 492 seconds [23:31] nathan_: yup nproc is fixed with http://vserver.13thfloor.at/Experimental/patch-vs1.3.4-fix01.diff [23:31] Bertl: ok. wait :) [23:32] Bertl, ah, awesome [23:32] Bertl, is the state of bochs smp unusable as i suspected? [23:33] i still want to help test but once i put this box into production i wont be able to reboot it like i have been [23:33] app-103:~# ./testme.sh [23:33] Linux-VServer Test [V0.05] (C) 2003-2004 H.Poetzl [23:33] chcontext failed! [23:33] chbind is working. [23:33] Linux 2.4.24-vs1.3.4 i686/chcontext 0.27/chbind 0.27 [E] [23:33] --- [23:33] app-103:~# [23:36] hmm, that _is_ interesting, what patches? [23:38] 1.3.4 + your fixme patch + delta-2.4.24-vs1.3.4.1-vs1.3.4.2.diff [23:38] okay, give me a second ... [23:38] Bertl, your chcontext test failed on my box too iirc [23:38] but there was a vserver running before starting the test [23:38] but chcontext did work [23:39] rmoriz, chcontext --ctx 1 cat /proc/self/status [23:39] ok fresh reboot, no vsever running, same thing. [23:39] ahh yes, I can reproduce that ... [23:39] Action: Bertl is looking for the cause ... [23:40] nathan_: http://codernaut.org/result [23:40] Bertl, i think its your test, his output looks ok? [23:40] Bert what is the tool to reboot a vserver from inside it? [23:40] depends, if you are using the reboot helper, then reboot -f [23:41] As of the moment I am not. How would I go about enabling it? [23:41] stable or development release? [23:41] stable 1.22 [23:42] enrico tool latest [23:42] okay, doesn't include it, you ahve to use the rebootmgr ... [23:42] there is a howto on jacks pages, and something on linux-vserver IIRC [23:42] will check [23:42] thanks [23:43] rmoriz: hmm, I know why testme.sh is failing ... funny thing, but I don#t know if your issues are related ... [23:43] i can't run vps, too [23:44] Error: /proc must be mounted [23:44] well, let me fix the testme.sh and we'll test again ... [23:44] proc is mounted on root [23:44] s/root/host/ [23:44] hmm, ro? [23:44] no rw [23:44] hmm, so that is unrelated then .. good ... [23:45] okay let me fix the test.sh .. we'll see then ... [23:48] sched.c: In function `goodness': [23:48] sched.c:169: `ctx_ref_lock' undeclared (first use in this function) [23:49] did i patch wrong? [23:49] Action: nathan_ looks [23:49] hmm, maybe I missed something?! [23:49] 2.4.24->patch-2.4.24-vs1.22.diff->delta-2.4.24-vs1.22-vs1.2.2.2.diff [23:50] hmm, should work ... let me check ... but first testme.sh ;) [23:50] wee tons of testig [23:50] 1.3.5 must be good then :) [23:50] #ifdef __ASM_SPINLOCK_H [23:50] extern rwlock_t ctx_ref_lock; [23:50] #endif [23:50] I hope it will be the best version ever ;) [23:51] yeah, I know, it's a hack &-) [23:51] __ASM_SPINLOCK_H doesnt seem to be defined in my tree when building [23:51] Bertl: it only can get better :-P [23:51] thanks! [23:51] its already great so :) [23:51] # CONFIG_SMP is not set [23:51] helps if i turn on SMP i imagine [23:52] but looks like it doesnt build non-smp? [23:52] yeah, for now, just turn it on ... [23:52] yep i meant too, didnt realize it was off [23:52] this saved me a reboot though :) [23:52] that #ifdef is crap and will go away ... as soon as I'm sure it works ... [23:54] rmoriz: okay, reload the testme.sh [23:55] 201, 202 is expected to fail on 1.3.4++ [23:58] rmoriz: well, I fixed the result of 201,202 too ... so nothing should fail anymore ... [23:59] re [23:59] all working/fine [23:59] okay, this means that your kernel, and the core tools are working perfectly ... [23:59] hm [00:00] --- Sat Jan 10 2004