Jump to content











Photo
* * * * * 2 votes

Tiny PXE Server

ipxe gpxe dhcp proxydhcp pxe boot sanboot http

  • This topic is locked This topic is locked
162 replies to this topic

#51 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 14 May 2013 - 09:33 AM

I think I'll rename this thread "Tiny PXE Server : not SERVA" :(

 

/erwan



#52 cia53414

cia53414
  • Members
  • 4 posts
  •  
    United States

Posted 14 May 2013 - 09:42 AM

Sorry erwan, as you can probably see there was a nasty story about Serva in this forum some time ago; there are people that are still upset about the way things were handled here. Please forgive us.

#53 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 14 May 2013 - 10:47 AM

I think I'll rename this thread "Tiny PXE Server : not SERVA" :(

 

/erwan

Not a bad idea. :unsure:

After all since I renamed this thread:

http://reboot.pro/to...about-grub4dos/

the sky didn't fall on our heads :w00t:  (but it may well happen tomorrow :ph34r:).

 

Sorry for the inconveniences. :(

 

@cia53414

You see, the good thing is that you are free to appreciate what you like of my contributions and express your disagreement with those that you don' t like :).

 

:cheers:

Wonko



#54 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 24 May 2013 - 09:02 PM

Added in latest version : a DNS daemon.

 

Sends back A and PTR dns records.

Uses the windows hosts file first before using the running host dns servers.

 

Can be useful for scripts, installation path, etc where you dont want to hardcode a specific IP or hostname.

 

Example : add 1.2.3.4 master in your windows hosts files and use the hostname master in any of your scripts/paths/configuration files on your remote (pxe) hosts.

 

/erwan



#55 ZEE

ZEE

    Frequent Member

  • Advanced user
  • 104 posts
  •  
    Portugal

Posted 05 June 2013 - 12:55 PM

Hi Erwan...

 

How about create a forum for your nice tools...

 

I have used tiny pxe server... and I could have used a forum to place some issues or ask for some features...

Think about it... or if there is already one out there please point me to there,,,

 

About "tiny pxe server"

I changed the config.ini to include

    root=c:\pxe

    filename=grldr

but when i call the executable this values are not loaded from the .ini file and displayed in the respective text boxes...

 

Also i would like to save in the ini file also the other options like:

    IPPoolStart

    SizeOfPool

   SubnetMask

etc. etc.

 

The ideal would be to save them as a Profile selectable from a combo box...

So you could have a few profiles with different configs...

 

Please consider this

 

Thx

ZEE



#56 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 05 June 2013 - 03:36 PM

Hi zee,

 

Can you copy paste your config.ini?

Make sure dhcp & filename lines are under the [dhcp] section.

 

About  IPPoolStart, SizeOfPool, SubnetMask : I'll add them in the future version.

 

About the forum section : I actually dont know how it works and I am not sure this is me to ask.


Regards,
Erwan


  • ZEE likes this

#57 ZEE

ZEE

    Frequent Member

  • Advanced user
  • 104 posts
  •  
    Portugal

Posted 15 June 2013 - 02:31 PM

Here it is one configuration that does not load into the .exe on start...

 


[frmDHCPServer]
top=505
left=-1407

[frmAbout]
top=486
left=509

[dhcp]
root=D:\{iso}\!PXE\grldr
;boot file - can be empty if you boot directly with ipxe/gpxe rather than intel pxe agent
filename=grldr
;alternative boot file is request comes from ipxe or gpxe
;altfilename=http://${dhcp-server}/menu.ipxe
;my gpxe / ipxe dhcp options
;optextra=175.6.1.1.1.8.1.1
;start HTTPd
httpd=1
binl=0
start=0
;opt1=
;opt3=
;opt6=
;opt28=
;opt15=
;opt17=
 



#58 ZEE

ZEE

    Frequent Member

  • Advanced user
  • 104 posts
  •  
    Portugal

Posted 15 June 2013 - 02:37 PM

Please put a simple [HELP] button to open a window and show a minimum text help

 

tool intention and tool usability should be explained...

some history about the tool...

fixes made...

things like ${dhcp-server} and other must be shown a little explained...

 

from my own experience this seems a super simple and super efficient solution...

also helps you to have some documentation inside your tools ;)

 

