You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently OCI images can only be run as containers on top of Incus.
It would make sense to also allow them to run as lightweight virtual machines (--vm flag).
To do so, I expect we'll want to:
Publish a kernel + initrd combination on the image server (x86_64 and aarch64)
Have that initrd contain a small loader that will:
Mount the root filesystem over virtiofs
Re-shuffle the mount table and pivot_root
Mount the agent drive(s)
Spawn incus-agent
Exec into the container entry point ensuring it's attached to /dev/console
Have Incus treat all OCI images as both container and VM capable
For those images, rather than allocate a block volume, just stick with the single-volume as is normally done for containers
On startup, if dealing with OCI, ensure that we have a load kernel and initrd available for it, then bypass the firmware logic and use direct kernel booting to boot the image
This should give us a very lightweight VM which effectively acts almost identically to a traditional OCI container but can still handle all of our normal VM devices and config options.
The text was updated successfully, but these errors were encountered:
Woud be able to publish/upload their kernel and initrd (bzImage / rootfs.cpio.gz) and run.
For those images, rather than allocate a block volume, just stick with the single-volume as is normally done for containers
Consider having the option to have no volume at all (think of a busybox type scenario where all is in ram and a distro is never reaches pivot_root). imho most users would expect a volume by default- having the option of none is useful as less to tidy up if not needed.
A more complex use case might be how to translate networking expectations from a user -> incus e.g.
Currently OCI images can only be run as containers on top of Incus.
It would make sense to also allow them to run as lightweight virtual machines (
--vm
flag).To do so, I expect we'll want to:
incus-agent
This should give us a very lightweight VM which effectively acts almost identically to a traditional OCI container but can still handle all of our normal VM devices and config options.
The text was updated successfully, but these errors were encountered: