Hi,
I believe I have read just about everything on booting a diskless client in the Handbook, articles, HOWTOs, searching the forums, etc. I'm on FreeBSD 9.2-RC4. My tftpd line in /etc/inetd.conf
My entry for the host and everything else in /usr/local/etc/dhcpd.conf:
My server is running NFSv4. The relevant entries in the /etc/rc.conf file are:
Since I'm using ZFS, I use:
Which creates the following entries in /etc/zfs/exports:
In the file, /diskless/FreeBSD/etc/fstab, I have the following:
In the file, /diskless/FreeBSD/etc/rc.conf, I have the following:
I have also swapped out the NFSv3 stuff to just have the nfsuserd, nfscbd, and just rpcbind so the client is all NFSv4. I believe that's everything I can give right now.
Here's the fun part:
I get my PXEboot![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
I get my kernel![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
Once the kernel is loaded, it hangs.
I can mount the /diskless/FreeBSD partition on both an NFSv3 and NFSv4 client.
Can anyone see anything that I've done wrong? I have checked in so many locations that I'm ready to scream. I have to figure out how to paint over the bloody spot on the wall where I've been banging my head. :\
I believe I have read just about everything on booting a diskless client in the Handbook, articles, HOWTOs, searching the forums, etc. I'm on FreeBSD 9.2-RC4. My tftpd line in /etc/inetd.conf
Code:
tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /diskless/FreeBSD/boot
My entry for the host and everything else in /usr/local/etc/dhcpd.conf:
Code:
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.64 192.168.0.80;
default-lease-time 3600;
max-lease-time 86400;
option domain-name-servers ns.<domain>.<TLD>;
option routers 192.168.0.1;
}
host debsmachine {
next-server 192.168.0.2;
filename "pxeboot";
option root-path "192.168.0.2:/diskless/FreeBSD/";
option subnet-mask 255.255.255.0;
hardware ethernet 78:ac:c0:a7:66:a0;
fixed-address 192.168.0.77;
}
My server is running NFSv4. The relevant entries in the /etc/rc.conf file are:
Code:
mountd_enable="YES"
mountd_flags="-r"
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4 -h 192.168.0.2"
nfsuserd_enable="YES"
nfsv4_server_enable="YES"
nfscbd_enable="YES"
rpcbind_enable="YES"
rpcbind_flags="-h 192.168.0.2"
Since I'm using ZFS, I use:
zfs set sharenfs="alldirs,ro,maproot=0" <pool>/diskless/FreeBSD
zfs set sharenfs="alldirs,ro,maproot=0" <pool>/usr
Which creates the following entries in /etc/zfs/exports:
Code:
/diskless -ro -maproot=0 -alldirs
/usr -ro -maproot=0 -alldirs
/usr/home -ro -maproot=0 -alldirs
/usr/ports -ro -maproot=0 -alldirs
/usr/src -ro -maproot=0 -alldirs
In the file, /diskless/FreeBSD/etc/fstab, I have the following:
Code:
192.168.0.2:/usr /usr nfs ro 0 0
192.168.0.2:/diskless/FreeBSD / nfs ro 0 0
proc /proc procfs rw 0 0
In the file, /diskless/FreeBSD/etc/rc.conf, I have the following:
Code:
hostid_enable="NO"
nfs_client_enable="YES"
ntpupdate_enable="YES"
rpcbind_enable="YES"
rpcbind_lockd_enable="YES"
rpcbind_statd_enable="YES"
sendmail_enable="NONE"
sshd_enable="YES"
usbd_enable="YES"
I have also swapped out the NFSv3 stuff to just have the nfsuserd, nfscbd, and just rpcbind so the client is all NFSv4. I believe that's everything I can give right now.
Here's the fun part:
I get my PXEboot
![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
I get my kernel
![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
Once the kernel is loaded, it hangs.
Code:
Trying to mount root from nfs:192.168.0.2:/diskless/FreeBSD[ro]
mountroot: waiting for device 192.168.0.2:/diskless/FreeBSD
Mounting from nfs:192.168.0.2:/diskless/FreeBSD failed with error 19.
Trying to mount root from from nfs: []
NFS ROOT: 192.168.0.2:/diskless/FreeBSD/
Can anyone see anything that I've done wrong? I have checked in so many locations that I'm ready to scream. I have to figure out how to paint over the bloody spot on the wall where I've been banging my head. :\