Fix unikernel deployment #109
Merged
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.
This PR addresses an issue a user noticed where the instructions resulted in a broken deployment.
Issue
Instances based off the pushed image would do nothing but reboot as shown by the logs. Of note the uploaded image was 37MB.
Changes
initrdfilesystem is EROFS.run-unikernel.shscripts that allow adjusting thevolimportpath prefix and the VCPUS parameter.volimportprefix environment variable might be unnecessary but was preferred as the original referencesonkernel. Theofficialversion seems to work and is the default.Both headless and headful images were built and run. The headful image ran with WebRTC enabled.
Note
Package unikernels with EROFS, increase headless memory, add VCPUS and VOLIMPORT_PREFIX envs, and refine README unikernel instructions.
--rootfs-type erofstoimages/chromium-headless/build-unikernel.shandimages/chromium-headful/build-unikernel.sh.images/chromium-headless/run-unikernel.sh:-Mincreased from1024to3072.VCPUS(default1).images/chromium-headful/run-unikernel.sh:VCPUS(default4).VOLIMPORT_PREFIX(defaults toonkernel).README.md: Update Unikraft instructions—split secret exports, use explicitIMAGE=... images/.../{build,run}-unikernel.shcommands, add headful run alternative withVOLIMPORT_PREFIX, and noteVCPUStunable.Written by Cursor Bugbot for commit d390334. This will update automatically on new commits. Configure here.