1289002145 J * theocrite ~Hubert@87.98.217.168 1289002308 Q * theocrit1 Ping timeout: 480 seconds 1289003236 Q * bonbons Quit: Leaving 1289003513 Q * ghislain Quit: Leaving. 1289005986 Q * Marillion Remote host closed the connection 1289008341 M * Bertl off to bed now ... have a good one everyone! 1289008346 N * Bertl Bertl_zZ 1289008758 Q * ktwilight Ping timeout: 480 seconds 1289012935 Q * Piet_ Ping timeout: 480 seconds 1289013579 J * Piet_ ~Piet__@04ZAAA04R.tor-irc.dnsbl.oftc.net 1289014849 Q * Piet_ Remote host closed the connection 1289015764 J * Piet_ ~Piet__@04ZAAA04W.tor-irc.dnsbl.oftc.net 1289025686 Q * Romster Quit: Geeks shall inherit properties and methods of object earth. 1289026348 Q * Piet_ Ping timeout: 480 seconds 1289026886 J * Piet_ ~Piet__@04ZAAA06M.tor-irc.dnsbl.oftc.net 1289027203 J * BenG ~bengreen@cpc6-aztw22-2-0-cust100.aztw.cable.virginmedia.com 1289029356 J * ktwilight ~keliew@91.176.13.171 1289030362 J * derjohn_mob ~aj@tmo-081-171.customers.d1-online.com 1289030367 J * ghislain ~AQUEOS@adsl2.aqueos.com 1289030872 J * BenG_ ~bengreen@cpc6-aztw22-2-0-cust100.aztw.cable.virginmedia.com 1289030879 Q * BenG_ 1289030885 Q * BenG Quit: I Leave 1289031656 J * petzsch ~markus@p4FF45D69.dip.t-dialin.net 1289033063 J * Romster ~romster@202.168.100.149.dynamic.rev.eftel.com 1289034327 Q * arekm Quit: reboot 1289035286 Q * petzsch Quit: Leaving. 1289035541 Q * derjohn_mob Ping timeout: 480 seconds 1289035577 J * arekm arekm@carme.pld-linux.org 1289036279 J * bonbons ~bonbons@2001:960:7ab:0:2c0:9fff:fe2d:39d 1289036555 J * petzsch ~markus@p4FF45D69.dip.t-dialin.net 1289037880 J * ktwilight_ ~keliew@91.176.23.209 1289038114 Q * ktwilight Ping timeout: 480 seconds 1289038815 M * arekm ok, new problem with netns in guest, 51701 lstat("/sys/class/net/eth-artwoj", 0x7fff298202b0) = -1 ENOENT (No such file or directory) 1289038821 M * arekm how to make such file visible to guest? 1289039362 Q * petzsch Quit: Leaving. 1289039801 J * derjohn_mob ~aj@88.128.158.100 1289039946 M * arekm setattr --~hide /sys/class/net/eth-artwoj -> /sys/class/net/eth-artwoj: Invalid argument 1289039950 M * arekm bah, that doesn't work 1289040272 J * petzsch ~markus@p4FF46584.dip.t-dialin.net 1289041999 J * ju ~ju@mail.lemanchotvolant.com 1289042004 M * ju hi 1289042125 M * ju I would like compile util-vserver for ARM, but I've a compilation pb... ./configure said "openpty could not be found" 1289042173 M * ju I've openpty.h on my system, with gnulib (and man openpty works) 1289042294 M * ju and "apt-file search openpty" answers only "gnulib" (and docs)... 1289042298 Q * derjohn_mob Read error: Connection reset by peer 1289042303 M * ju can you help me, please ? 1289042422 Q * petzsch Quit: Leaving. 1289042921 M * arekm look into configure and see what it is checking 1289043286 M * ju hum... configure does not said where he will look for libraries. But if I compile without the CC var, I've "checking for openpty in -lutil... yes" 1289043319 M * ju I used the sourcery arm cross compiler 1289044096 M * ju peanut: and with "./configure CC=../arm-2008q3/bin/arm-none-eabi- --includedir /usr/include/ --includedir /usr/local/include/" it's the same thing 1289044520 M * ju (oh, sorry peanut) 1289045904 J * petzsch ~markus@p4FF46584.dip.t-dialin.net 1289046051 N * Bertl_zZ Bertl 1289046055 M * Bertl morning folks! 1289046066 M * ju morning 1289046146 M * Bertl ju: what util-vserver version, and can you upload the config.log? 1289046293 M * ju Bertl: util-vserver-0.30.216-pre2921 1289046325 M * ju Bertl: http://pastebin.ca/1983585 1289046946 M * Bertl your gcc seems to behave strangely 1289047010 M * Bertl what does 'gcc --version' say 1289047029 M * Bertl and did you specify any options to ./configure ? 1289047043 M * DelTree \_o< ~ Coin ~ ju ~ Coin ~ >o_/ 1289047087 M * Bertl ah, I see, you tell ./configure your CC is ../arm-2008q3/bin/arm-none-eabi- ? which doesn't relly look right 1289047107 M * ju Bertl: I, I want to compile for ARM 1289047124 M * Bertl so you want to cross compile? 1289047143 M * ju yes :) 1289047168 M * Bertl well, that needs a lot more than what you have 1289047189 M * Bertl i.e. you need gcc, gcc++ and all the libraries for ARM 1289047210 M * Bertl are you sure that it wouldn't be simpler to start with compiling util-vserver on ARM first? 1289047268 M * Bertl basically you need to set up ARCH, CC, CPP, CXX and DIET to arm (tools) 1289047281 M * ju Bertl: I want compile it because, on Debian, util-vserver is in stable but not in testing or sid 1289047283 M * Bertl i.e. an ARM cross compile toolchain 1289047298 M * ju okay... 1289047361 M * Bertl something like: 1289047365 M * Bertl export ARCH=arm 1289047365 M * Bertl export CC=arm-linux-gcc 1289047365 M * Bertl export CPP=arm-linux-cpp 1289047365 M * Bertl export CXX=arm-linux-c++ 1289047365 M * Bertl export DIET=arm-linux-diet 1289047382 M * Bertl and make sure that the cross toolchain is available in the path 1289047460 M * Bertl you still will need to adjust the magic files containing the pathes for various helper tools manually and of course, make sure that everything required is installed on the target 1289047496 M * ju hum ok... I'll search that ! 1289047502 M * ju thanks :) 1289047552 M * Bertl IMHO a simpler approach would be to use kvm/qemu to install a debian for arm, and compile util-vserver (maybe as .deb) there (natively) 1289047642 M * ju Bertl: ok, I'll see 1289049087 M * Bertl daniel_hozac: recent util-vserver doesn't require the sched interface at all, right? i.e. we could make that a kernel config legacy option for now? 1289049122 M * arekm Bertl: can /sys files be unhidden in guest? 1289049139 M * Bertl just mounting sysfs should suffice 1289049165 M * Bertl i.e. there is no Linux-VServer specific sysfs hiding 1289049261 M * Bertl (but be aware of the security implications) 1289050109 J * Marillion ~dirk@178.63.150.30 1289051314 Q * hel Remote host closed the connection 1289051614 J * HarD`Life ~Love@188.247.74.169 1289051818 J * hel ~hel@porthos.lennackers.de 1289053209 Q * petzsch Read error: Connection reset by peer 1289053849 Q * harry Ping timeout: 480 seconds 1289053864 Q * HarD`Life autokilled: Dont spam users Mail support@oftc.net if you think this in error. (2010-11-06 14:31:04) 1289054347 M * daniel_hozac Bertl: right. 1289054791 M * Bertl ok, thanks! 1289054795 M * Bertl off for now ... bbl 1289054802 N * Bertl Bertl_oO 1289055852 Q * PowerKe Quit: hunter2 1289056441 Q * peanut Ping timeout: 480 seconds 1289057433 J * peanut ~peanut@cpe-24-58-59-60.twcny.res.rr.com 1289058519 N * Bertl_oO Bertl 1289059610 M * Bertl back now ... 1289062991 Q * FloodServ synthon.oftc.net services.oftc.net 1289063161 J * FloodServ services@services.oftc.net 1289063627 J * petzsch ~markus@p4FF46584.dip.t-dialin.net 1289065082 M * matti Hey Bertl 1289065908 J * ju_ ~ju@4be54-6-88-163-255-46.fbx.proxad.net 1289066025 Q * ju Ping timeout: 480 seconds 1289066508 Q * wishi Remote host closed the connection 1289066521 J * wishi ~wishi@kaze.crazylazy.info 1289068490 J * ju ~ju@mail.lemanchotvolant.com 1289068599 Q * ju_ Ping timeout: 480 seconds 1289069793 M * arekm daniel_hozac: hm, post-start isn't best choice for netns it seems but I don't see another option - there seem to be nothing run just after vserver guest existence begins 1289069945 M * daniel_hozac post-start is right after the guest is started. 1289070076 M * arekm with plain style post-start is works. Is there a better script? something like pre-start but just after vserver was created would be nice 1289070090 M * arekm but if I see corectly there is no such script being run currently, right? 1289070136 M * arekm current howto: http://www.pld-linux.org/Docs/Vserver#head-23617c6842424b1f0ff988634b39000b6137f60c 1289070153 M * daniel_hozac i don't understand what you mean. 1289070248 M * arekm daniel_hozac: I need to run "ip link set "eth-${VSERVER_NAME}" netns $pid" ideally just after vserver guest is started but before init there is run 1289070340 M * daniel_hozac yeah, when you're screwed. :-) 1289070356 M * daniel_hozac s/when/then/ 1289070392 J * derjohn_mob ~aj@80.187.233.49 1289070402 M * arekm screwed by doing that (aka stupid idea on my part) or because there is no such script that would give me this? 1289070429 M * daniel_hozac there are no hooks to do that with sysv. 1289070442 M * daniel_hozac just doesn't work with the way the utils work right now. 1289070483 M * arekm ok so I'm staing with plain style requirement and running ip .. netns from post-script 1289070562 M * daniel_hozac even that is racey though. 1289070574 M * arekm I'm aware of that but don't see better way :( 1289070583 M * daniel_hozac yeah, there isn't one. 1289070583 M * arekm (other than adding proper support to tools I guess) 1289070587 M * daniel_hozac right. 1289070963 M * arekm now I wonder about pid namespace - if also this is enabled which pid is supposed to be used in iproute netns on host huh? 1289071049 M * Bertl the 'use pid to manage spaces' design is flawed 1289071066 M * Bertl sooner or later mainline will discover that unique handles are required 1289071286 M * arekm somehow they deal with this (pid vs net) namespace issue currently, I wonder how 1289071308 M * Bertl you sure they do? 1289071336 M * Bertl well, maybe by unsharing the pid space at last 1289071340 M * Bertl *as 1289071370 M * arekm don't even know what that means 1289071643 Q * derjohn_mob Read error: No route to host 1289071706 M * daniel_hozac arekm: pid namespaces give you pids in all your parent namespaces as well. 1289071716 M * daniel_hozac different pids in each namespace. 1289071724 M * daniel_hozac so you have to find the right pid in the host namespace. 1289071806 M * arekm daniel_hozac: hm, then using context 1 for searching for the pid should work, right? (instead of entering into guest and doing pidof as I currently do) 1289071838 M * Bertl not if you use pid spaces 1289071871 M * Bertl i.e. you can find the host pid with that, but not the guest pid 1289071883 M * Bertl (which might be sufficient for your purpose) 1289071894 M * arekm I need host pid that reflects guest process 1289071915 M * daniel_hozac arekm: why don't you just echo the pid from the process? 1289071952 M * daniel_hozac e.g. sh -c 'echo $$; sleep 60 & disown %%' 1289071977 M * daniel_hozac or, hmm. not echo $$, but echo %% 1289072048 M * arekm didn't know disown. Trying 1289072081 M * arekm (posix shell doesn't know disown but well, can live with bash) 1289072103 M * daniel_hozac disown has basically the same effecct as nohup. 1289072146 M * daniel_hozac that particular snippet probably won't work... but it shouldn't be that hard to get it right. 1289072161 M * arekm daniel_hozac: hmm, I guess /bin/sleep not sleep because it would prevent sh from finishing 1289072175 M * arekm I mean using shell builtin sleep 1289072202 M * daniel_hozac shouldn't matter if you're backgroundning it. 1289072592 M * daniel_hozac bash -c 'sleep 60 & disown %%; echo $!' seems to work here. 1289072702 M * arekm did you try with vserver guest exec ? 1289072774 M * daniel_hozac yeah 1289072787 M * arekm here it doesn't return immediately 1289072792 M * daniel_hozac obviously it won't work for pid namespaces. 1289072803 M * daniel_hozac different bash version, perhaps? 1289072816 M * arekm 4.1.7 1289072824 M * daniel_hozac 3.2 here. 1289073151 J * hijacker_ ~hijacker@87-126-142-51.btc-net.bg 1289073624 M * arekm pid=$(vserver ${VSERVER_NAME} exec /bin/sh -c '/bin/sleep 60 & echo $!') 1289073645 M * arekm when run manually from guest it returns immediately. When run from post-start it waits until sleep ends 1289073742 M * daniel_hozac with the disown? 1289074024 M * arekm with and without - in both cases result is that it returns immediately when tried by hand and waits when from post-start 1289074058 M * daniel_hozac strange. 1289074093 M * Bertl I had some strange effects some time ago with somebody using a 4.1.x bash 1289074109 M * Bertl irc logs might contain more details 1289074319 M * arekm Anyway thinking about solving pid ns enabled case. Is there a way to run something like vps (so from host pid ns) but for single guest? vps right now on machines with big number of guests and number of running processes can take long time 1289074741 M * daniel_hozac we don't support pid namespaces. 1289074760 M * daniel_hozac util-vserver can't handle them. 1289074815 M * arekm oh, good then (I was that spaces/pid is handled and assumed it works) 1289074838 M * arekm s/was/saw/ 1289074844 M * daniel_hozac nope. 1289074910 M * arekm ended with doing vserver xyz exec pidof -s init . Updated howto http://www.pld-linux.org/Docs/Vserver#head-23617c6842424b1f0ff988634b39000b6137f60c 1289074930 M * daniel_hozac pidof init? 1289074934 M * daniel_hozac that's supposed to return 1... 1289074952 M * arekm + vserver artwoj exec pidof -s init 1289074953 M * arekm + pid=261729 1289074953 M * arekm + ip link set eth-artwoj netns 261729 1289074970 M * arekm hmm but after it starts it's 1 1289074976 M * daniel_hozac that looks like a bug... 1289074989 M * arekm or some other process with init name, checking 1289074993 M * daniel_hozac and also, racey. 1289075006 M * daniel_hozac 261729 looks way too big to bbe a pid too. 1289075037 Q * petzsch Quit: Leaving. 1289075124 M * arekm it's pid, other processes in that guest have huge pids, too 1289075181 M * Bertl well, if 32bit pids are enabled ... 1289075241 M * arekm anyway reverting, sometimes I get nice pid and ip netns works and sometimes I get 1 (as it should always happen) 1289075433 J * petzsch ~markus@p4FF46584.dip.t-dialin.net 1289075893 J * nkukard ~nkukard@41-133-202-230.dsl.mweb.co.za 1289076879 J * cuba33ci ~cuba33ci@111-240-218-39.dynamic.hinet.net 1289077206 Q * cuba33ci_ Ping timeout: 480 seconds 1289081372 J * ju_ ~ju@4be54-6-88-163-255-46.fbx.proxad.net 1289081483 Q * ju Ping timeout: 480 seconds 1289084130 J * ju ~ju@mail.lemanchotvolant.com 1289084235 Q * ju_ Ping timeout: 480 seconds 1289084573 Q * hijacker_ Quit: Leaving