feat(unikernels): add support for IncludeOS unikernel - #1025
Draft
Nachiket-Roy wants to merge 1 commit into
Draft
Conversation
Add IncludeOS as a supported unikernel framework for urunc, enabling execution on top of QEMU, Solo5-hvt, and Solo5-spt monitors. - Implement IncludeOS guest unikernel structure handling CLI command strings and network device arguments (--net:service=<if> for Solo5, virtio-net for QEMU). - Register IncludeosUnikernel in the unikernel factory. - Add unit tests covering command string construction, monitor CLI argument generation, and factory creation. - Update documentation across README, hypervisor compatibility tables, and unikernel support guides. - Add IncludeOS test cases to e2e test suite (with Skippable flag). Fixes: urunc-dev#126 Co-authored-by: shivansh-source <shivanshsiddhi1234@gmail.com> Signed-off-by: Nachiket Roy <nachiket.roy.2@gmail.com>
✅ Deploy Preview for urunc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for the IncludeOS unikernel framework to
uruncacross supported monitors (QEMU, Solo5-hvt, and Solo5-spt). This builds upon and resolves the groundwork started in #619Summary of Changes:
IncludeOSunikernel driver (pkg/unikontainers/unikernels/includeos.go) conforming totypes.Unikernel.BuildExecCmd):hvt/spt): configures--net:service=<ifName> --net-mac:service=<mac>and--block:rootfs=<dev>.IncludeosUnikernelin theNew()factory function inpkg/unikontainers/unikernels/unikernel.go.pkg/unikontainers/unikernels/includeos_test.goverifying command line generation, monitor network/block flags, and factory instantiation.tests/e2e/test_cases.gofor bothdockerTestCasesandnerdctlTestCases(markedSkippable: true).README.mdanddocs/index.md.docs/unikernel-support.mdanddocs/hypervisor-support.md.6fd33d3) and Nix (2.35.2) version pins todocs/variables/versions.yml.harbor.nbfc.io/nubificus/bunny:latest).Related issues
How was this tested?
go test -mod=readonly -v ./pkg/unikontainers/unikernels/...TestIncludeOSCommandString,TestIncludeOSInit,TestIncludeOSSupports,TestIncludeOSMonitorNetCli,TestIncludeOSMonitorBlockCli, andTestIncludeOSNewFactoryall pass with 0 errors.uruncbinary:#syntax=harbor.nbfc.io/nubificus/bunny:latest./urunc.jsonand allcom.urunc.unikernel.*labels (unikernelType=includeos,hypervisor=hvt) are correctly generated and inspected.LLM usage
Assisted by Google Antigravity (Gemini). All generated code, hypervisor CLI flags, unit tests, and documentation were reviewed and verified.
Checklist
make lint/go vet).make test_ctr,make test_nerdctl,make test_docker,make test_crictl).