PXE booting 7.0-R

mohammad khatibi mo_kh118 at yahoo.com
Mon Jun 9 04:34:58 UTC 2008


Hi 
try using this lines in your /usr/local/etc/dhcpd.conf instead of yours :
subnet [your subnet IP] netmask [your netmask] {
  range [start range] [finish range];
  next-server [your PXE server IP];
  filename "pxeboot";
  option root-path "[your Root server IP (if you mount your server root its obvious that your server IP)]:/";
}

and you should make change in your /etc/inetd.conf and comment out this line :
tftp   dgram   udp wait    root    /usr/libexec/tftpd  tftpd -l -s /tftpboot/
place your pxeboot and loader in /tftpboot/ and reboot your system 
it should solve your problem 
but if you want to use tftp instead of nfs you should make your pxeboot and loader using tftp enable to do this you can read this article :
http://www.ultradesic.com/index.php?section=72
but there is a mistake in this article : 
after you make new files are place here :
pxeboot : /usr/obj/usr/src/sys/boot/i386/pxeldr/
loader : /usr/obj/usr/src/sys/boot/i386/loader/
and you should export / and all its directory for successful loading . for more information you can read this article too.
http://www.ultradesic.com/?section=144
I hope you make it 
----- Original Message ----
From: CZUCZY Gergely <phoemix at harmless.hu>
To: freebsd-questions at freebsd.org
Sent: Friday, June 6, 2008 1:17:08 PM
Subject: PXE booting 7.0-R

Hello,

I'm trying to PXE boot 7.0-RELEASE, but it stops at a time.

At boot I see the following on the screen:
BIOS drive C: is disk0
BIOS drive D: is disk1

PXE version 2.1, real mode entry point @9188:0106
BIOS 517kB/3406144kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
(toor at myplace, date)
pxe_open: server addr: 10.0.0.1
pxe_open: serve path: /wwwbladebsd/
pxe_open: gateway ip: 10.0.0.1
Consoles: internal video/keybaord
BIOS drive C: is disk0
BIOS drive D: is diskl
BIOS 517kB/3406144kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
(toor at myplace, date)
Can't work out which disk we are booting from.
Guessed BIOS device 0xffffffff not found by probes, defaulting to disk0

can't loader 'kernel'

Type '?' for a list of commands, 'help' for more detailed help.
OK lsdev
cd devices:
disk devices:
disk0: BIOS drive C:
disk1: BIOS drive D:
pxe devices:

on the server I see t serving pxeboot via tftp, and mounting the root via NFS:
Jun  6 11:38:22 nfs dhcpd: DHCPDISCOVER from 00:30:48:8d:00:36 via eth1
Jun  6 11:38:22 nfs dhcpd: DHCPOFFER on 10.0.0.32 to 00:30:48:8d:00:36 via eth1
Jun  6 11:38:24 nfs dhcpd: DHCPREQUEST for 10.0.0.32 (10.0.0.1) from 00:30:48:8d:00:36 via eth1
Jun  6 11:38:24 nfs dhcpd: DHCPACK on 10.0.0.32 to 00:30:48:8d:00:36 via eth1
Jun  6 11:38:24 nfs atftpd[2221]: Serving /bsd/pxeboot to 10.0.0.32:2070
Jun  6 11:38:24 nfs atftpd[2222]: Serving /bsd/pxeboot to 10.0.0.32:2071
Jun  6 11:38:25 nfs dhcpd: DHCPDISCOVER from 00:30:48:8d:00:36 via eth1
Jun  6 11:38:25 nfs dhcpd: DHCPOFFER on 10.0.0.32 to 00:30:48:8d:00:36 via eth1
Jun  6 11:38:25 nfs dhcpd: DHCPREQUEST for 10.0.0.32 (10.0.0.1) from 00:30:48:8d:00:36 via eth1
Jun  6 11:38:25 nfs dhcpd: DHCPACK on 10.0.0.32 to 00:30:48:8d:00:36 via eth1
Jun  6 11:38:25 nfs mountd[2120]: authenticated mount request from 10.0.0.32:1023 for /wwwbladebsd (/wwwbladebsd) (around 30-40 from these NFS mount messages in the log).

The NFS server is a linux box right now.

The dhcpd.conf:
host blade1 {
  hardware ethernet 00:30:48:8d:00:36;
  fixed-address 10.0.0.32;
  server-name "10.0.0.1";
  filename "/bsd/pxeboot";
  next-server 10.0.0.1;
  option root-path "/wwwbladebsd/";
}

i'm using "atftpd" with /tftpboot as root directory. /tftpboot/bsd/ is a
symlink to the root system's /boot .

I've NFS-exported /wwwbladebsd/, and that seems to work.

The question is, why loader is unable to load the kernel?
How could I force the loader to use tftp instead of NFS?

Or using any other solutions, how can I make this box boot?
If I've left out outsomething from here, please tell me, I will post it.

Thanks in advance.


-- 
Sincerely,

Gergely CZUCZY
Harmless Digital Bt
mailto: gergely.czuczy at harmless.hu
Tel: +36-30-9702963



      


More information about the freebsd-questions mailing list