netbootxyz / netboot.xyz

Your favorite operating systems in one place. A network-based bootable operating system installer based on iPXE.
https://netboot.xyz
Apache License 2.0
8.78k stars 663 forks source link

No popular distro live image boots #1384

Open qu1ck opened 7 months ago

qu1ck commented 7 months ago

Describe the bug Live images seem to be completely broken for a good chunk of popular distros. I tried:

Not one of them boots, most fail with unable to mount one thing or another.

To Reproduce Boot any of the above distros

Expected behavior I should be able to boot something modern

OptimusGREEN commented 7 months ago

I can't get any of the live cd's to work.

jkoelker commented 7 months ago

The listed distros boot currently with the exception of KDE fedora (which appears to be a dracut issue not requesting the squashfs image correctly, but that's been the case for at least the last two releases), the issue is you probably have not allocated enough ram for the distro's requirements for the live image. Unfortunately over the years distros livecd images have steadily grown.

I have just validated each with 8G:

qemu-system-x86_64 -bios /usr/share/edk2-ovmf/x64/OVMF.fd -cdrom netboot.xyz.iso -m 8G -smp $(nproc)
OptimusGREEN commented 7 months ago

Thanks for the reply.

I can confirm that raising to 8gb ram indeed fixed my issue. great!

antonym commented 7 months ago

Thanks @jkoelker, the Live Images do usually just need a lot more memory unfortunately.

There also may be some issues on Fedora that I need to circle back on, because they have steadily grown, I'll need to add the rootfs split logic into the initrds that split out as well:

https://github.com/netbootxyz/netboot.xyz/issues/1214

qu1ck commented 7 months ago

This is what I get on 10GB VM, same result on 16 GB

Ubuntu 23.04 KDE image

Ubuntu 22.04 xfce image

Debian 12 cinnamon image

Debian 12 KDE image

What am I doing wrong?

antonym commented 7 months ago

Make sure you are on the newest rev too, either 2.0.75 or rolling boot.netboot.xyz, 2.0.74 had some some bad images that may have been missing curl. I just tried Ubuntu 23.04 KDE and it loaded fine.

Screenshot 2023-12-27 at 11 52 28 PM
qu1ck commented 7 months ago

Yes, I'm on 2.0.75. Netinst images load fine and same VM loads from live iso's fine.

greatwolf commented 7 months ago

I'm experiencing the same issue as @qu1ck when booting Linux Mint LMDE edition. This is on a laptop with 8gb of ram. His Deb 12 Cinnamon bootup screenshot is what I'm seeing on my laptop during live boot attempt.

jkoelker commented 7 months ago

When ya'll get dumped to the shell, what does /proc/cmdline say? Are you using the github version of everything or are you trying to do self-hosting? If the latter try using the hosted version first, if that works, then its something in your self-hosted setup.

qu1ck commented 7 months ago

I am using the official netboot.xyz docker image and I'm caching the init image/squashfs files locally to speed up my boot times.

And you are right, sticking a netboot.xyz.iso into my vm and booting from it I was able to boot into debian 12 cinnamon live image.

Trying some things I was able to boot from my self hosted netboot.xyz if I dropped the cache and reverted config changes that pointed to cache host instead of github downloads.

After some trial and error I found that I didn't cache the "default" squashfs which is not obvious that it is needed. After caching it as well I can boot debian 12 and ubuntu 23.04 but not ubuntu 23.10.

Still, better than nothing.