ZEE
 



#59 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 15 June 2013 - 03:37 PM

Here it is one configuration that does not load into the .exe on start...

 


[frmDHCPServer]
top=505
left=-1407

[frmAbout]
top=486
left=509

[dhcp]
root=D:\{iso}\!PXE\grldr
;boot file - can be empty if you boot directly with ipxe/gpxe rather than intel pxe agent
filename=grldr
;alternative boot file is request comes from ipxe or gpxe
;altfilename=http://${dhcp-server}/menu.ipxe
;my gpxe / ipxe dhcp options
;optextra=175.6.1.1.1.8.1.1
;start HTTPd
httpd=1
binl=0
start=0
;opt1=
;opt3=
;opt6=
;opt28=
;opt15=
;opt17=
 

 

I believe root=D:\{iso}\!PXE\grldr should actually be root=D:\{iso}\!PXE ?

This is the folder you need to point to there.

If the root is wrong, the Tiny Pxe Server wont be able to gather the filename either.

 

As you requested, I have also added poolstart and poolsize as possible parameters in the config.ini.

SubnetMask is actually opt1 in config.ini.

 

Regards,

Erwan


  • ZEE likes this

#60 tintep

tintep
  • Members
  • 6 posts
  •  
    Thailand

Posted 27 June 2013 - 05:15 AM

  Hi Erwan     Tiny pxe server is very well.   I boot network on VB it very good   I should fix mac for each ip but I don't know How to?  

Can you help me please .  



#61 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 27 June 2013 - 07:16 AM

Hi Tintep,

What do you mean by "fix mac" ?

 

Regards,

Erwan



#62 tintep

tintep
  • Members
  • 6 posts
  •  
    Thailand

Posted 28 June 2013 - 02:17 AM

Hi Erwan      fix mac is  fix macaddress  for each ip.   I boot with grldr-menu.lst-ipxe.iso    This is conf.ipxe   in my ipxe.iso   .

1IP for 1AOE    if   1Macaddress for 1IP for 1AOE     How to?  Thank you very much Erwan.

   

 

 #!ipxe

:retry_dhcp
dhcp net0 && isset ${net0/ip:ipv4} || goto retry_dhcp
route
set use-cached 1
set keep-san 1
echo IP configuration:
echo ${net0/ip:ipv4}
echo ${hostname}
 
set IPADDR ${net0/ip:ipv4}
 
iseq ${IPADDR} 192.168.0.100 && goto diskless_aoe00 ||
iseq ${IPADDR} 192.168.0.101 && goto diskless_aoe01 ||
iseq ${IPADDR} 192.168.0.102 && goto diskless_aoe02 ||
iseq ${IPADDR} 192.168.0.103 && goto diskless_aoe03 ||
iseq ${IPADDR} 192.168.0.104 && goto diskless_aoe04 ||
iseq ${IPADDR} 192.168.0.105 && goto diskless_aoe05 ||
iseq ${IPADDR} 192.168.0.106 && goto diskless_aoe06 ||
iseq ${IPADDR} 192.168.0.107 && goto diskless_aoe07 ||
iseq ${IPADDR} 192.168.0.108 && goto diskless_aoe08 ||
iseq ${IPADDR} 192.168.0.109 && goto diskless_aoe09 ||
iseq ${IPADDR} 192.168.0.125 && goto diskless_aoe010 ||
iseq ${IPADDR} 192.168.0.111 && goto diskless_aoe011 ||
iseq ${IPADDR} 192.168.0.112 && goto diskless_aoe012 ||
iseq ${IPADDR} 192.168.0.113 && goto diskless_aoe013 ||
iseq ${IPADDR} 192.168.0.114 && goto diskless_aoe014
 
