Page 1 of 1

Installation fromPXE netboot

Posted: Sun Jan 24, 2016 11:54 pm
by Dbat
My Notebook can not Boot over USB and has no optical drive.
So the only was to install is over PXE.
I have installed an PXE Server and try with Linux mint. All work Fine.

But with Mx-Linux Installation Hangs After a while.

Andy hints

Regards

Re: Installation fromPXE netboot

Posted: Mon Jan 25, 2016 1:00 am
by Eadwine Rose
Welcome Dbat! First thing to do: have you checked the md5sum of the file to see if it is correct?

Re: Installation fromPXE netboot

Posted: Mon Jan 25, 2016 1:21 am
by Dbat
Yes the problem is how to configure the pxelinux.cfg menu

for ubuntu it's like:
KERNEL images/ubuntu/casper/vmlinuz
APPEND boot=casper vga=normal netboot=nfs nfsroot=„IP der Syno“:/volume1/PXE/images/ubuntu fetch=tftp://„IP der Syno“/images/ubuntu/casper/filesystem.squashfs initrd=images/ubuntu/casper/initrd.lz

in MXLinux you have the folders
antiX with file vmlinux
but also folder boot and EFI with subfolders

Re: Installation fromPXE netboot

Posted: Mon Jan 25, 2016 2:36 am
by lucky9
no optical drive makes my suggestion somewhat lame.

Re: Installation fromPXE netboot

Posted: Mon Jan 25, 2016 4:25 am
by Dbat
The Problem is after load from PXE it shows following error:
unknown boot codes:
netboot=nfs

could not find linuxfs files

Re: Installation fromPXE netboot  [Solved]

Posted: Mon Jan 25, 2016 7:17 am
by i_ri
hello
You got grub. use the success of one installed[Mint] to partition and install MX-15 then delete the first[Mint]?
install antix core or mx with this model? will that work? :
http://antix.mepis.org/index.php?title= ... ation_Tips
this begins with "for example" in the Mepis Methods documentation that so glad Jerry3904 protected.:
http://www.mepis.org/docs/en/index.php? ... thout_a_CD
tips here thread update the mepis examples too? :
http://forum.mepiscommunity.org/viewtop ... 3&start=10
encouraging that you are intent on MX; you have MX on another machine?

Re: Installation fromPXE netboot

Posted: Mon Jan 25, 2016 2:23 pm
by lucky9
lucky9 wrote:no optical drive makes my suggestion somewhat lame.
But I should mention that having an External CD/DVD Burner is a benefit in many ways.

Re: Installation fromPXE netboot

Posted: Mon Jan 25, 2016 2:34 pm
by BitJam
Dbat wrote:The Problem is after load from PXE it shows following error:
unknown boot codes:
netboot=nfs

could not find linuxfs files
Our live system does not support the netboot feature.

I think i_ri's suggestion is excellent. If you have grub running on that machine already then you can either unpack our iso file and copy over /antiX directory and add a boot entry for it or you could try to boot our iso file directly from grub. For this to work, I think you need to pass in the fromiso=xxxx cheat pointing our system to the iso file.

I think it is better to mount the iso file and copy over the /antiX directory to your system. If you can copy the /antiX directory to the same partition that grub is on then an entry like this in your grub.cfg should work:

Code: Select all

menuentry "MX-15 Live" {
linux /antiX/vmlinuz quiet from=hd
initrd /antiX/initrd.gz
}
I don't know how this translates to the format used by the files grub-update reads. The "from=hd" is needed because we don't normally look at non-usb disk drives for the linuxfs file. You could replace this with either "blab=xxxx" or "buuid=yyyy*" where "xxxx" is the label of the partition that holds the linuxfs file or "yyyy" are the leading characters of the UUID of that partition. You can specify the entire UUID but sometimes it is easier to specify the leading characters followed by a "*".

The installer might balk at using the same drive the live system is running on. If so then, a small modification to the partition-info script can get around this restriction.

Re: Installation fromPXE netboot

Posted: Mon Jun 10, 2019 1:35 am
by sevo44
Prompt please, a situation with an opportunity of loading of an image on PXE changed. I get the error shown in the photo.
https://sevo44.ru/sevo44/foto-forums/mx ... ot-pxe.png

Re: Installation fromPXE netboot

Posted: Tue Jun 11, 2019 6:15 am
by BitJam
sevo44 wrote: Mon Jun 10, 2019 1:35 am Prompt please, a situation with an opportunity of loading of an image on PXE changed. I get the error shown in the photo.
https://sevo44.ru/sevo44/foto-forums/mx ... ot-pxe.png
As I said above, our system does not support the PXE netboot feature. Sorry.

