Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Laya the open source version of Jev(convaiinnovations.com ↗)
    35comments
  2. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    306comments
  3. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    150comments
  4. “The Secret Life of Circuits” is here(coredump.cx ↗)
    31comments
  5. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    503comments
  6. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    107comments
  7. What Zig felt like, coming from Rust(besok.github.io ↗)
    discuss
  8. San Francisco Onion Futures Company(onionfutures.com ↗)
    89comments
  9. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    145comments
  10. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    discuss
  11. Communication by means of modulated Johnson noise(pnas.org ↗)
    14comments
  12. From Stonemasons to Carpenters(thelastsoftwareengineer.substack.com ↗)
    4comments
  13. Cloudflare Quick Tunnels(cloudflare.com ↗)
    296comments
  14. How to Write with an LLM(sockpuppet.org ↗)
    354comments
  15. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    21comments
  16. SDCC – Small Device C Compiler(sourceforge.net ↗)
    21comments
  17. Saving another 100TB of RAM(cloudflare.com ↗)
    86comments
  18. Science Is Open Software(jepedersen.dk ↗)
    45comments
  19. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    3comments
  20. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    42comments
  21. NASA-IBM Lunar Foundation open-Source Geospatial AI Model(usra.edu ↗)
    5comments
  22. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    107comments
  23. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    6comments
  24. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    114comments
  25. OpenJev(openjev.com ↗)
    273comments
  26. Goroutine Leak Profiles(go.dev ↗)
    6comments
  27. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    89comments
  28. Show HN: I wrote a custom assembler for CHIP-8 in C++(github.com/tackx ↗)
    4comments
  29. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    76comments
  30. Veronese's Dogs(publicdomainreview.org ↗)
    2comments

bootc-image-builder: Build your entire OS from a Containerfile

83 pointsby 1y agogithub.com
32 comments
1y agoHN ↗

Why swap from the OSTree storage to OCI? Doesn't that negate the space saving offered by OSTree having a content addressable store.

1y agoHN ↗

By using zstd:chunked, we get those atomic diffs at each layer using an enabled container registry. So diffs are still over the wire.

1y agoHN ↗

You can also achieve this with your current system

nix-build '<nixpkgs/nixos>' -A vm -I nixpkgs=channel:nixos-25.05 -I nixos-config=./configuration.nix

I use nixos btw

1y agoHN ↗

I don't know the answer using the built-in VM attributes (I mean I'd guess probably, but I don't know how if so) but there's always nixos-generators for making VM images. Definitely used this for deploying VMs to cloud providers, haven't tried the VMWare one yet though.

https://github.com/nix-community/nixos-generators

1y agoHN ↗

A container for deploying bootable container images.

...as long as the images are in the Red Hat family (Fedora, CentOS Stream, RHEL).

1y agoHN ↗

Is there something about this makes it red hat specific. An OS is just a specific collection of files in the end. Whether things are installed with rpm or Deb shouldn't matter?

1y agoHN ↗

The project roadmap actually includes plans to expand beyond Red Hat family distributions - there's active work to add support for Debian/Ubuntu and potentially other distros.

1y agoHN ↗

I was going to try this to perhaps use it in production. Turns out the RHEL clones like Alma or Rocky doesn't have this thing in production-ready grade. All options you have now are owned by Red Hat themselves.

1y agoHN ↗

Just ask Neil Gompa to ship it. He doesn’t love it, but he helps everyone who asks him for advice.

1y agoHN ↗

Ublue also builds Ubuntu versions of a lot of this.

1y agoHN ↗

bootc is a CNCF project now, so anybody can get on board.

1y agoHN ↗

Does bootc-image-builder build Native Containers?

Do Native Containers work as VM images that can be stored in an OCI Image/Artifact/Package Registry?

I've been mentioning Native Containers since I realized that was how bazzite works now.

Is vagrant necessary anymore if host, vm, and container images can all be signed and stored in an OCI Image store?

From https://news.ycombinator.com/item?id=44137501 re: Firecracker and Microsandbox VMs :

ostree native containers are bootable host images that can also be built and signed with a SLSA provenance attestation; https://coreos.github.io/rpm-ostree/container/

ublue-os/image-template: https://github.com/ublue-os/image-template :

Build your own custom Universal Blue Image

