Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Booting from a FreeBSD box




Hi
I`m trying Etherboot but I have a problem when trying to boot a client
from my FreeBSD box - it
loads the kernel but when trying to mount rootfs, it fails. Here`s a list
what I`ve done so far:
1. Set to YES the NFS client and server in rc.conf
2. Uncoment tftp and bootps in inet.d
3. Added kernel support for BOOTP (NFS was already in it)
4. Created /etc/exports and added a line:
/usr/diskless/rootfs	-ro	-network 192.168.0.0	-mask
255.255.255.0
5. Added a line to /etc/hosts:
192.168.1.3	client	client.mydomain.org
6. Gived the inetd a HUP signal
7. Created /etc/bootptab, sooks like this (I know it looks awful, but it
should work):
client :\
	:ht=ether:\
	:ha=001050ACC6BCE:\
	:sm=255.255.255.0:\
	:hn:\
	:td=/tftpboot:\
	:hd=/tftpboot:\
	:bf=kernel:\
	:rp=/usr/diskless/rootfs:\
	:ds=192.168.1.2:\
	:ip=192.168.1.3:\
	:gw=192.168.1.1:
6. Created a directory tree in /usr/diskless/rootfs
7. Created /tftpboot and copied the modified kernel in it
8. Created a boot disk for my network card
9. Tested mounting from another FreeBSD box (works)

That`s about all.
So, the client boots from a disk, gets a kernel from the server, loads
it. But it fails to mount rootfs - it says:
Panic: failed to set rootfs to /usr/diskless/rootfs 
I`ve done tcpdump for host client, it looks like this:
first, lots of those lines:
11:24:51.418902 192.168.1.2.3482 > client.wizard:  udp 516
11:24:51.420602 client.wizard > 192.168.1.2.3482:  udp 4
that`s when the kernel is being transfered from the server to the client
but in the end, just about when it panics, it sends 2 more UDP 516
packets. When it panics, I saw this line:
11:25:00.198970 192.168.1.2.bootps > klient.bootpc:  xid:0xffffff01
flags:0x80000 Y:client S:192.168.1.2 sname "ferrari.dr"[|bootp]
During a 15 seconds period when the kernel is in panic, the client sends 2
more udp 516 packets, then he reboots.
Ferrari is the name of my server.
What am I doing wrong? Any help would be VERY well seen ;))
PS Sorry for a long post ;)
Regards,
Greg Bystrzynski 

===========================================================================
This Mail was sent to netboot mailing list by:
Grzegorz Bystrzynski <bystry@drogowiec.kielce.pl>
To get help about this list, send a mail with 'help' as the only string in
it's body to majordomo@baghira.han.de. If you have problems with this list,
send a mail to netboot-owner@baghira.han.de.



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.