Re: Installation fromPXE netboot

Posted: Tue Jun 11, 2019 7:54 am
by dekar
Hello all!

Do we plan adding netboot functional in future releases?

It's really needfully feature.

Re: Installation fromPXE netboot

Posted: Tue Jun 11, 2019 12:46 pm
by patpat
ditto.

Today a Linux distro w/o PXE support is hard to believe....

Re: Installation fromPXE netboot

Posted: Tue Jun 11, 2019 1:35 pm
by fehlix
dekar wrote: Tue Jun 11, 2019 7:54 am Hello all!

Do we plan adding netboot functional in future releases?

It's really needfully feature.
Suggest to open a Enhancement request at https://bugs.mxlinux.org/,
to get better visibility.
Thanks
:puppy:

Re: Installation fromPXE netboot

Posted: Thu Jun 20, 2019 6:58 pm
by patpat
MX (or antiX) does not support PXE boot because:
1) The booting initrd does not include the required network components.
2) The included init script does not know anything about network boot

But Serva did it:
https://www.vercot.com/~serva/an/NonWindowsPXE3.html

Their approach consists of loading a sequence of 2 initrds included in MX's ISO and a tiny one provided by Serva;
I just got a PXE booting MX 18.3; cool.

Re: Installation fromPXE netboot

Posted: Sun Aug 18, 2019 5:44 pm
by sevo44
BitJam wrote: Tue Jun 11, 2019 6:15 am As I said above, our system does not support the PXE netboot feature. Sorry.
As I understand it the plans to make the ability to boot to PXE, no? Tell me what I need to fix in order to configure the PXE boot. Did different builds to boot on PXE, but your just perfect. It spoils the inability to boot PXE software.

Re: Installation fromPXE netboot

Posted: Sun Aug 18, 2019 5:51 pm
by sevo44
patpat wrote: Thu Jun 20, 2019 6:58 pm Their approach consists of loading a sequence of 2 initrds included in MX's ISO and a tiny one provided by Serva;
I just got a PXE booting MX 18.3; cool.
Tell me how you did it?

Re: Installation fromPXE netboot

Posted: Mon Aug 19, 2019 1:31 am
by m_pav
Patpat provided a link in his response. Open that link, scroll to about halfway down that page, look for the MX logo and see for yourself.

Re: Installation fromPXE netboot

Posted: Thu Jun 11, 2020 1:14 pm
by patpat
PXE support for 19.2 now available
https://www.vercot.com/~serva/an/NonWindowsPXE3.html

Re: Installation fromPXE netboot

Posted: Tue May 24, 2022 1:08 pm
by gk_j
Hi all,
my situation related to this topic was: Thinkpad X31, optical drive broken, does not boot from usb, but working usb port.
I am not completely sure, if I get everything from this thread right, esp. if everything should have worked out fine out of the box with antiX 19.5, which I used. Otherwise:

BitJams suggestion in #8:
I think i_ri's suggestion is excellent. If you have grub running on that machine already then you can either unpack our iso file and copy over /antiX directory and add a boot entry for it or you could try to boot our iso file directly from grub. For this to work, I think you need to pass in the fromiso=xxxx cheat pointing our system to the iso file.
-> I did not try this.

BitJams suggestion in #8:
I think it is better to mount the iso file and copy over the /antiX directory to your system. If you can copy the /antiX directory to the same partition that grub is on then an entry like this in your grub.cfg should work:

Code: Select all

menuentry "MX-15 Live" {
linux /antiX/vmlinuz quiet from=hd
initrd /antiX/initrd.gz
}
-> I tried this, but it didn't work out. Booting up antiX 19.5 and 21 was ok, but the installer consequently ignored the hdd it booted from (all partitions on sda, not only the partition booted from). I would not know how to do the "small modification to the partition-info script".

What worked for me:
For the preparation (TFTP-Server) I used https://wiki.ubuntuusers.de/PXE-Installation/ (which should be quite similar to https://wiki.debian.org/PXEBootInstall? ... boot_image
I used the netboot files from debian: http://www.debian.org/distrib/netinst#netboot.
I copied the folder antiX from the 19.5 full iso to .../netboot/debian-installer/i386/antiX/.
I edited .../netboot/debian-installer/i386/boot-screens/txt.cfg - so it had the following entry (yes, dirty and quick...):

Code: Select all

  kernel debian-installer/i386/antiX/vmlinuz
  append initrd=debian-installer/i386/antiX/initrd.gz --- nomodeset
