feat(freebsd): Initial support for freebsd guests#538
Draft
Conversation
Add initial support for FreeBSD guests. In the current status, urunc can boot FreeBSD based workloads which use a block based rootfs. This can be done either through a block image inside the container's image or through devmapper and the use of ext2 as the filesystem for the block-based snapshot. Since FreeBSD does not accept arbitrary kernel boot parameters, nor accepts network configuration through kernel boot parameters, the current implementation attaches an extra text file through virtio block. This text file contains the urunit configuration which has been updates to also include the network configuration and the application, along with its arguments. Furthermore, the current approach is limited to Firecracker, since the Qemu microVM support does not seem to work properly for FreeBSD. Signed-off-by: Charalampos Mainas <cmainas@nubificus.co.uk>
Add information in docs for FreeBSD as a supported guest, providing a few information about it and the support over urunc. Signed-off-by: Charalampos Mainas <cmainas@nubificus.co.uk>
✅ Deploy Preview for urunc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
2cb67b8 to
1208aaa
Compare
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
Add initial support for FreeBSD guests. In the current status, urunc can boot FreeBSD based workloads which use a block based rootfs. This can be done either through a block image inside the container's image or through devmapper and the use of ext2 as the filesystem for the block-based snapshot.
Since FreeBSD does not accept arbitrary kernel boot parameters, nor accepts network configuration through kernel boot parameters, the current implementation attaches an extra text file through virtio block. This text file contains the urunit configuration which has been updates to also include the network configuration and the application, along with its arguments.
Furthermore, the current approach is limited to Firecracker, since the Qemu microVM support does not seem to work properly for FreeBSD.
Related issues
Add support for FreeBSD
How was this tested?
Creating a new image with a FreeBSD kernel and running it. There are two images, one with a block image for the rootfs and one with raw files in the container images which requires devmapper with ext2 filesystem for the snapshot.
LLM usage
N/A
Checklist
make lint).make test_ctr,make test_nerdctl,make test_docker,make test_crictl).