multiple clients requiring different chroots...

Jim Kronebusch jim at winonacotter.org
Thu Nov 1 15:02:02 GMT 2007


> > 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.




More information about the edubuntu-users mailing list