5 ms·
Netboot.xyz: your favorite operating systems in one place
- T3RMINATED 2y ago[dead]
- maccam912 2y agoSince I won't get a better chance to find knowledgeable people: How exactly does iPXE work? Lets say I want to boot a random old PC from one of these images - does the bios need to have iPXE support? Or PXE? Or does it need to first boot into some local system first, which then goes out and gets the image to boot the rest of the way from? Then there's mention of DHCP and self hosting. Do I need to have some service running within my LAN first or can this go right out to some public server and boot from images there? How does DHCP factor in? I am in so far over my head on this but it seems interesting and something fun to try out.
- bongodongobob 2y agoRead the docs, it's all there. Edit: Seriously? You click on docs and almost all of those questions are answered. It's 1 click away. Parent didn't even try.
- LoganDark 2y agoWhich docs? The netboot.xyz ones?
- bongodongobob 2y agoYes. It's one click away for the overview and the quick start is very good as well.
- LoganDark 2y agoThat's great if you want a tutorial, I guess. "How does this work" is different from a tutorial though, IMHO.
- notanormalnerd 2y agoI found the netboot docs very hard to understand if you dont have a existing knowledge of PXE.
- bongodongobob 2y agoHas HN turned into a Facebook group?
- teraflop 2y agoThere are a bunch of different options to "bootstrap" iPXE in the first place. Least invasive is probably to boot it from a USB drive. You can also set up a traditional PXE boot process using DHCP/TFTP on your network to "chain-load" iPXE (if your client's network card supports PXE), or you can even flash iPXE into the boot ROM on certain network cards. However you do it, once iPXE starts running, it will take control of the NIC and fetch the actual OS images that it needs from the internet over HTTP.
- Joe_Cool 2y agoSome HP server UEFIs also support boot from http. So you can boot the .efi executable directly from the internet. For https you need to enroll the certificate first and it's a bit more involved. I am sure there are other implementations I have only seen it on HP servers so far.
- hmaxwell 2y agoYou can use netboot.xyz from a flash drive to boot various operating systems and utilities. Alternatively, PXE (Preboot Execution Environment) has been around for a while and works by allowing a network-capable device to boot from its network interface. A PXE-compatible network card requests a DHCP lease during the boot process, which provides the IP address of a TFTP (Trivial File Transfer Protocol) server and the file that needs to be loaded from the server. Typically, the network card contains a basic PXE kernel. To enhance this environment, you can chainload iPXE, which offers a broader range of features. iPXE allows for more advanced booting options, such as loading scripts or initiating an unattended installation directly from the network.
- mynameisvlad 2y agoThere's multiple ways to boot, including USB/ISO: https://netboot.xyz/docs/category/booting-methods https://netboot.xyz/docs/category/booting-methods Generally speaking, if you have iPXE already compiled and flashed onto your NIC, then you can follow these instructions: https://netboot.xyz/docs/booting/ipxe https://netboot.xyz/docs/booting/ipxe DHCP is only needed for getting an IP address. You can use the Docker image with the proper DHCP parameters to load it automatically when using PXE/iPXE: https://netboot.xyz/docs/docker https://netboot.xyz/docs/docker
- breppp 2y agoRoughly from memory iPXE is a bootable image that acts similar to a PXE BIOS, so you boot to that image like a regular disk. It acts like a bios by for example hooking your interrupts for storage reads. In order to find where the image is, you need some kind of discovery mechanism. This is where DHCP comes in. Remember this is all happening before you have an OS, so it has to be very bare bones
- NobodyNada 2y agoPXE [0] is a standard for netbooting, typically implementated in the system's boot firmware. A PXE-compatible client sends a DHCP request on boot, to which the network's DHCP server responds with the IP address of a server to netboot from. The client will then connect to this server via TFTP, download an executable image file in the PXE format, and boot it. Using PXE on your own computer requires enabling PXE the firmware setup, setting up a TFTP server to serve the PXE image, and configuring your DHCP server to point to your TFTP server. iPXE [1] is an open-source implementation of PXE, and much more -- it's much more flexible, it supports additional protocols including HTTP(S) and DNS, it has configuration and scripting options, a basic command-line interface, etc. In order to run iPXE, you need to boot an iPXE image somehow -- e.g. from a MBR or EFI image on a disk drive or USB drive (or even over PXE, I guess). But because iPXE supports more protocols and more configuration, you don't need to set up TFTP and DHCP, and it can chainload into e.g. an EFI image or a Linux kernel instead of being limited to booting images in the PXE format. An example of iPXE in the wild is the Arch Linux netboot image [2]. They provide pre-configured iPXE images that display an interactive menu to select a mirror, download the Arch Linux installer, and boot it. (It's really convenient since you can just drop the UEFI image at "/efi/boot/bootx64.efi" on a FAT32 thumb drive instead of having to download the whole installer image and 'dd' it onto the drive.) The submitted project, netboot.xyz, is a similar idea: a preconfigured build of iPXE that lets you interactively download and boot installers for many popular operating systems from a single image. [0]: https://en.wikipedia.org/wiki/Preboot_Execution_Environment https://en.wikipedia.org/wiki/Preboot_Execution_Environment [1]: https://ipxe.org/ https://ipxe.org/ [2]: https://archlinux.org/releng/netboot/ https://archlinux.org/releng/netboot/
- ddulaney 2y ago> or even over PXE, I guess This is super common actually! Most built-in PXE only supports TFTP, which is pretty slow compared to TCP-based stuff. It can make sense to use the built-in PXE to grab a (small) iPXE image over TFTP, then have iPXE grab the (big) real image over HTTP(S). This is also useful if you want to store your main image on something like S3 that doesn’t support TFTP. For a while I had a script that would create iPXE images dynamically on the fly with the correct HTTPS URL and auth information embedded in them.
- 2y ago
- gsich 2y agoYou usually chainload from normal PXE if you have hardware.
- anon291 2y agoSo what I do here is that I have a local PXE server (it's a DHCP option on your router) that serves up iPXE with a preconfigured script to boot via HTTP off of netboot.xyz. So whenever I want to install linux on a new computer, I set the BIOS boot option to boot from PXE next boot and restart. In a few seconds, I am presented with my choice of linux environment. For my data center servers, I have it booting via PXE to an iPXE with a custom script to take a unique identifier from the host and build the corresponding configuration (NixOS). So essentially for that I define my NixOS configuration in a NixOS flake and plug the new host in and it will boot to the correct configuration. I actually don't have any OS installation on most of the hosts and share the nix store via NFS. I also keep an iPXE thumb drive around in case I need to do this for something not on my network. In that case, I insert the drive, boot from it, and then ask it to boot from netboot.xyz manually.
- alfiedotwtf 2y agoIf you want to see how all the magic happens, have a look at the code and docs from Debian’s FAI (Fully Automated Install). Once you have a Debian FAI all setup, you can bootstrap your machine from zero every morning while you have your morning coffee
- RulerOf 2y agoSince nobody directly answered some of your specific questions: > Lets say I want to boot a random old PC from one of these images - does the bios need to have iPXE support? Or PXE? The most-desirable way to use iPXE is to boot it from a system's built-in PXE, chainloading it from a local DCHP+TFTP server. All routers have a DHCP server, and many enthusiast/professional routers will have a TFTP server available. pfSense/OPNSense for example can both do this. If you want to go down the rabbit hole and can mod your system BIOS, you can install iPXE into many of them. I wouldn't recommend it, but I did it once and thought it was pretty cool. > random old PC If you _literally_ meant like a vintage PC that predates the PXE spec[1], you can boot iPXE from any local media — I architected a project 10 years ago where I actually gave floppy disks to technicians because some of the ancient Dells we were working with required a BIOS update to enable USB booting. You can also burn iPXE into a network card's ROM chip. There were a lot of PCI/ISA network cards that took an EEPROM and could boot from them if populated. I always thought it would be fun to boot a vintage PC with iPXE straight off of an add-in network card like that. iPXE will hook the BIOS, and you can literally boot MS-DOS via iSCSI. > Do I need to have some service running within my LAN first or can this go right out to some public server and boot from images there? Again, typical deployments will have iPXE chainloaded from the system's existing PXE implementation, which means you've got a DHCP server on the local segment, and a TFTP server somewhere on the local network. But you _could_ boot iPXE from any other boot medium, which would mean the DHCP/TFTP setup are not required. iPXE itself, once loaded, can do its work with any network connection. [1]: https://en.wikipedia.org/wiki/Wired_for_Management https://en.wikipedia.org/wiki/Wired_for_Management - this happened in 1998/1999 and implementation was widespread by 2001 or so.
- mrinfinitiesx 2y agoThis is like Ventoy? I'll give it a try for when I re-do a flash drive. Can I put windows tools on here as well for removing spy/malware etc to fix PCs? With Ventoy I just make a dir and I can select them when the OS boots, but still boot every ISO image at post
- poikroequ 2y agoNot quite the same. It sounds like netboot downloads the images from over the Internet. Whereas Ventoy you preload the images onto a flash drive ahead of time.
- inportb 2y agoThis is more similar to iVentoy, which implements PXE boot, but is closed source. netboot.xyz, on the other hand, requires boot images to be extracted and served in an iPXE-friendly format, which their CI/CD system does automatically. These solutions are good for facilitating OS installations across a fleet of computers on a network. But for system rescue purposes, Ventoy still wins. You bring your own boot images, which could be arbitrary ISOs, and don't have to worry about networking availability.
- zbrozek 2y agoI got an NVMe to USB enclosure, put a disk I had laying around into it, and loaded Ventoy onto the disk. It's fantastically fast and I love it.
- criddell 2y agoWhy would you ever trust something like this that will helpfully pull images from the internet? I'm sure whomever is running it today is perfectly honest and none of their computers have been compromised, but there's no reason to expect it to stay that way, is there? Firewalling the application so that only local images are available seems like the only safe way to use this.
- nxobject 2y agoIf I read the the docs correctly, since source locations are printer, it’s about as trustworthy as trusting “wget $ISO_URL” on your installation to not download anything malicious. Unfortunately what seems to be missing is a hash check after the fact - a missed opportunity since images are loaded to RAM anyway. (The limitation here is that you have to be able to load the installer image into RAM, which does exclude a lot of smaller nettop/thin/SoC clients unfortunately.)
- ForOldHack 2y agoI may be totally missing something, but does this mean I can use a printer as a netboot? Still no morning coffee.
- geek_at 2y agoyou can selfhost it. It's mainly useful to boot and play with multiple different linux distros
- mobilio 2y agoI'm using this on some USB flash drive because save me to have few USBs with different Linux distros. Everything is downloaded from the internet and this make USB few megabytes only.
- EADDRINUSE 2y agonetboot.xyz is neat. As it makes use of iPXE I would like to speak out a token of appreciation for those working on that project. It's such an essential building block in DC's around the globe that many are not aware of.
- elchief 2y agothe list of available operating systems is here: https://netboot.xyz/docs/faq/#operating-systems https://netboot.xyz/docs/faq/#operating-systems looks like you can use it on aws / ec2: https://ipxe.org/howto/ec2 https://ipxe.org/howto/ec2
- ForOldHack 2y agoI was looking for a alternative to VenToy... so I scanned all the embedded binaries... every last one... and its completely and utterly clean... but does not support windows, which is a minus only in my case, but an absolute godsend in all others. Not a single Linux I have ever used has been passed over. Brilliant work on a brilliant solution.
- louwrentius 2y agoI'm experimenting on and off with PXE network booting. In my experience, TFTP is really slow (ancient UDP based protocol) and I'd like to do away with it. Unfortunately TFTP is still required to load something like iPXE to load the actual OS Kernel over HTTP, assuming iPXE isn't part of the NIC firmware or can't be configured to do so. Turns out that downloading over HTTP is just as slow (few MB/s) when using iPXE so I'm not sure what I'm gaining. Ideally HTTP boot is possible through the UEFI bios but it seems that this is common on servers, but not on clients? My HP 1L PCs don't have an option to boot over HTTP directly.
- RulerOf 2y ago> Turns out that downloading over HTTP is just as slow (few MB/s) when using iPXE so I'm not sure what I'm gaining. iPXE should be able to max out any gigabit NIC that has a decent driver. If you're using a BIOS UNDI driver (undionly.kpxe) or EFI SNP (snp.efi/snponly.efi) you may be experiencing the misery of a crummy driver supplied by the built-in PXE ROM. If your NIC is supported, try using the bin/ipxe.pxe or bin/ipxe.efi build targets[1] and chainload that instead. If they work at all, it'll mean you've got a NIC with a native iPXE driver, and using that driver may speed things up. Alternatively, the opposite may also be true. Some of the drivers aren't great, and UNDI/SNP may perform better. If you're already using those builds, try it the other way around. [1]: https://ipxe.org/appnote/buildtargets https://ipxe.org/appnote/buildtargets
- louwrentius 2y agoThanks for the tips, I'll look into this some more.
- mrbluecoat 2y agoI just discovered this and love it! You can install Alpine Linux (and others, like Debian) on Oracle Cloud free tier: https://mrbluecoat.blogspot.com/2024/08/smallest-oracle-cloud-instance-os.html https://mrbluecoat.blogspot.com/2024/08/smallest-oracle-clou...
- nyanpasu64 2y agoI tried netboot once, and lost interest when it took minutes to download an ISO over cable internet (DSL would be even worse) every singe time I tried booting into a live distro while debugging things. It's faster to download the ISOs I need ahead of time, save them on a Ventoy drive, and boot (and reboot) into each one in seconds.
- moepstar 2y agonetboot.xyz allows you to preload the isos you want to boot :)
- nyanpasu64 2y agoHow do I preload or cache ISOs on a flash drive holding the netboot.xyz client? I haven't seen any mention of it in docs. I've seen some people talking about setting up local iPXE servers, but I don't know if my machines always have functional networking to my server laptop during startup (and this fails outside my home network).
- belthesar 2y agoNetboot.xyz allows you to self-host an instance of it, which can cache ISOs. I was doing it for a time, and thought it neat, but not worth the hassle to keep running.
- hnlmorg 2y agoI’ve found it to be much faster and far more convenient than downloading the image I want and writing it to a usb drive. I did at one point keep a few stock images on my tftp server but even there, they would go out of date quicker than my need to use them. So I ended up sticking with NetBoot.xyz for convenience
- mixmastamyk 2y agoSounds like they compliment each other. Save your most common boot images to ventoy, including netboot. Load netboot when you’d like to experiment.
- drchanas 2y agoiVentoy is much simpler. Just drop the ISOs in the server folder and 99% they work. If you need to have local images in netboot.xyz it needs waaay more fiddling. It even has it's own DHCP so you do not need to know how to setup BOOTP or anything.
- axpvms 2y agoI got really into this sort of thing about ten years ago and set up my wireless router to serve up the initial iPXE image and then load various OS's over the internet. I got about ten or so OS's set up to boot this way then I lost interest and never used it again.
- peter_d_sherman 2y agoAn interesting concept... load an OS from an OS image file over the network... If that's the case, then OS'es which do not use any local storage devices, and instead mount remote filesystems over the network -- can't be far behind... And, if that's the case, then the only thing that the local PC is doing is using its CPU and RAM to run the OS, and network port to read/write data to the filesystem... But the local PC could also simply run a Remote Desktop or VMWare Client or VNC or equivalent to another remote computer somewhere else on the Internet -- in which case it really doesn't even need to run its own Operating System proper, it only needs to run the software which allows network connectivity to the running instance of the remote Operating System somewhere else on the Internet... Maybe it would be simpler to build a future "computer" which is basically the glorified equivalent of a long-distance KVM switch over the Internet with local video output... Hey, such a device would never need its own hardware upgrades... just upgrade whatever remote machine it connects to on the other end, and you've effectively upgraded the local one... Anyway, an interesting concept!
- lproven 2y agoFor comparison: https://www.iventoy.com/en/index.html https://www.iventoy.com/en/index.html I haven't tried it but I use its USB cousin Ventoy almost every day. It's fantastic.
- belthesar 2y agoI've been meaning to give this a shot myself. I do like netboot.xyz's maintained catalog for convenience, but when I self hosted it (to get the caching proxy benefits), I felt that cache cleanup was a little clunky (basically, go into the cache dir and delete the ISO/image). For the few times I need to install an OS on something, it'd be totally fine to grab the image and stage it on the PXE server.
- 4k1l 2y agoI have been using dnsmasq for pxe and i am considring switching into a more advanced solution. Is there any API for netboot.xyz?