4 ms·
How does one store data with Unikraft? This is the problem I hit with other unikernel projects. OSv seemed to support ZFS or NFS somehow but I couldn't quite fi
by Youden 5y ago
How does one store data with Unikraft? This is the problem I hit with other unikernel projects. OSv seemed to support ZFS or NFS somehow but I couldn't quite figure out the documentation. I can't find any references to storage at all for Unikraft.
- halation_effect 5y agoYou can use 9pfs or build upon the block device.
- nderjung 5y agoYes 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/ https://unikraft.org/docs/concepts/architecture/
- felipehuici 5y agoWe also have support for EXT2/EXT4 but it's not open source yet.
- Youden 5y agoAh, 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.