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

#126 misty

misty

    Gold Member

  • Developer
  • 1034 posts
  •  
    United Kingdom

Posted 13 September 2013 - 01:58 PM

@erwan.l
This looks like a great tool. I haven't had the chance to use it yet as my network doesn't currently allow testing. It seems to run ok (in terms of starting if nothing else) in WinPE and will potentially come in very handy for connecting two devices together with a cross over cable for a quick installation method. Can't wait to test it as I've been after a WinPE based PXE server solution.

I set up a home server at the start of the year (a grand term for a low spec box running Windows XP) and ended up using Serva as I required proxyDHCP - so glad to see that you have recently added this feature.

Assuming it works when I can test it properly then very well done ;)

Regards,

Misty

#127 erwan.l

erwan.l

    Platinum Member

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

Posted 13 September 2013 - 09:42 PM

Hi Misty,

 

Thanks for the positive feedback.

 

I did not perform any test under winpe so any feedback will be welcome.

 

Regards,

Erwan



#128 avindra

avindra
  • Members
  • 6 posts
  •  
    United States

Posted 15 September 2013 - 05:28 AM

I just created an account on this site to say thanks! I wanted to get rid of my Serva setup on Windows....

 

I eventually did that by using TFTPd, Apache for http and for DHCP (drumroll...) a virtualized Ubuntu install running a properly configured dnsmasq setup.

 

Now I can just run this program you've made and TFTPd... and bam, network booting. Thanks! Have you / are you going to make this an open source project?

 

Thanks again.

 

P.S.: I found your program searching for "best http server for pxe" on google. I was looking to see if something out there was faster / better suited than a full on Apache server. I found something even better  :loleverybody:


Edited by avindra, 15 September 2013 - 05:30 AM.


#129 coder

coder

    Member

  • Members
  • 63 posts
  •  
    United States

Posted 15 September 2013 - 10:06 AM

@ "avindra"

 

:spam: Typical hidden well known forum member as single post spammer :spam:


Edited by coder, 15 September 2013 - 10:09 AM.


#130 erwan.l

erwan.l

    Platinum Member

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

Posted 15 September 2013 - 10:57 AM

Hi Coder,

Can you tell me more on your last thread ?

 

This seems again one of your gratuitious comment but I may be wrong : if so, please name that "well known forum member" and eventually raise it to the forum admins.

 

For sure, every time serva is mentionned, you are always very quick to react which makes me wonder if you have personal interests in that software.

Regards
Erwan



#131 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 15 September 2013 - 12:10 PM

@ "avindra"

 

:spam: Typical hidden well known forum member as single post spammer :spam:

Any evidence, even of circumstantial nature to support your rather serious and belittling statement? :dubbio:

 

 

:cheers:

Wonko



#132 coder

coder

    Member

  • Members
  • 63 posts
  •  
    United States

Posted 15 September 2013 - 12:36 PM

evidence?

c'mon guys just read avindra's post

 

Single post, talking badly about a different software that you guys hate, saying things like

 

:showoff: "best http server for pxe" :showoff:

 

do yuo need more evidence WONKO?



#133 avindra

avindra
  • Members
  • 6 posts
  •  
    United States

Posted 15 September 2013 - 02:03 PM

@coder:

 

I was just expressing my gratitude for this piece of software.... it saves me the trouble of booting up an entire VM just to get a DHCP server that works in conjunction with my home router.

 

I have no idea what you're on, but may I please have some of it?  :loleverybody:



#134 erwan.l

erwan.l

    Platinum Member

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

Posted 15 September 2013 - 02:31 PM

evidence?

c'mon guys just read avindra's post

 

Single post, talking badly about a different software that you guys hate, saying things like

 

:showoff: "best http server for pxe" :showoff:

 

do yuo need more evidence WONKO?

 

Your gratuitious comments have now turned into ridiculous comments ...

 

"a different software that you guys hate" ?

Where did you get that?

I am only a developper offering free softwares, possibly open source, just for the fun of it.

I am not into a competition mode, nor I am trying to get money or celebrity out of it.

 

And accusing Wonko of posting under a different alias to market my software (or any software !) is absolutely stupid.

Come on : you cannot be serious there... or else you could be suffering from paranoia...

 

I am again wondering why you are so sensitive about serva...

If you are the author of this product, like I am starting to think, then say it loud and lets share ideas in a constructive way.

