multiple clients requiring different chroots...

David Van Assche dvanassche at gmail.com
Thu Nov 1 16:13:58 GMT 2007


Thankyou Jim,
   The group directive in dhcp should come in handy indeed. In the mean
time, I finally got my configuration to work. What I was missing was the nbd
image to be loaded from the correct port. So by editting /etc/inetd.conf and
changing that, editing the kernel parameters in
/var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default to contain nbdport=2001,
and finally restarting /etc/init.d/openbsd-inetd

I now have fat clients loading with fglrx kernel modules (they are stupidly
difficult machines to configure, but now they finally work more or less as
desired.) authenticating via ldap, and regular thin clients running
everywhere else... The server is 64bit and has 8 gigs of ram and now 55
computers are running without issues all off LTSP under one big subnet...
I have not tried setting up smbldap for the few windows machines that
remain, since I've not seen any working gutsy setups mentioned yet.

I can't believe I managed to get this far, gone are my days of configuring
single machines... haleluyah!
.... I'll try documenting my steps if there is any interest...

Kind Regards,
David Van Assche

On 11/1/07, Jim Kronebusch <jim at winonacotter.org> wrote:
>
> > > Ok, So I've tried this... creating 2 chroots (the existing working
> fglrx
> > > containing one) [/opt/ltsp/i386-ati] and a new one by doing a
> > > ltsp-build-client...
> > >
> > > So my dhcpd.conf looks like this now:
> > >
> > >  host computerlab2 {
> > >      hardware ethernet 00:1a:92:28:1c:12;
> > >      fixed-address 192.168.0.70;
> > >     option host-name "computerlab2";
> > > #   filename "/pxelinux.0";
> > > #   next-server mayserve;
> > >    option root-path "/opt/ltsp/i386-ati";
> > >      if substring( option vendor-class-identifier, 0, 9 ) =
> "PXEClient" {
> > >      filename "/ltsp/i386-ati/pxelinux.0";
> > >      }
> > >     else{
> > >     filename "/ltsp/i386-ati/nbi.img";
> > >      }
> > >    }
> > >
> > > It loads the correct rootserver and filename, but then crashes here:
> > >
> > > Negotiation: mount: Mounting /rofs on /root/rofs failed: Invalid
> Argument
> > >
> > > I'm not sure about the images created either, for now I just moved the
> old
> > > image to i386-ati.img. I'm sure I'm doing something wrong, any help is
> > > much appreciated...
> > >
> > > David Van Assche
>
> Well David, unfortunately I can't tell you why this is failing.  However I
> can show you
> maybe a simpler way to build your dhcpd.conf so that different groups of
> machines can
> have different boot options.
>
> Here is how I have my dhcpd.conf broken down.  This makes certain all
> clients boot the
> right configuration and that unknown clients are not allowed to boot to my
> LTSP server.
> This also prevents me from repeating the filename and root-path stuff over
> and over
> again.  One of these days I'll put together a wiki page on this.  Anyhow
> maybe this will
> help you set things up once the clients boot correctly.
>
> ################# Start /etc/ltsp/dhcpd.conf ################
>
> authoritative;
>
> # Cotter LAN
> subnet 10.6.0.0 netmask 255.255.0.0 {
>         option domain-name "winonacotter.org";
>         option domain-name-servers 10.6.1.50;
>         option routers 10.6.0.1;
>         option subnet-mask 255.255.0.0;
>         pool {
>                 allow unknown-clients;
>                 range 10.6.253.1 10.6.253.255;
>                 }
>         }
> # CHS Main Lab
> group {
>         use-host-decl-names on;
>         deny unknown-clients;
>         if substring( option vendor-class-identifier , 0 , 9 ) =
> "PXEClient" {
>                 filename "/ltsp/i386/pxelinux.0";
>                 }
>         else {
>                 filename "/ltsp/i386/nbi.img";
>                 }
>         option root-path "/opt/ltsp/i386";
>         host chsmain1 {
>                 hardware ethernet 00:1A:4D:2F:A5:78;
>                 fixed-address 10.6.252.1;
>                 }
>         host chsmain2 {
>                 hardware ethernet 00:1A:4D:2F:AC:48;
>                 fixed-address 10.6.252.2;
>                 }
>         }
>
> # Web Kiosk
> group {
>         use-host-decl-names on;
>         deny unknown-clients;
>         if substring( option vendor-class-identifier , 0 , 9 ) =
> "PXEClient" {
>                 filename "/ltsp/i386/pxelinux.0";
>                 }
>         else {
>                 filename "/ltsp/i386/nbi.img";
>                 }
>         option root-path "/opt/ltsp/kiosk";
>         host kiosk1 {
>                 hardware ethernet 00:1A:4D:2F:A4:E1;
>                 fixed-address 10.6.252.108;
>                 }
>         }
>
> # Diskless Remote Boot configuration for full workstations - Not working
> yet :-)
> group {
>        use-host-decl-names on;
>        deny unknown-clients;
>        if substring( option vendor-class-identifier , 0 , 9 ) =
> "PXEClient" {
>                filename "/ltsp/i386/pxelinux.0";
>                }
>        else {
>                filename "/ltsp/i386/nbi.img";
>                }
>        option root-path "/opt/ltsp/drb";
>         host tech1 {
>                 hardware ethernet 00:1A:4D:2F:72:23;
>                 fixed-address 10.6.252.107;
>                 }
>
> # Netbooting Macs
> group {
>         use-host-decl-names on;
>         deny unknown-clients;
>         next-server 10.6.1.21;
>         host ibook1 {
>                 hardware ethernet 00:03:93:09:61:E6;
>                 fixed-address 10.6.252.120;
>                 }
>         host ibook2 {
>                 hardware ethernet 00:03:93:18:1E:BE;
>                 fixed-address 10.6.252.121;
>                 }
>         }
>
> --
> This message has been scanned for viruses and
> dangerous content by the Cotter Technology
> Department, and is believed to be clean.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/edubuntu-users/attachments/20071101/23e8acec/attachment-0001.htm 


More information about the edubuntu-users mailing list