Hello All,
I am currently experimenting with PXE Booting under FreeBSD. I have been trying to get mine to work since last week and so far I haven't had much luck.
I have mounted the filesystem from the memstick version to a directory on my hard-drive which I am using for PXE-boot.
If I tell my DHCP server to serve boot/pxeboot, I get an error along the lines of "tftp download complete, but unable to load file." I hence implemented a linux pxeboot-loader using syslinux files. With that I manage to get the FreeBSD kernel loaded and it boots until it gets stuck at something like "NFS ROOT: 192.168.1.1:/pxe/tftpboot/images/freebsd". I thought there was a problem with my NFS mounts. I tried to loopback mount them and they work fine.
So, I tried with using another approach -- the one specified in the FreeBSD Handbook's chapter 31.7 Diskless Operation. With this image it gets stuck at "Timecounters tick every 10.000 msec" while loading.
Does anyone have a recent experience in setting up PXE boot that could help?
Your time and advice are much appreciated,
Cheers,
atwinix
I am currently experimenting with PXE Booting under FreeBSD. I have been trying to get mine to work since last week and so far I haven't had much luck.
I have mounted the filesystem from the memstick version to a directory on my hard-drive which I am using for PXE-boot.
If I tell my DHCP server to serve boot/pxeboot, I get an error along the lines of "tftp download complete, but unable to load file." I hence implemented a linux pxeboot-loader using syslinux files. With that I manage to get the FreeBSD kernel loaded and it boots until it gets stuck at something like "NFS ROOT: 192.168.1.1:/pxe/tftpboot/images/freebsd". I thought there was a problem with my NFS mounts. I tried to loopback mount them and they work fine.
So, I tried with using another approach -- the one specified in the FreeBSD Handbook's chapter 31.7 Diskless Operation. With this image it gets stuck at "Timecounters tick every 10.000 msec" while loading.
Code:
dhcpd.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
range 192.168.1.100 192.168.1.150;
next-server 192.168.1.1;
filename "gpxelinux.0";
#filename "pxeboot";
option root-path "192.168.1.1:/pxe/tftpboot/images/freebsd"; # NFS Root
}
Code:
/etc/exports
/usr -alldirs -ro
/pxe/tftpboot -alldirs -maproot=root -network 192.168.1.0/24
/root # showmount -e
Exports list on localhost:
/usr Everyone
/pxe/tftpboot 192.168.1.0
Code:
#Menu to load kernels: /pxe/tftpboot/pxelinux.cfg/default
ui menu.c32
menu title Utilities
label freebsd
menu label FreeBSD LiveFS
pxe tftp://192.168.1.1/images/freebsd/boot/pxeboot
label reboot
menu label Reboot
kernel reboot.c32
Your time and advice are much appreciated,
Cheers,
atwinix