There are tons of examples on this forum where dev guys work together.

 

/Erwan



#135 coder

coder

    Member

  • Members
  • 63 posts
  •  
    United States

Posted 15 September 2013 - 03:01 PM

Your gratuitious comments have now turned into ridiculous comments ...

I have never talked to you like that. why don't you just keep it professional. :hmm:

 

 

"a different software that you guys hate" ?

Where did you get that?

read avindra's "first" sentence on this forum: :ermm:
I just created an account on this site to say thanks! I wanted to get rid of my Serva setup on Windows....

posted right after misty's comment mentioning serva on the side.

 

 


And accusing Wonko of posting under a different alias to market my software (or any software !) is absolutely stupid.

Come on : you cannot be serious there...

:questionmark: ... I have never accused WONKO of anything. Not even indirectly.

 

 

I am again wondering why you are so sensitive about serva...

I'm not sensitive about Serva, I think it was in this thread I was commenting about it (because the relationship with your tiny pxe is obvious) and I felt harassed by one of Nuno Brito replies :ranting2: . That thing really bothered me at the time. But we all make mistakes; today not a big deal.



#136 avindra

avindra
  • Members
  • 6 posts
  •  
    United States

Posted 15 September 2013 - 03:14 PM

read avindra's "first" sentence on this forum: :ermm:

I just created an account on this site to say thanks! I wanted to get rid of my Serva setup on Windows....

posted right after misty's comment mentioning serva on the side.

 

@Coder: Here is a helpful resource for you.

 

I'm not a spammer. Here's my twitter account, where I made a posting about ipxe a few days (maybe weeks) ago.

 

If anything, I'm inclined to believe you are the author of Serva. But I doubt that you are. Let's discontinue the wild accusations and act like we're not in grade school anymore.



#137 erwan.l

erwan.l

    Platinum Member

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

Posted 15 September 2013 - 03:42 PM

 Let's discontinue the wild accusations and act like we're not in grade school anymore.

 

Fully aggree : Lets do that  :good:

 

Coming back to your initial post, you mention that you run Tiny PXE Server next to your tftp server (or may be I read incorrectly).

 

Be aware that Tiny PXE Server also has a tftp daemon built in : it is not always obvious looking at the GUI as you cannot enable/disable it there (possible via the ini file thus).

Just thought I would bring your attention on that.

 

Regards,

Erwan



#138 avindra

avindra
  • Members
  • 6 posts
  •  
    United States

Posted 15 September 2013 - 04:20 PM

Thanks for the heads up Erwan. I did notice that it has its own TFTP daemon (due to messages in the log).

 

I quickly discovered that setting the

tftpd=0

Option in the config.ini disables it.

 

By the way - if you do decide to make this open source, let me know! I'd love to contribute a few patches (to make the interface / settings more friendly).



#139 miol

miol
  • Members
  • 1 posts
  •  
    Singapore

Posted 16 September 2013 - 04:49 AM

Fantastic tool!

 

Is it possible to change the http server port?

 

Is there a setting for that?



#140 Lewis

Lewis

    Newbie

  • Members
  • 18 posts
  •  
    Australia

Posted 16 September 2013 - 04:57 AM

Yeah Erwan, this tool is awesome. It frustrates me no end when people come into the thread and accuse other people of being spammers etc when they're just being gracious.

Also throwing my hat in the ring for open-source :) I have no idea how Proxy DHCP works and I'd love to understand its implementation :)



#141 erwan.l

erwan.l

    Platinum Member

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

Posted 16 September 2013 - 06:03 AM

Fantastic tool!

 

Is it possible to change the http server port?

 

Is there a setting for that?

 

Hi Miol,

 

Thanks for the feedback.

 

In the config.ini, include the following to change the httpd port :

 

[web]

port=xxxx

 

xxxx being any (free) port from 1 to 65535.

 

Regards,

Erwan



#142 erwan.l

erwan.l

    Platinum Member

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

Posted 16 September 2013 - 06:09 AM

Yeah Erwan, this tool is awesome. It frustrates me no end when people come into the thread and accuse other people of being spammers etc when they're just being gracious.

Also throwing my hat in the ring for open-source :) I have no idea how Proxy DHCP works and I'd love to understand its implementation :)

 

Hi Lewis,

 

The proxydhcp protocol is a bit hacky (IMHO).

