jack23912 / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

PXE boot does not work if a proxyDHCP server is used #94

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Setup a Serva host (e.g. on a Win 7 PC)
2. Set Serva as DHCP and TFTP server (no BINL) and boot file as grdlr
3. PXE client will boot OK
4. Now change Serva settings to proxyDHCP and have another device (e.g. ADSL 
router) on the same network as a DHCP server.
5. PXE client will load grldr but then grub gives errors

What is the expected output? What do you see instead?

Try block size 1408 ...
Try block size 512 ...
Warning! Cannot open bootfile. pxe_blksize set to default 512
Then after a minute or so I get
/menu.lst/MAC ADDRESS
/menu.lst/MAC ADDRESS hex
etc.

What version of the product are you using? On what operating system?
latest 0.4.5c

Please provide any additional information below.
The author of Serva has reproduced this issue. Here is his report:

Hi
I just downloaded grub from your link I expanded like
C:\netboot\
 grldr
menu.lst\
 config.sys
 default
 menu.lst

No BINL, TFTPROO=C:\netboot\  booting file=grldr, DHCP server mode
it ended up in a grub prompt first try...
if you boot in proxyDHCP mode it fails because grub does not handle the 
proxyDHCP part of the PXE standard.

Reference and Serva download:
Serva http://www.vercot.com/~serva/howto/DebianPXE1.html   - but set boot file 
as grldr

More reference: http://www.rmprepusb.com/tutorials/serva

Original issue reported on code.google.com by Steve6375 on 19 Jun 2012 at 9:42

GoogleCodeExporter commented 8 years ago
I tried.
It seems ok?
please enter command `pxe` to see which server is used for grub4dos.

and check the tftp server.

Original comment by chenall.cn on 23 Jun 2012 at 12:11

GoogleCodeExporter commented 8 years ago
pxe
blksize: 512
bootfile : grldr
client ip: 192.168.1.4  (Serva IP)
server ip : 0,0,0,0
gateway ip: 0.0.0.0
mac: 00-23-54-56-32-6B  (client address)

DId you set up a proxyDHCP on Serva and make sure your DHCP server did not have 
option 60 set?

Original comment by Steve6375 on 23 Jun 2012 at 4:41

GoogleCodeExporter commented 8 years ago
I tried,works too.
DHCP server : Microsoft Windows 2003 DHCP
and my computer set as proxyDHCP.
client vmware or virtual pc. is works fine.

I have see that your pxe server ip is :0.0.0.0

May be there is a bug in GRUB4DOS or the PXE-ROM.

you can try more.eg.boot with gpxe.

Original comment by chenall.cn on 25 Jun 2012 at 4:41

GoogleCodeExporter commented 8 years ago

Original comment by tinyb...@gmail.com on 15 Feb 2013 at 4:19

GoogleCodeExporter commented 8 years ago
我也遇到了这个问题
我用tiny pxe server这款软件有proxydhcp功能
这功能很有用,可以和路由器的dhcp和谐共存
ipxe、pxelinux都测试启动正常,grub4dos、grub2就不行
获取不到proxydhcp的ip

Original comment by ljy20121...@gmail.com on 25 Mar 2014 at 4:21

GoogleCodeExporter commented 8 years ago
@ljy20121221

这一部份代码是bean写的,我只能尽量看看能不能找出问题,当��
�了得先测试出问题,我会抽空测试一下tiny pxe server

Original comment by chenall.cn on 25 Mar 2014 at 9:57

GoogleCodeExporter commented 8 years ago
Hi,

I can confirm this problem in grub4dos 0.4.6a, PXELinux and using TFTP32 v4.5 
as tfp server.

It seems it's a bug on PXE-ROM because if I use gpxe everything works as 
expected, also using Oracle VM VirtualBox as PXE client on the same network and 
pxe server works fine.

Any idea if it would be possible to add some workaround to the grub4dos code?

Original comment by rpaz.m...@gmail.com on 25 Mar 2014 at 7:03

GoogleCodeExporter commented 8 years ago
Maybe this can fix this problem.

please test and reply if have any problem.

Original comment by chenall.cn on 16 Oct 2014 at 6:15

Attachments: