On Fri, Oct 01, 2010 at 11:48:21PM +0200, Lorenz Wenner wrote:
> i am running LTSP 5.2 on Debian squeeze. 

glad to hear it :)


> It seems to me, that nbd instead of 
> nfs is in use. can anybody confirm that? I am just wondering, because i 
> heard, 
> that usually debian uses nfs.

unless you manually configured NBD, Debian LTSP defaults to using NFS.

i wonder if running ltsp-update-image somehow sets the default to switch to
NBD? reading it quickly, i don't see where it would. running ltsp-update-image
is completely unnecessary with NFS based setups such as Debian, but a lot of
documentation suggests running it.


> ...and now for something completly different: is there an easy way to get the 
> clients hostnames into the servers /etc/hosts? I know that the clients do get 
> an individual hostname e.g. ltsp22, for client with ip address 192.168.0.22.
> 
> uncommenting the "get-lease-hostnames true;" line in /etc/ltsp/dhcpd.conf 
> resulted in clients that would not boot, which is logically, because there is 
> no dns-server providing any hostnames for the ltsp clients. 

it surprises me that they wouldn't boot at all in that case...


> So my question is: 
> where (and at what time in the boot process -- maybee even after user login?) 
> do the hostnames -- e.g. ltsp22 -- come from and how can i get them from 
> there 
> into the servers /etc/hosts?

it happens in the initramfs:

  /opt/ltsp/i386/usr/share/initramfs-tools/scripts/nfs-bottom/ltsp

it is controlled by the HOSTNAME* parameters in lts.conf:

  apt-get install ltsp-docs ; man lts.conf

for a network with ip addresses ranging from 192.168.0.1-192.168.0.254 (i.e.
netmask of 255.255.255.0), you'd get ltsp1-ltsp254 for auto-generated
hostnames... so a simple for loop could add them to your server's /etc/hosts:

  for x in $(seq 1 254) ; do 
      echo 192.168.0."$x" ltsp"$x" >> /etc/hosts 
  done

or just set up DNS. as time has moved on, and we've configured more and more
workarounds, i'm wondering why we've avoided configuring DNS for LTSP
environments. i guess it's just one more service to have to configure...


live well,
  vagrant

------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to