:diskless_aoe00
sanboot aoe:e0.0
 
:diskless_aoe01
sanboot aoe:e0.1
 
:diskless_aoe02
sanboot aoe:e0.2
 
:diskless_aoe03
sanboot aoe:e0.3
 
:diskless_aoe04
sanboot aoe:e0.4
 
:diskless_aoe05
sanboot aoe:e0.5
 
:diskless_aoe06
sanboot aoe:e0.6
 
:diskless_aoe07
sanboot aoe:e0.7
 
:diskless_aoe08
sanboot aoe:e0.8
 
:diskless_aoe09
sanboot aoe:e0.9
 
:diskless_aoe010
sanboot aoe:e0.10
 
:diskless_aoe011
sanboot aoe:e0.11
 
:diskless_aoe012
sanboot aoe:e0.12
 
:diskless_aoe013
sanboot aoe:e0.13
 
:diskless_aoe014
sanboot aoe:e0.14


#63 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 30 June 2013 - 01:56 PM

Hi Erwan      fix mac is  fix macaddress  for each ip.   I boot with grldr-menu.lst-ipxe.iso    This is conf.ipxe   in my ipxe.iso   .

1IP for 1AOE    if   1Macaddress for 1IP for 1AOE     How to?  Thank you very much Erwan.

   

 

 #!ipxe

:retry_dhcp
dhcp net0 && isset ${net0/ip:ipv4} || goto retry_dhcp
route
set use-cached 1
set keep-san 1
echo IP configuration:
echo ${net0/ip:ipv4}
echo ${hostname}
 
set IPADDR ${net0/ip:ipv4}
 
iseq ${IPADDR} 192.168.0.100 && goto diskless_aoe00 ||
iseq ${IPADDR} 192.168.0.101 && goto diskless_aoe01 ||
...
iseq ${IPADDR} 192.168.0.114 && goto diskless_aoe014
 
:diskless_aoe00
sanboot aoe:e0.0
 
:diskless_aoe01
sanboot aoe:e0.1
 
...

 Hi Tintep,

Not sure if this will answer your need but see in latest version 1.0.0.12 :

  • added : can use @mac or @ip in the filename to send back the requester mac or ip as part of the filename/path

Example when using ipxe as main boot file name, you can use this syntax as alternative boot file name : 

http://${dhcp-server}/@mac.ipxe .

 

Tiny PXE Server will replace on the fly @mac by the requester's mac address.

 

See screenshot as example.

 

Regards,

Erwan

Attached Thumbnails

  • pxesrv@mac.png


#64 b00t

b00t
  • Members
  • 1 posts
  •  
    Netherlands

Posted 30 June 2013 - 04:14 PM

This is a most excellent program! I've already used it several times to boot WinPE (for Win 8.1 Preview install) and Parted Magic PXE.

 

Previously I used TFTP32 (tftp and dhcp server) and Mongoose (httpd) but that setup was clunky. Now with TinyPXE I have an all-in-one solution. DHCP support for the "user-class" variable is also very helpful, as before I had to manually cancel the DHCP boot-loop that iPXE would enter.

 

TinyPXE is the perfect compagnion to iPXE. Thanks! :1st:


Edited by b00t, 30 June 2013 - 04:17 PM.


#65 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 30 June 2013 - 05:26 PM

This is a most excellent program! I've already used it several times to boot WinPE (for Win 8.1 Preview install) and Parted Magic PXE.

 

Previously I used TFTP32 (tftp and dhcp server) and Mongoose (httpd) but that setup was clunky. Now with TinyPXE I have an all-in-one solution. DHCP support for the "user-class" variable is also very helpful, as before I had to manually cancel the DHCP boot-loop that iPXE would enter.

 

TinyPXE is the perfect compagnion to iPXE. Thanks! :1st:

 

Ho B00t,

 

Thanks for this very positive feedback :)

The user-class variable and the http daemon were indeed my initial drivers as I could not find these in other tools.

 

Regards,

Erwan



#66 tintep

tintep
  • Members
  • 6 posts
  •  
    Thailand

Posted 07 July 2013 - 08:22 PM

Hi Erwan  Thank you very much for your guides    I install win7 with wimboot in VB  it very good   but Tiny send file

with TFTP  don't send with HTTP . Can tiny send file with HTTP How to?     English for me not very well

Thank you again Erwan



#67 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 07 July 2013 - 08:56 PM

Hi Tintep,

 

I assume you are using ipxe.

 

I use wimboot the following way :

 

#!ipxe
  kernel ${boot-url}/wimboot
  initrd ${boot-url}/BOOTMGR          BOOTMGR
  initrd ${boot-url}/BOOT/BCD         BCD
  initrd ${boot-url}/BOOT/BOOT.SDI    BOOT.SDI
  initrd ${boot-url}/SOURCES/BOOT.WIM BOOT.WIM
  boot
 
Regards,
Erwan


#68 Lewis

Lewis

    Newbie

  • Members
  • 18 posts
  •  
    Australia

Posted 08 July 2013 - 12:54 AM

Can you please add Proxy DHCP support?

 

Thats a killer feature to me - would definitely use it on the work network if it had that :) :)



#69 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 08 July 2013 - 06:02 AM

Hi Lewis,

 

Tiny PXE Server supports WDS & RIS proxydhcp options.

What options are you looking for?

 

Regards,

Erwan



#70 tintep

tintep
  • Members
  • 6 posts
  •  
    Thailand

Posted 08 July 2013 - 06:49 AM

Hi Erwan

 

Thank you for your menu is very well.   I don't use  winserver   apache  iss.... 

IF tiny send file with HTTPd   How to?    



#71 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 08 July 2013 - 08:00 AM

Hi Erwan

 

Thank you for your menu is very well.   I don't use  winserver   apache  iss.... 

IF tiny send file with HTTPd   How to?    

 

Hi Tintep,

 

Set ipxe boot strapper as main boot filename,

set my_script.ipxe (containing the above wimboot) as user class boot filename (right below the main boot file name),

tick httpd on top of the window (ticked by default),

and "voila" : it will boot your winpe :)

 

Regards,

Erwan



#72 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 08 July 2013 - 09:22 AM

version 1.0.0.13 out
  • added : ability to filter (inclusive) mac addresses (rename filter.sample to filter.txt)
  • added : quick and dirty faq that will evolve as it goes


#73 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 10 July 2013 - 09:00 PM

Added a quick faq in the zip file and also to be found here : http://erwan.labalec...xesrv-faq.xhtml touching the following topics : 

 

1.how to pxe boot pxelinux

2.how to pxe boot grub4dos

3.how to pxe boot ipxe+menu

4.how to pxe boot ipxe+pxelinux

5.how to pxe boot ipxe+iscsi thru rootpath

6.how to pxe boot ipxe + g4dos

7.how to pxe boot winpe3 (wim) thru WDS

8.how to pxe boot xp installation thru RIS

9.how to pxe boot winpe3 (wim) thru ipxe+wimboot

10.how to pxe boot an iso file thru ipxe + memdisk

11.how to pre load settings in Tiny PXE Server

12.how to serve only specified mac addresses (and ignore others)

13.how to keep most recent used settings



#74 Lewis

Lewis

    Newbie

  • Members
  • 18 posts
  •  
    Australia

Posted 11 July 2013 - 04:34 AM

Oh okay, I get it now. I just saw it in the program.... interesting.

 

Erwan this is probably a long shot, but you mentioned in your initial post about open source. Where can I get the source for this app? If not that, could you please explain to me how you got your knowledge about the DHCP specification? I want to learn as much about Proxy DHCP as I can...

 

Thanks buddy, you're doing a great job :)



#75 sebus

sebus

    Frequent Member

  • Advanced user
  • 363 posts

Posted 25 August 2013 - 06:28 AM

Thanks, excellent app. Would it be possible to make it installable as Windows service?

 

sebus






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users