Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to find out if PXE booting can be done from anything other than an ISO.
On my server side, I'd like to have a partition containing all the data the remote system would need to boot from. The hope is to avoid needing to wrap boot images up into ISO files. I wondered if I could just point tftp to a partition instead of an ISO file, but I can't find any documentation to support this.
The second one just uses GRUB to boot, meaning the server setup is much simpler - just an nfs share. But you need to mess with GRUB on the client side to actually get it to boot. Still, this How-To describes in specific detail how to create the nfs share. It doesn't need to be a separate partition, but it can be. It just needs to be a file tree. Note that you don't necessarily need to set up a separate nfs export share for each client computer. You can have a big share which includes multiple full OS file trees underneath it.
The first How-To gets to the meat of what you want. It describes the PXE setup and specifically what to put in /srv/tftp/pxelinux.cfg/default to make it work. It's something like this:
There is no point that I can see in booting an ISO via PXE. That must have origins in some specific use case which has been propagated in unintended ways.
Try to not focus on it being a Slackware document, the ideas and configuration are fairly generic. Just learn how the DHCP and TFTP servers are related to the network and HTTP/FTP/NFS file transfer schemes to form a "PXE server".
There is no point that I can see in booting an ISO via PXE. That must have origins in some specific use case which has been propagated in unintended ways.
Try to not focus on it being a Slackware document, the ideas and configuration are fairly generic. Just learn how the DHCP and TFTP servers are related to the network and HTTP/FTP/NFS file transfer schemes to form a "PXE server".
Did you intend to link to a different web page? The one you linked to describes how to run the Slackware installer over PXE. This is meant to allow the PXE boot client to run the installer, doing a traditional local install onto a local hard drive. This sort of thing can be useful when there is no working CD-ROM drive or USB boot option, and the local hard drive is something weird that you can't just move to another computer to do the install.
I used to have the Debian installer configured as a PXE boot option, but the use cases appropriate for it became so rare that I stopped bothering. Boot from USB is so ubiquitous.
Did you intend to link to a different web page? The one you linked to describes how to run the Slackware installer over PXE.
That is the page I intended. Although its main purpose is running the Slackware installer via PXE, it is an excellent walkthrough for booting almost anything over PXE. That is, forgetting the Slackware-specific files and use as noted, it discusses setting up each component of a working PXE server very clearly.
Starting from nothing but the corresponding document for Slackware 12.1 I originally set up and continue to manage my own local PXE servers, all booting not only different Slackware installers, but several live distros, FreeBSD and Dragonfly installers, GParted utilities, memtest, and more... all the essentials are there in simplest form, all you have to do is apply it to your own case.
Put another way, while it a Slackware How-To, it is also a complete and easy to use generic PXE guide with Slackware installer as an example. It is all about configuring the PXE server.
That is the page I intended. Although its main purpose is running the Slackware installer via PXE, it is an excellent walkthrough for booting almost anything over PXE. That is, forgetting the Slackware-specific files and use as noted, it discusses setting up each component of a working PXE server very clearly.
Starting from nothing but the corresponding document for Slackware 12.1 I originally set up and continue to manage my own local PXE servers, all booting not only different Slackware installers, but several live distros, FreeBSD and Dragonfly installers, GParted utilities, memtest, and more... all the essentials are there in simplest form, all you have to do is apply it to your own case.
It doesn't sound like you have set up any diskless PXE boot systems, which is what the original poster was asking about (the OS drive is on a server's partition, not a local disk or local unionfs ramdisk).
Whether you realize it or not, this requires significantly different setup than just pointing something (what, specifically?) at a partition of files copied from a local install. You've got to do different things to create the initrd, you've got to do different things in /etc/fstab, and there are a bunch of annoying things that can go wrong with network-manager and ethernet device setup.
I suspect you would have realized this if you had actually set up a non-live diskless PXE boot system.
There are a lot of things you need to do, and my how-tos describe in specific detail a working example of how to do them all.
IsaacKuo - This might work....I'll have to tinker with it.
astrogeek - I've only ever seen pxebooting done via ISO file, and the reason for doing so across the board has almost always been convenience.
jefro - Maybe it's not the most common? It's the only way I've ever seen it done. Your mileage may vary. I'll check out the knoppix disc....been a while since I heard that name.
I only suggest Knoppix as a learning tool. When you boot to knoppix the server is not working. No nfs mount, no files copied, no tftp server and such working. All that is started when you start the Knoppix Terminal Server. It sets that all up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.