Hacker News new | ask | show | jobs
by halation_effect 1592 days ago
You can use 9pfs or build upon the block device.
1 comments

Yes you're right, it's a simple network-like protocol allowing you to mount a path on the host OS to the Unikraft unikernel VM similar to a container volume. In addition, Unikraft's abstract APIs[0] allow for more block devices such as EXT{2..4}, etc. which you mount in a similar way. Alternatively, you can put your filesystem into a CPIO format and mount it as initram and load it into RAM (great for performance and read-only file systems, like webservers).

[0]: https://unikraft.org/docs/concepts/architecture/

Ah, I see. It looks like this is actually relatively simple but hidden away in code you'd never see until you start using Unikraft.

This is something that strikes me as an obvious question about a unikernel so I'd like to see a bigger callout in the docs.

We also have support for EXT2/EXT4 but it's not open source yet.