Basic steps are

1/
It sits on a subnet and sniff out PXE-based DHCPDISCOVER traffic (port 67 and/or 4011), and broadcasts back, alongside the corresponding DHCPOFFERs (from other server(s)).
The biggest difference being that ProxyDHCP sends null IP addresses (it focuses on extra information such as boot filename, etc).
 
2/
The client with then send DHCPREQUEST to both the dhcp server (port 67) and to the proxydhcp (port 4011).
 
3/
Both server will respond with a DHCPACK : the dhcp server with ip details and the proxydhcp with extra details like the boot file name.

Tiny PXE Server share its code with another of my software which I am working on for years (more than 10).

Hence the core code being extremely messy : once cleaned up it will be ready for open source (sourceforge, or else).

I can however share however bits of (delphi) code : PM me eventually.

 

Regards,

Erwan



#143 erwan.l

erwan.l

    Platinum Member

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

Posted 18 September 2013 - 06:19 PM

Coming back on Wonko's comment (here), and following Sebus request (here), about setting an app as a service, I did try http://nssm.cc/ .

 

Tiny Pxe Server does work as a service thanks to nssm.

I recommend to run as system and to tick "enable to interact with desktop".

 

Side note, under windows 7, it goes to session 0.

Windows will propose to peek on session 0.

You can also manually switch to that session with this command : rundll32 winsta.dll,WinStationSwitchToServicesSession  .

 

Makes me think that I should offer the option to dump log to a text file for users not willing to bother about the GUI.

 

Regards,

Erwan



#144 erwan.l

erwan.l

    Platinum Member

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

Posted 18 September 2013 - 06:45 PM

Added : "log" (=1 or =0) option in config.ini to dump to a text file (next to the memo control).

 

Possible usage is to run Tiny Pxe Server as a service (interactive or not) and to check actions in log.txt (created in the same folder as the executable).

 

Regards,

Erwan



#145 Hellingher

Hellingher
  • Members
  • 3 posts
  •  
    France

Posted 25 September 2013 - 12:42 AM

Hi Erwan

 

Firstly a great thanks for your incredible tool and your incredible work. Better than... :censored:  no i'm not going to said it one more time in this thread. Secondly, i'm not really good as you are but i'm trying as a newbie with PXE, only mastering DRBL servers. And your knowledge impress me.

 

I Followed your FAQ (10) and read the thread.

 

But i have an interesting challenge :

 

I'm in a network with DHCP, a Ghost PXE Server. With no access on them. SCCM and AD.

We're using USB keys so called WIM key. But we lack of USB key as USB key are corrupted sometimes. And i have 50 machine to master for friday. Then i'm searching how to convert USB boot setup into PXE setup and i'm here discovering your work.

 

(Content of USB key, here ISO extracted from USB with boot sector (12GB))

2013_09_25_02_10_08_Greenshot.jpg

 

the setup from key boot and start it's own dhcp client, rename machine, sccm, registrering AD and setup windows.

 

Is there's a way your tool could help me to mastering without using USB but only PXE server?

 

The challenge is a bit high for me alone :pressure:  and i came with humility : your advice should be good : Which is the better way ? Iso ? Make it as a wim file? extract into files folder ?

log=1
root=files
filename=ipxe-undionly.kpxe
altfilename=iso.ipxe
optextra=175.6.1.1.1.8.1.1
httpd=1
tftpd=1
proxydhcp=1

iso-ipxe

#!ipxe
set boot-url http://${dhcp-server}
initrd ${boot-url}/images/wim7gie.iso
kernel ${boot-url}/memdisk iso raw
boot

By advance a great thanks just for reading me and for your program :smiling9:

 

See ya


Edited by Hellingher, 25 September 2013 - 12:47 AM.


#146 erwan.l

erwan.l

    Platinum Member

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

Posted 25 September 2013 - 07:47 AM

Hi Erwan

 

Firstly a great thanks for your incredible tool and your incredible work. Better than... :censored:  no i'm not going to said it one more time in this thread. Secondly, i'm not really good as you are but i'm trying as a newbie with PXE, only mastering DRBL servers. And your knowledge impress me.

 

I Followed your FAQ (10) and read the thread.

 

But i have an interesting challenge :

 

I'm in a network with DHCP, a Ghost PXE Server. With no access on them. SCCM and AD.

