Hi everyone,
I've been setting up some prototype LTSP clients here on our campus for
the past week or so. To begin with we set a workstation up on a
completely different network from the main campus network by connecting
it to the server via a crossover cable. At that time the server was
192.168.0.1 and the workstation was 192.168.0.10, after a bit of work we
were able to get the workstation all set up in that configuration. So
logically we felt we were ready to move it out onto the "real" network
so that we could actually move the workstations to remote locations on
campus.
We started by getting a block of internal IP addresses reserved for our
project and removed from the campus wide DHCP pool. We reserved
10.66.6.21 through 10.66.6.40. We got these set up in dhcpd.conf and
DHCP wise everything seems to be working although there is one issue
with it that I will get to in a second.
The workstation machine boots, gets it's DHCP address (10.66.6.24),
downloads the kernel with TFTP, does the second DHCP request
successfully, and then the NFS mount fails. I already went through and
changed the IP address and masks everywhere I could find:
/etc/dhcpd.conf, /etc/exports, /etc/hosts.allow,
/opt/ltsp/i386/etc/lts.conf, but it still refuses to mount:
Running dhclient
eth0: Setting Rx mode to 1 addresses.
Mounting root filesystem: /opt/ltsp/i386 from: 10.66.3.12 (the correct
IP of the server)
(null)mount: nfsmount failed: Bad file number
NFS: mount program didn't pass remote address!
mount: Mounting 10.66.3.12:/opt/ltsp/i386 on /mnt failed: Invalid
argument
ERROR! Failed to mount the root directory via NFS!
Possible reasons include:
......
If anyone has any ideas I'd certainly appreciate hearing them, this has
been driving me buggy all day....
Thanks,
-Jesse
Here are all the appropriate files I can think of, let me know if you
need to see another one:
/etc/dhcpd.conf:
default-lease-time 21600;
max-lease-time 21600;
option subnet-mask 255.255.255.0;
subnet 10.0.0.0 netmask 255.0.0.0
{
not authoritative;
}
shared-network WORKSTATIONS
{
option routers 10.10.10.10;
option domain-name-servers 10.10.10.1;
option root-path "10.66.3.12:/opt/ltsp/i386";
subnet 10.66.6.24 netmask 255.255.255.248
{
option broadcast-address 10.66.6.255;
}
subnet 10.66.6.32 netmask 255.255.255.248
{
option broadcast-address 10.66.6.255;
}
}
group
{
use-host-decl-names on;
option log-servers 10.66.3.12;
host ws001
{
hardware ethernet 00:A0:24:1D:DD:2D;
fixed-address 10.66.6.24;
filename
"/tftpboot/lts/vmlinuz-2.4.9-ltsp-5";
option option-128 e4:45:74:68:00:00;
option option-129 "NIC=3c509 IO=0x210";
}
}
This brings up my DHCP issue, the above config warns me about the
obvious conflict between the 10.0.0.0/255.0.0.0 and
10.66.6.24/255.255.255.248 subnets, but it seems to work and do what I
want DHCP wise (only respond to DHCPREQUEST's for the IP's in the range
I've been granted control over).
/etc/exports:
## LTS-begin ##
#
# The lines between the 'LTS-begin' and the 'LTS-end' were added
# on: Mon May 6 15:37:39 PDT 2002 by the ltsp installation script.
# For more information, visit the ltsp homepage
# at http://www.ltsp.org
#
/opt/ltsp/i386
10.66.6.0/255.255.255.0(ro,no_root_squash)
/var/opt/ltsp/swapfiles
10.66.6.0/255.255.255.0(rw,no_root_squash)
#
# The following entries need to be uncommented if you want
# Local App support in ltsp
#
#/home 192.168.0.0/255.255.255.0(rw,no_root_squash)
## LTS-end ##
/etc/hosts.allow:
## LTS-begin ##
#
# The lines between the 'LTS-begin' and the 'LTS-end' were added
# on: Mon May 6 15:37:39 PDT 2002 by the ltsp installation script.
# For more information, visit the ltsp homepage
# at http://www.ltsp.org
#
bootpd: 0.0.0.0
in.tftpd: 10.66.6.
portmap: 10.66.6.
## LTS-end ##
/opt/ltsp/i386/etc/lts.conf:
[Default]
SERVER = 10.66.3.12
LOCAL_APPS = N
RUNLEVEL = 5
#------------------------------------------------------------------------------
#
# Example of specifying X settings for a workstation
#
[ws001]
XSERVER = XF86_S3
LOCAL_APPS = N
USE_NFS_SWAP = Y
SWAPFILE_SIZE = 16m
RUNLEVEL = 5
X_COLOR_DEPTH = 8
/etc/hosts:
127.0.0.1 jupiter localhost
10.66.6.24 ws001
some other info:
jupiter:/etc/init.d# showmount -e
Export list for jupiter.wwc:
/var/opt/ltsp/swapfiles 10.66.6.0/255.255.255.0
/opt/ltsp/i386 10.66.6.0/255.255.255.0
jupiter:/etc/init.d# rpcinfo -p localhost
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 749 status
100024 1 tcp 751 status
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs
100005 1 udp 999 mountd
100005 2 udp 999 mountd
100005 1 tcp 1002 mountd
100005 2 tcp 1002 mountd
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_____________________________________________________________________
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.openprojects.net