I made an USB-Stick with /antiX/linuxfs on it and plugged it in.
The notebook then booted the vmlinuz and initrd.gz, complained about not finding the linuxfs at first, then looked for it on usb-drives, found it there and booted antiX 19.5 up completely. The installer then could use the full sda and worked smoothly till the end.

Re: Installation fromPXE netboot

Posted: Sat Nov 11, 2023 7:26 pm
by korilius
I'm late to this party. I wasted an hour fiddling with this when I should have searched here first. It appears no one submitted a feature request to Bugzilla (or I missed it in a search). Is that still a valid thing to do? If so, I will. I'm gonna rest my brain and then read this post provided by @patpat .

I'll volunteer to enhance / fix - if it's feasible and I am capable of doing so.

Re: Installation fromPXE netboot

Posted: Sat Nov 11, 2023 7:41 pm
by korilius
gk_j wrote: Tue May 24, 2022 1:08 pm ...

What worked for me:
For the preparation (TFTP-Server) I used https://wiki.ubuntuusers.de/PXE-Installation/ (which should be quite similar to https://wiki.debian.org/PXEBootInstall? ... boot_image
I used the netboot files from debian: http://www.debian.org/distrib/netinst#netboot.
I copied the folder antiX from the 19.5 full iso to .../netboot/debian-installer/i386/antiX/.
I edited .../netboot/debian-installer/i386/boot-screens/txt.cfg - so it had the following entry (yes, dirty and quick...):

Code: Select all

  kernel debian-installer/i386/antiX/vmlinuz
  append initrd=debian-installer/i386/antiX/initrd.gz --- nomodeset
I made an USB-Stick with /antiX/linuxfs on it and plugged it in.
The notebook then booted the vmlinuz and initrd.gz, complained about not finding the linuxfs at first, then looked for it on usb-drives, found it there and booted antiX 19.5 up completely. The installer then could use the full sda and worked smoothly till the end.
This hack has nothing to do with PXE, not really. If you need a usb stick, then why are you bothering with PXE in the first place? I'd say you should have just abandoned PXE at that point and used the usb stick or keep looking for a way to find and load linuxfs

Re: Installation fromPXE netboot

Posted: Sun Nov 12, 2023 8:21 am
by korilius
I'm using netboot.xyz pointing locally.

It appears that whatever worked before is failing to work now. Or I am failing to translate / follow instructions. Or both. I got as far as this error message:

Code: Select all

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
"It's very late, or very early" - I'm taking a break and a nap. Shoutout to see if @patpat is willing to have a look.

I seem to have distilled what I know into this relevant section of the .ipxe :

Code: Select all

live-mx-linux.ipxe
#======================================================================================================================================================
#======================================================================================================================================================

:mx-linux-23.1-cli_x64-squash

# Clear previous loaded images
imgfree

set live_endpoint http://192.168.1.36:8038
set file_path MX/Community_Respins/CLI

# Load the kernel
kernel ${live_endpoint}/${file_path}/vmlinuz

# Load the default initrd (choose the one that is normally used for booting)
# See here https://www.vercot.com/~serva/an/NonWindowsPXE3.html  && here https://www.antixforum.com/forums/topic/antix-19-2-pxe-boot/
initrd ${live_endpoint}/${file_path}/initrd.gz
initrd ${live_endpoint}/${file_path}/initrd.img-6.1.0-13-amd64
initrd ${live_endpoint}/${file_path}/INITRD_N29.1.GZ

# Set the boot parameters to fetch the SquashFS file
set boot_params "fetch=http://192.168.1.36:8038/MX/Community_Respins/CLI/antiX/linuxfs ip=dhcp"

# Boot the system
boot ${live_endpoint}/${file_path}/vmlinuz ${boot_params}
#======================================================================================================================================================
#======================================================================================================================================================
edit 2023NOV13@1235: I'm looking at this KIWI NG page now, it looks like it might help.
And an old Geeks article

edit 2023NOV14@2200: I've spun an nfs server and attempted to boot from that mounted volume. Back to kernel panic.
Docs I'm currently looking at: https://netboot.xyz/docs/faq/ https://github.com/netbootxyz/build-pip ... /README.md

edit 2023NOV17: I gave up trying to contact the serva support person at vercot
My closes success is being able to boot into what appears to be a Debian netboot type installer and then it complains about failing to find the installation media.

Re: Installation fromPXE netboot

Posted: Tue Jan 23, 2024 4:11 pm
by korilius
For anyone who's wants to netboot MX Linux. This guy has figured it out. https://sourceforge.net/projects/pengui ... /mx-linux/ I gave up on netboot xyz