Best way to get a bootable native (non-hosted) image

43 views
Skip to first unread message

Adam Schroth (Liquidocelot11)

unread,
May 29, 2026, 12:28:16 AM (13 days ago) May 29
to inferno-os
I'm trying to build a x86 image of inferno to run in QEMU or virtualbox. I'm building it on a linux host right now. I can run it emulated on top of linux using the instructions to build the emu version, but I really wanted to get it running without a host. When I create a bootable image and try and load it into QEMU it hangs loading the bootloader. It appears like my image isn't in a format the plan9 bootloader likes, or maybe is getting corrupted during the build. I did find there used to be a native bootable image online called inferno-pc.img, but it appears to be long gone. I was hoping either someone had this image and could share it with me, or has some advice on getting a working image.

clasp126...@icebubble.org

unread,
May 29, 2026, 3:33:39 PM (12 days ago) May 29
to inferno-os
From: "Adam Schroth (Liquidocelot11)" <liquido...@gmail.com> writes:

> I'm trying to build a x86 image of inferno to run in QEMU or virtualbox.

That is rumored to work (see below).

> but I really wanted to get it running without a host.

QEMU and virtualbox are both hosted environments. A native install
would be one running on bare metal.

> When I create a bootable image and try and load it into QEMU it hangs
> loading the bootloader.

When I try loading an inferno kernel on bare metal, it hangs just
after loading the kernel. The problem seems to be that those who
develop/regression test the kernel test it only on virtual hardware
(i.e., qemu) and not on real hardware, which differs in subtle - and
sometimes critical - ways from a virtualized environment.

I have previously asked, on this list, if anyone knows how to get the
inferno kernel running on real hardware. No answers were forthcoming.
But subscribers reported having gotten it to work under a virtual
environment (qemu? I don't know. AFAIC, none of that virtual crap
actually exists). If you look through the archives, you might be able
to find a "magic" (and probably very long) qemu command line recipe
which will work.

Lastly, if anyone reading this knows how to get a native kernel running
on real hardware, please advise!

Giovanni Lostumbo

unread,
May 29, 2026, 4:03:29 PM (12 days ago) May 29
to inferno-os
Try PCem: it emulates old machines a lot more accurately than Virtual box or Qemu: 

Giovanni Lostumbo

unread,
May 29, 2026, 4:42:59 PM (12 days ago) May 29
to inferno-os
https://web.archive.org/web/20160411084029/https://umdrive.memphis.edu/blstuart/htdocs/inf_nat_inst.html



There's a few more links in that section, such as building disk images

The 2 links above:
"How to Build a Native Inferno Kernel for the PC
Installing Native Inferno on a PC"

Adam Schroth (Liquidocelot11)

unread,
May 30, 2026, 3:17:03 PM (11 days ago) May 30
to inferno-os
True, but the first step for me was getting a working image that doesn't have an underlying OS besides inferno. Like no linux, mac, windows, plan9, unix. etc, just Inferno booting off the HD. If I can get one working I plan to try to mess around with it on bare metal.

Adam Schroth (Liquidocelot11)

unread,
May 30, 2026, 3:19:43 PM (11 days ago) May 30
to inferno-os
Big thanks for the links, including the .iso you found. That may hold some promise on trying to find a way to get a bootable image! The other links contain some good information I wasn't aware of. I plan on reading more in depth when I have a moment, but it may have a piece of wisdom that can get me further.

Adam Schroth (Liquidocelot11)

unread,
Jun 2, 2026, 10:43:53 AM (9 days ago) Jun 2
to inferno-os
Thanks for the help guys! It was actually a big help. I can't wait to start playing around with it. I was able to get a bootable image with the shell. The windows manager isn't working yet, but im pretty sure its because my build was missing some nessisary components. I have /dev/vga1 missing so ill be trying to figure that out 

da...@boddie.org.uk

unread,
Jun 2, 2026, 6:06:18 PM (8 days ago) Jun 2
to inferno-os
Does this image work?

It's constructed by scripts in this repository:

Adam Schroth (Liquidocelot11)

unread,
Jun 2, 2026, 9:32:14 PM (8 days ago) Jun 2
to inferno-os
Ill try, thanks for digging that up! Im currently stuck fighting wm, I keep getting wmlib: can't allocate Display: initdisplay: /dev/draw/new: from my own image.
Reply all
Reply to author
Forward
0 new messages