netboot.xyz icon indicating copy to clipboard operation
netboot.xyz copied to clipboard

No popular distro live image boots

Open qu1ck opened this issue 1 year ago • 10 comments

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

  • Debian 12 kde
  • Debian 12 cinnamon
  • Fedora 39 kde
  • Ubuntu 22.04 xfce
  • Ubuntu 23.04 kde

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

qu1ck avatar Dec 27 '23 15:12 qu1ck

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

OptimusGREEN avatar Dec 27 '23 18:12 OptimusGREEN

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)

jkoelker avatar Dec 27 '23 19:12 jkoelker

Thanks for the reply.

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

OptimusGREEN avatar Dec 27 '23 21:12 OptimusGREEN

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

antonym avatar Dec 28 '23 05:12 antonym

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?

qu1ck avatar Dec 28 '23 05:12 qu1ck

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

antonym avatar Dec 28 '23 05:12 antonym

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

qu1ck avatar Dec 28 '23 06:12 qu1ck

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.

greatwolf avatar Dec 29 '23 00:12 greatwolf

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.

jkoelker avatar Dec 29 '23 00:12 jkoelker

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.

qu1ck avatar Dec 29 '23 12:12 qu1ck