We're using USB keys so called WIM key. But we lack of USB key as USB key are corrupted sometimes. And i have 50 machine to master for friday. Then i'm searching how to convert USB boot setup into PXE setup and i'm here discovering your work.

 

(Content of USB key, here ISO extracted from USB with boot sector (12GB))

2013_09_25_02_10_08_Greenshot.jpg

 

the setup from key boot and start it's own dhcp client, rename machine, sccm, registrering AD and setup windows.

 

Is there's a way your tool could help me to mastering without using USB but only PXE server?

 

The challenge is a bit high for me alone :pressure:  and i came with humility : your advice should be good : Which is the better way ? Iso ? Make it as a wim file? extract into files folder ?

log=1
root=files
filename=ipxe-undionly.kpxe
altfilename=iso.ipxe
optextra=175.6.1.1.1.8.1.1
httpd=1
tftpd=1
proxydhcp=1

iso-ipxe

#!ipxe
set boot-url http://${dhcp-server}
initrd ${boot-url}/images/wim7gie.iso
kernel ${boot-url}/memdisk iso raw
boot

By advance a great thanks just for reading me and for your program :smiling9:

 

See ya

 

Hi Hellingher,

 

Thanks for your positive comment.

Although I cannot validate comments about other products.

 

The below ipxe code will work and is probably the preferred way :

 

set boot-url http://${dhcp-server}
  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 
 
The below will also work :
 
set boot-url http://${dhcp-server}
initrd ${boot-url}/images/wim7gie.iso
kernel ${boot-url}/memdisk iso raw
boot
 
The below will also work :
 
set boot-url http://${dhcp-server}
sanboot --no-describe ${boot-url}/images/wim7gie.iso

 
If you use proxydhcp mode in Tiny PXE Server (i.e if there is already a DHCP on your LAN), replace dhcp-server by next-server.
 
Did you say that your ISO was 12gb?
If so, then forget the memdisk or wimboot solution (#1 and #2 above) and rather stick to sanboot (which does load not the iso in mem but rather emulates a block device).
That 12gb detail could be a tough constraint and you have to review this part.
 
Regards,
Erwan


#147 erwan.l

erwan.l

    Platinum Member

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

Posted 25 September 2013 - 06:32 PM

Version 1.0.0.15 is out.

 

Main news is the auto create windows share feature.

 

Adding smb=1 in the config.ini (under [dhcp]) will make it so that Tiny PXE Server will automatically create a windows share on (named PXE) the current root, side by side to the tftpd and/or http daemons.

 

What for?

To enable the booting of live distros such as Linux Mint, Ubuntu, etc.

 

Example below of an ipxe code using a cifs share :

set boot-url http://${next-server}
set cifs-server //${next-server}
kernel ${boot-url}/mint/casper/vmlinuz showmounts toram root=/dev/cifs boot=casper netboot=cifs nfsroot=${cifs-server}/pxe/mint NFSOPTS=-ouser=username,pass=password,ro ip=dhcp ro
initrd ${boot-url}/mint/casper/initrd.lz
boot

More details here.

 

This can also be handy for a XP RIS installation (which requires a windows share).

 

Regards,

Erwan



#148 Hellingher

Hellingher
  • Members
  • 3 posts
  •  
    France

Posted 25 September 2013 - 07:13 PM

:1st: Erwan. I'll make a feedback about how it's work in a big pool dispatched between mass entities, mass  mastering, 7 and XP. The windows share is a really helpfull option & i'll try it ASAP.



#149 coder

coder

    Member

  • Members
  • 63 posts
  •  
    United States

Posted 25 September 2013 - 09:38 PM

good job erwan;

how did you come up with this lines :dubbio: 

kernel ${boot-url}/mint/casper/vmlinuz showmounts toram root=/dev/cifs boot=casper netboot=cifs nfsroot=${cifs-server}/pxe/mint NFSOPTS=-ouser=username,pass=password,ro ip=dhcp ro
initrd ${boot-url}/mint/casper/initrd.lz


#150 coder

coder

    Member

  • Members
  • 63 posts
  •  
    United States

Posted 25 September 2013 - 09:56 PM

never mind, I just googled for

"showmounts toram root=/dev/cifs boot=casper netboot=cifs nfsroot"

and it is pretty clear where you got those lines from... :clown:

 

It is always good mentioning the sources though :good:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users