1495672702 J * fstd_ ~fstd@x4db55792.dyn.telefonica.de 1495672716 Q * fstd Read error: Connection reset by peer 1495672719 N * fstd_ fstd 1495675641 J * misc-- ~asdf@123-243-234-69.static.tpgi.com.au 1495675719 M * misc-- hi there... I'm just wondering how to rename the hostname of a guest? I'm assuming vserver sets the hostname of the guest when it boots, because setting the new hostname within the guest (ubuntu - /etc/hostname) has no effect on a reboot 1495675745 M * misc-- I though it would be in /etc/vservers//name but that didn't work 1495677665 Q * derjohn_mob Ping timeout: 480 seconds 1495678214 J * derjohn_mob ~aj@p2003008E6C2914004C774C9BED6ECBE2.dip0.t-ipconnect.de 1495681941 M * gnarface misc--: there's a page somewhere on the wiki. you actually have to change it in several places 1495682008 M * gnarface misc--: (note also that hostname is not the same thing as the name vserver-status lists) 1495682023 M * gnarface er, vserver-stat, i mean 1495682130 M * gnarface misc--: (found it for you) http://linux-vserver.org/Frequently_Asked_Questions#How_could_I_rename_a_vserver_directory.3F 1495682194 M * gnarface totally possible, definitely annoying 1495682205 M * gnarface try to plan ahead when naming them 1495682262 M * gnarface and definitely don't rename name them while they're still running 1495682289 M * gnarface if you only halfway finish the job then try to start it again, you might get some hysterical behavior 1495683464 M * misc-- thanks gnarface. Yeah I already saw that faq entry. I stopped the server and did the renaming which renames all dirs and that but just not the hostname within the guest 1495683536 M * misc-- interestingly enough, vserver-stat shows the old name before the rename (before renaming 'name' I mean and before renaming the dirs) 1495683582 M * gnarface misc--: oh, sorry the faq i guess leaves out /etc/vservers//uts/nodename 1495683584 M * misc-- in fact vserver-stat doesn't show all vservers that I even have running. Oh well 1495683620 M * misc-- ohhh that could be it; nodename 1495683680 M * gnarface if you have guests missing from server-stat, i'm not sure what causes that but i'd double-check all the /var/run/vservers.rev symlinks to make sure they match the guest context and other such sanity checks 1495683698 M * misc-- well nodename fixed the hostname issue. Thanks! 1495683706 M * gnarface no problem 1495683772 M * misc-- sorry my bad, I had a guest that wasn't actually running. Explains that :o 1495683852 M * misc-- do you know where vserver-stat gets its "name" field from when displaying the vserver names? 1495683887 M * misc-- oh, it's just "name" 1495683895 M * misc-- /etc/vservers//name 1495683924 M * misc-- ok all good now, thanks for that. 1495683980 M * gnarface you're welcome :) 1495684745 N * Bertl_oO Bertl_zZ 1495685041 M * gnarface i tried to make mine all match the hostnames, but i couldn't come up with a naming convention that could fit the character and length limitations of all fields without some collisions 1495685075 M * gnarface so in the end i had to come up with a separate naming convention for hostnames and vserver names 1495685099 M * gnarface but i managed to keep a lot of overlap 1495685256 M * misc-- yeah my naming convention is just the short hostname. But then new guests are added with updated software of previous guests, so then I replace the old with the new (that's was why I was wondering how to change the hostname) 1495685346 M * gnarface and that's pretty much exactly why i already knew, i've been right there before 1495685389 M * misc-- ah =) 1495685410 M * gnarface it all works fine until suddenly you're no longer hosting one domain's guests 1495685422 M * gnarface then you can no longer just name stuff 'www' 1495685426 M * gnarface heh 1495685443 M * misc-- no that's true 1495686067 M * gnarface the linux-vserver kernel doesn't seem to care about the guest's /etc/hostname settings or /etc/hosts file, but i think i've run into situations where software IN the guests still obeys those files rather than the hostname the kernel recognizes 1495686088 M * gnarface (maybe just Valve software though, i'd have to find it again) 1495686139 M * gnarface well-behaved software shouldn't care i don't think 1495686181 M * gnarface (i just mention this because it can be common to forget to set anything in /etc/hosts or /etc/hostname otherwise) 1495686203 M * gnarface i just remember that was another issue i ran into after renaming a bunch of stuff 1495687289 M * gnarface now that i think about it, i don't think it was obeying it so much as crashing instantly at start-up if it didn't find what it was expecting 1495687639 M * misc-- the /etc/hostname I wouldn't think so at all (in fact /etc/init.d/hostname, which uses /etc/hostname, doesn't work at all with ubuntu)). But /etc/hosts I would think that some software in the guest would use 1495687670 M * misc-- especially for resolving localhost 1495687709 M * misc-- (I mean /etc/init.d/hostname.sh, not /etc/init.d/hostname) 1495687716 M * gnarface hmmm 1495687721 M * gnarface well it was something other than localhost 1495687727 M * gnarface because it was not set by default 1495687778 M * gnarface i'm pretty sure minimal guests define localhost in /etc/hosts by default 1495687789 M * gnarface at least that 1495687816 M * gnarface heh 1495687820 M * gnarface or i'm calling debootstrap wrong... 1495687828 M * gnarface it could have been my mistake 1495687841 M * gnarface if there's supposed to be some way to set that automatically 1495687845 M * misc-- aside from the localhost entry in /etc/hosts yeah there shouldn't be anything else in there that software depends on 1495687859 M * gnarface but i assumed it was just the nature of vserver creation 1495687897 M * gnarface also i (don't actually know) thought there was supposed to be some standard behavior where you fall back on gethostbyname() or something? 1495687904 M * gnarface i dunno 1495687930 M * gnarface something like that 1495687953 M * misc-- ah yeah the actual hostname itself I guess you should put in there too. Forgot about that! 1495688925 M * gnarface the hostname of whatever ip the service is using, probably? 1495688979 M * gnarface i just make a point of coming up with a hostname for every ip and putting it in there 1495692163 M * misc-- yeah fair enough 1495701609 J * Ghislain ~ghislain@81.56.195.31 1495709021 M * CcxWrk misc--: See the /etc/vservers/vserver-name/uts directory in http://www.nongnu.org/util-vserver/doc/conf/configuration.html 1495709106 M * CcxWrk That's where the hostname/domainname set by vserver is defined. The system is then free to redefine it though - which is what the init.d script does. 1495709139 M * CcxWrk Personally think it's superfluous to have it in two places and would just disable the initscript. 1495710459 N * Bertl_zZ Bertl 1495710461 M * Bertl morning folks! 1495711109 M * gnarface 'morning Bertl 1495714452 Q * Aiken Remote host closed the connection 1495717997 Q * romster Read error: Connection reset by peer 1495718397 J * romster ~romster@202.168.100.149.dynamic.rev.eftel.com 1495718560 Q * romster Remote host closed the connection 1495718586 J * romster ~romster@202.168.100.149.dynamic.rev.eftel.com 1495720112 J * sannes ~ace@2a02:fe0:c130:1d90:2073:8eb4:7c5a:f73a 1495720303 Q * romster Remote host closed the connection 1495720317 J * romster ~romster@202.168.100.149.dynamic.rev.eftel.com 1495720797 M * misc-- ok thanks CcxWrk 1495739788 J * Aiken ~Aiken@d63f.h.jbmb.net 1495751578 M * Bertl off to bed now ... have a good one everyone! 1495751579 N * Bertl Bertl_zZ 1495755287 Q * Ghislain Quit: Leaving.