ublue-os/akmods has nvidia GPU drivers, nvidia-open, zfs: https://github.com/ublue-os/akmods :

A caching layer for pre-built Fedora akmod RPMs

OCI images providing a set of cached kernel RPMs and extra kernel modules to Universal Blue images. Used for better hardware support and consistent build process.

nvidia-container-toolkit (CDI) is necessary for --gpus=all to do CUDA and libEGL 3D with podman. Is this also already installed in bazzite?

ublue-os/toolboxes: "quadlets and systemd service units for management", boxkit : https://github.com/ublue-os/toolboxes#images

ublue-os/devcontainer .devcontainer/devcontainer.json: https://github.com/ublue-os/devcontainer/blob/main/src/base/...

It looks like the Just Justfile 40-nvidia.just has moved due to image topology simplification? https://news.ycombinator.com/item?id=39364975 :

ublue-os/config//build/ublue-os-just/40-nvidia.just defines the `ujust configure-nvidia` and `ujust toggle-nvk` commands

1y agoHN ↗

What does "native containers" mean in this context?

1y agoHN ↗

ostree native containers are bootable host images that can also be built and signed with a SLSA provenance attestation

From https://coreos.github.io/rpm-ostree/container/#ostree-native... :

rpm-ostree inherits work in ostree-rs-ext to create “container native ostree” functionality. This elevates OCI/docker containers to be natively supported as a transport mechanism for bootable operating systems.

I think it means simplification of complexity and unnecessary re-duplication.

1y agoHN ↗

Huh, this is kinda wild. So for esxi images, this would seem to beat/potentially be simpler than the traditional Packer + interacting with an ISO on esxi infra, yes?

1y agoHN ↗

Arguably yes. I think the big improvement is that an upgrade is really just switching from image A to image B, rather than dozens to hundreds of individual package transactions. Furthermore parts of the system are fully mutable (e.g. /etc) allowing you to run automation against a system post install for more customisation.

1y agoHN ↗

I've been very excited on progress on bootc. I've tried to make my own coreos distro and its quite complicated in comparison.

I've used this to start from a minimal base and added what I've needed on top. Best of all, updates are delivered via a container registry.

1y agoHN ↗

... and it works fabulously. I have been running Bluefin (same folks as Bazzite) from one of these templates for about 6 months and it has been a near on flawless experience. I have moved from Fedora 40->41->42 without having to touch a traditional "upgrade".

https://projectbluefin.io/

1y agoHN ↗

I wonder which gets more actual usage, this project or linuxkit.

Does anyone have experience worth sharing with both?

1y agoHN ↗

If I had to wager a guess, bootc might get more actual use now that it's supported in RHEL 9.6 and 10 as "image mode". It's an exciting piece of technology, especially from the perspective of a platform engineer.

Also, bootc is a basis for the Universal Blue family of distros, especially Bazzite, which is very popular with gamers.

1y agoHN ↗

yeah you're probably right -- going forward the usage is likely going to be a lot higher, at the very least.

I thought of the underlying tech for those other distros being ostree more than anything but this is the better interpretation.

1y agoHN ↗

I've used this to bootstrap bootc-based Fedora on my workstations. I've got a CI job that builds updated container images every night, a simple `rpm-ostree upgrade` pulls in the new image and `systemctl reboot` activates it.

What I like about this is always having a known working image I can quickly swap to, particularly for the machine with an nvidia card.

1y agoHN ↗

I'd love to have something like this for embedded system images, like for Raspberry Pi deployments.

1y agoHN ↗

Totally. Appliances are perfect candidates for this tech.

1y agoHN ↗

Roman Shtylman has an example of using a Dockerfile to produce a rootfs for the Jetson Nano: https://github.com/defunctzombie/jetson-nano-image-maker (2022)

I've always been hesitant to use this method over debootstrap: the Ubuntu container images ("FROM ubuntu:20.04") are created from a tarball that Ubuntu's convoluted CI system spits out and I'm not confident I understand if it's somehow suitable only for a container and not for real hardware.

1y agoHN ↗

The alternative is mkosi from systemd developers

https://github.com/systemd/mkosi

However beware that they break backwards compatibility almost every 6 months. This is probably the most backwards-incompable project I know, you can't rely that the minor version update won't break your projects.