Page 1 of 1

[Solved][PXE Boot] http_server empty

Posted: 18 Sep 2019, 13:04
by kaaremai
Hi,

I'm trying to setup PXE booting. I'm using this guide: https://porteus-kiosk.org/pxe-server.html

I use a Windows Server 2016 running TFTP and HTTP. Another server is running our DHCP server which i have updated with the proper PXE boot info.

I have created the ISO with the pxe client enabled and unpacked the ISO in the proper folders so that the pxe boot files them selves get served in:

c:\tftp\boot and the xzm files get serverd on <ip>\xzm.

The client machine boots properly over LAN through TFTP but then it errors out with blue text saying:

Code: Select all

If you are booting from writable media then please make sure you have burned teh ISO using.... and then later Press ´d´ to display debug info....
Then when i press "d" it says:

booting parameters: net.ifnames=0 video=hyperv_fb:1920x1080 initrd=initrd.xz,pxelinux.cfg/initrdpxe.xz quiet http_server= BOOT_IMAGE=vmlinuz
kernel...'
kernel modules...
available network interfaces: lo

The http_server field i updated in the pxelinux.cfg/default file but it's still empty in the above text. Also is it correct that available network interfaces should only say "lo"?

[PXE Boot] http_server empty

Posted: 19 Sep 2019, 10:48
by fanthom
Hello kaaremai,

"The http_server field i updated in the pxelinux.cfg/default file but it's still empty in the above text. Also is it correct that available network interfaces should only say "lo"?"
Your kiosk client must be booting from some other ISO as initrdpxe.xz is not transported on the client side.
Also http_server can not be empty.

Thanks

[PXE Boot] http_server empty

Posted: 19 Sep 2019, 11:54
by kaaremai
fanthom wrote:
19 Sep 2019, 10:48
Hello kaaremai,

"The http_server field i updated in the pxelinux.cfg/default file but it's still empty in the above text. Also is it correct that available network interfaces should only say "lo"?"
Your kiosk client must be booting from some other ISO as initrdpxe.xz is not transported on the client side.
Also http_server can not be empty.

Thanks
Hi,

I made the ISO file on the client with the PXE client box ticked. Then i downloaded the ISO to the server and unpacked it. The client can now boot over PXE. However it fails when trying to download the xzm modules it seems.

The client cannot be booting from something else as theres no harddrive in the machine with linux on and no conected USB drive either.

I just noticed that it also says the following before the above error:
Missing parameter in configuration file. Keyword: x.x.x.x (where the x's are the IP that i entered in the config file)

The config file looks like this:

Code: Select all

timeout 0
prompt 0
default pxe
label pxe
kernel vmlinuz
append initrd=initrd.xz,pxelinux.cfg/initrdpxe.xz quiet http_server=x.x.x.x
Where again the x.x.x.x is the IP of the server.

One thing that i'm also not sure about which is not clear in the tutorial is the file structure on the http server. Right now if i enter http://x.x.x.x/ then it shows one folder named /xzm where the xzm files is located in is this correct? I seem to have read somewhere that you should see a folder named /porteus.

[PXE Boot] http_server empty

Posted: 19 Sep 2019, 12:12
by kaaremai
The problem was the file format! When opening the default file in notepad on windows it changes the carriage return from only CR to CR LF. When editing it in notepad++ it now works!

I still have some issues but they're not related to this problem so i'll make another post if i can't solve them my self.