8 ms·
Netboot.xyz: your favorite operating systems in one place
- MarkovChain242 4y agoThis is sort-of cool, I guess, but also very much not what you would want to do? I mean, people agitate against `curl blah.xyz | sh` for a reason. And this, by any measure, is much worse. Also: 'By default iPXE does not compile in HTTPS support'
- xen2xen1 4y agoSpace is at a premium on things like that. Having it makes some computers not boot ipxe.
- dsr_ 4y agoThat's why a serious user sets up their own server, serves the images that they have selected and checked, and doesn't serve outside of their known netspace.
- hnlmorg 4y agoI did that for a while but keeping images up to date was a chore I’d often forget to do then regret not doing once I needed it. Sure I could probably automate it with a little effort but instead I switched to this service and have been running with it for a few years now without any issues. While I know there is a risk involved, pragmatically that risk is very low given I’m just an anonymous individual very occasionally using this for personal devices. You can actually run this service locally though. I did contemplate running their Docker container on my home server. However I use it so infrequently that even running their Docker container locally felt like an unnecessary additional piece of work.
- bravetraveler 4y agoI've found it convenient (once setup...) to run internal package mirrors. These with even relatively dated 'netinstall' media can provide you with current installations. Then provide you with super fast updates. I'm more familiar with doing this with RPM based distributions -- CentOS, Fedora, etc. It's basically a web server and rsync behind a [parameterized] systemd timer so you can centrally control existing/new mirrors The results can admittedly be a little funny. If the netinstall is so far behind that RPM doesn't know what to do with the new packages, then yea - time to get a new one :)
- hnlmorg 4y agoThat was the issue for me though. It would often be years between usages since the only time I needed it was when a computer stopped booting or I was repurposing a device. Neither being things that happens very often.
- bravetraveler 4y agoAye, that makes sense. It's hard to justify if you don't leverage it often I moved and I've been hard pressed to bother booting everything up and checking on it, and I have quite a lot of devices to manage
- dsr_ 4y agoThe risk wouldn't be someone deliberately targetting you: the risk would be someone deciding that this is an excellent vector to gain backdoor root access on many random machines.
- hnlmorg 4y agoI wasn’t suggesting I would be personally targetted. I was stating that the infrequency and low criticality of my usage vastly narrows the risk of getting exposed to the attack. Hence my point that if I were using this regularly then I might want to invest in a more secure mirror. But when it can be years between my usages the benefits of self hosting are vastly outweighed but the cost (both in time and electricity) of managing it. Thus I’m willing to take that slight risk in this specific instance.
- gorkish 4y agohttps://netboot.xyz/docs/selfhosting https://netboot.xyz/docs/selfhosting
- rtp4me 4y agoI replaced our legacy PXE boot environment with Netboot, and it made a huge difference. The performance speed from tftp to http is night and day. Plus, you can compile a custom boot image to provide the exact boot environment you need.
- School-Cotton 4y ago> people agitate against `curl blah.xyz | sh` for a reason. What’s the reason, exactly? If you’re principled about only ever installing anything from vetted repos, then sure, your position is at least consistent. But my experience is that people who are appalled by pipe-to-sh are for whatever reason much less appalled by downloading random binaries or .deb files from blah.xyz and running them manually, which seems like just a more labor-intensive version of the same thing.
- hsbauauvhabzb 4y agoCloud services do this to provision hypervisors and other infrastructure, the vms effectively do similar post boot. If you architect your management network well transport security should not be an issue. The ‘piping curl into bash is dangerous’ meme is silly unless you’re actively reviewing shell scripts prior to execution. It’s no different to a git clone, pip install or npm update.
- snvzz 4y agonetboot xyz does signature checking.
- zdw 4y agoMaking it compile with TLS support is really trivial, just an option in a config file: https://github.com/OpenNetworkingFoundation/ipxe-build/blob/master/patches/features.patch#L10 https://github.com/OpenNetworkingFoundation/ipxe-build/blob/... (link is to a repo I worked on that uses Docker to build iPXE with various options enabled, and also embed mTLS certs)
- pyrolistical 4y agoThis is neat. It’s like Mac internet recovery mode but for everybody else
- RulerOf 4y agoI've wondered for some time why none of the major OEMs have built this. Surely if I could embed an iPXE module into my board's BIOS with HTTPS support and a custom boot server that chainloads all of it logic from the internet, including a plethora of hardware support tools. They could even tie the availability of premium internet-booted tools to the service tag and get that sweet SaaS subscription money.
- jonathantf2 4y agoDell machines do this, if you boot to SupportAssist you can wipe and reload the drive from the BIOS, it'll download Windows for you. It even lets you log into your Microsoft account to get your BitLocker recovery key and restore all your files from your dead partition.
- coredog64 4y agoI only know this because once every two weeks my corporate Dell laptop will BSOD, forget that it has a hard drive, and then continuously try to boot over HTTPS until I enter UEFI setup and fiddle with boot device order.
- galago 4y agoIts just for clean installs, but at work I can PXE boot a system and use a MS tool called Lite Touch to install Windows plus many software packages. It works pretty well. I can also PXE boot into some other operating systems and get my domain home directory. I should say, we're not using this project, but its the same concept.
- abeyer 4y agoAm I missing something or is there no documentation about what their distro/hardware support matrix looks like? Do I have to just boot into it and navigate the menus to figure that out?
- rwmj 4y agohttps://netboot.xyz/docs/faq#what-operating-systems-are-currently-available-on-netbootxyz https://netboot.xyz/docs/faq#what-operating-systems-are-curr... However they don't list the versions of each OS. As for hardware support, I guess it's i686/x86-64 only?
- theantonym 4y agoThere is ARM support as well in addition to i686/x86-64. Operating system versions are typically dropped as they go EOL upstream from the menu, we try and keep the menus up to date as changes and new versions are released.
- abeyer 4y ago~Given that it's already there (and presumably maintained) in the github readme, it might make sense to also provide this info on the docs site.~ Nevermind, I'd found the github link first, not sure how I missed it on the site. What's the state of arm64 booting like? Last I looked at early boot process on arm (which was admittedly a while ago) it was kind of a mess w/o a broadly adopted standard like uefi and every processor/soc/board kind of did its own thing. Has that improved to the point where I can expect _any_ arm64 board to just work? Or do I need to worry about the specific hardware, too?
- theantonym 4y agoMost of my testing was just allocating an ARM machine on Equinix Metal as I didn't have much ARM hardware to test or qualify on. I've also gotten the bootloader and menu to work with an RPI4 but loading operating systems on one was a bit more challenging given reduced memory on the hardware.
- kej 4y agoAnother neat "pick an OS to boot into" tool I discovered recently is Ventoy [1]. You install the bootable menu on your USB drive, and then you just drop ISOs or IMGs on there to add choices. [1] https://ventoy.net/en/index.html https://ventoy.net/en/index.html
- csdvrx 4y agoNot bad, but with questionable choices making it not usable on a dedicated hard-drive partition: https://github.com/ventoy/Ventoy/issues/1342 https://github.com/ventoy/Ventoy/issues/1342
- tssva 4y ago"Ventoy is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files." From the description of the project it doesn't seem running from a dedicated hard-drive partition is an actual goal of the project. I don't know that making choices which don't support a non-goal of a project are questionable. It works great for my use case of booting from a USB drive and I very much appreciate that it exists.
- csdvrx 4y ago> From the description of the project it doesn't seem running from a dedicated hard-drive partition is an actual goal of the project This "goal" would require a grand total of 2 changes. > It works great for my use case of booting from a USB drive and I very much appreciate that it exists. It's just like grubfm - a few files + a heuristic to use these with isos to make them bootable.
- stuaxo 4y agoI took the time to read the comments on the issue and I can't see anyone refusing to do this. It seems like the person that suggested it can't compile ventoy as it requires a particular version of fedora. This needs somebody to compile ventoy and make a PR. Tabgentially it seems like the solving the issue where it needs an old version of fedora would make it easier for others to participate. The best way of moving this forward would be to free up a block of time and either work on a PR, or if not that a PR to make ventoy compilable on more distros.
- latchkey 4y agoThis project looks neat. I boot well over 10,000 blade computers that don't have onboard storage, with iPXE. Kind of amazing technology. Had to develop our own super minimal Ubuntu distro though. Used a hacked up version of debirf to do it. Not sure this project offers what I need, which is a less hacked up version of debirf.
- n0n 4y agoCan you elaborate, why you chose Ubuntu? Alpine with lbu[0] seems like a perfect fit and looks IMHO less experimental. Also you can provide backups straight via iPXE[1]. Nonetheless, kudos for the slim ubuntu image :) [0]: https://wiki.alpinelinux.org/wiki/Alpine_local_backup https://wiki.alpinelinux.org/wiki/Alpine_local_backup [1]: https://wiki.alpinelinux.org/wiki/PXE_boot https://wiki.alpinelinux.org/wiki/PXE_boot
- latchkey 4y agoWhy Ubuntu? Mostly because it just makes packaging and compatibility easier. There is a plugin system which creates tarballs out of overlays... so you can add additional software into the system and the building of the tarballs can include things like apt install. These tarballs get downloaded and installed early on by a hacked init script. This way, we can do things like install minimized downloads of GPU drivers. There are some issues with this, but overall it works ok. For now, it is just what I ended up with. Total boot download is about 100megs, which isn't too bad... machine is up and running in 60s, which is fine for this workload right now. It does suck rebooting the whole datacenter at once though. ;-) The lbu stuff looks interesting for sure. I'm not a huge fan of the additional NFS requirement, but I assume that can be worked around. That said, I'm open to changing stuff up and optimizing things further. This is some esoteric stuff and we are hiring. =)
- generalizations 4y agoMy side project for the last while was pretty similar to what you're describing, and as a result I've become very familiar with this "esoteric stuff". If you're hiring, I'm interested :)
- colechristensen 4y agoPXE is one of those great old technologies which always excited me. I got the opportunity very early on to build an automated system to allow developers to install fresh operating systems to test on machines in the datacenter by filling out a web form which resulted in a hands-free install the next time they rebooted the target system. I've wanted to replicate that kind of thing at home or work ever since but with cloud tech it's just not necessary (but I hear often done by the cloud providers themselves) and at home it doesn't quite solve any real-world problems.
- alfiedotwtf 4y agoI had a cheap, slow, second hand laptop that I would power on only when needing to seed the PXE boots... So when I wanted a clean slate, I would: - turn on laptop - reboot client machine - make a coffee (or two) - there is no step four. It was wonderful and to be quite honest, I'm not sure why I stopped!
- hnlmorg 4y agoThe real world home usage for me is being able to install Linux or BSD without needing to manually download and image and burn it to a USB drive (in fact the reason I set up PXE booting in the first place was because I kept losing USB drives and thus wouldn’t have anything to boot from).
- jordanbeiber 4y agoI’ve spent a lot of time doing that stuff at reasonable scale, now more than 20 years ago. Lot of fun! When discovering gpxe/ipxe it got real interesting - now we could make web calls in pxe boot mode that let us automatically select os image based on asset tag from our cmdb. Role based app deployments to servers, and app streamed to clients. Those were the days… We built ci/cd not even knowing it was a thing. When cloud started to be pushed I was like: “so pretty much what we’ve built here” (barring the promise of elastic scaling - we had barcodes preped from vendor batched to cmdb before delivery though). I wasn’t yet aware that most places didn’t use software to manage compute, end to end.
- 4y ago
- mtlynch 4y agoI was looking into netboot.xyz recently, as I do Raspberry Pi development. I'd love to be able to just run a VM that lets me load a few different Raspberry Pi OS images and choose which one I want the Pi to boot into on next reboot. netboot.xyz seemed promising, but I couldn't figure out how to use it. The docs don't explain much.[0] I tried running the Docker container and couldn't figure out what to do with it. I didn't see a way of uploading new images to it, and I didn't know how to refer to the netboot.xyz container as a PXE target. Has anyone found a good guide on how to use netboot.xyz? Is netboot.xyz capable of doing what I want? (i.e., I load different Raspberry Pi OS images onto netboot.xyz in a VM/Docker container, and then I point my Pi to network boot from the netboot.xyz server, and netboot.xyz serves the Pi the OS image I want). The Pi natively supports network booting[1], but I don't know if I'm putting the right pieces together. [0] https://netboot.xyz/docs/quick-start https://netboot.xyz/docs/quick-start [1] https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-bootloader-configuration https://www.raspberrypi.com/documentation/computers/raspberr...
- sigjuice 4y agoYou might want to try booting from one of these images here and see what it gets you https://netboot.xyz/downloads/#raspberry-pi-ipxe-bootloaders https://netboot.xyz/downloads/#raspberry-pi-ipxe-bootloaders
- AviationAtom 4y agoThrow a copy of iPXE on USB, then chainload it. Super easy. If you're using virtualization then there might be a chance iPXE is already used, in which case it's super easy. Not sure if that changes much with Pis though, as they tend to be a different beast.
- kayson 4y agoI found to be helpful specifically for Netboot https://www.linuxserver.io/blog/2019-12-16-netboot-xyz-docker-network-boot-server-pxe https://www.linuxserver.io/blog/2019-12-16-netboot-xyz-docke...
- parhamn 4y agoThis post and it’s comments make me appreciate how low hardware/os catastrophic failure rates have gotten. I haven’t needed to do recovery disks, boot drives, rescue operations etc in so long. Back then it felt like I’d need to every few weeks.
- 1vuio0pswjnm7 4y agoSaw this in 2016. Six years later, still no NetBSD.
- kayson 4y agoSounds like the maintainer had some issues with memdisk: https://github.com/netbootxyz/netboot.xyz/discussions/926 https://github.com/netbootxyz/netboot.xyz/discussions/926
- snvzz 4y agoWhy would they try to use memdisk in the first place? https://wiki.netbsd.org/tutorials/how_to_install__40__boot__41___netbsd_using_pxelinux/ https://wiki.netbsd.org/tutorials/how_to_install__40__boot__... I've done this successfully (locally).
- theantonym 4y agoWe are definitely willing to add NetBSD if someone can demonstrate it working well with iPXE. It's come up several times and it's implementation works with pxelinux in a local setting but not so well with iPXE as the implementation linked looks for a specific file on a tftp source.