use case
I tried installing Fedora CoreOS as a VM to then run a container inside it with podman on IncusOS.
resources/related posts/research
I tried looking at these posts:
- installing Incus on CoreOS, which is not what I want/but the inverse thing
- this thead, but it was about running CoreOS as a container and not VM
- I asked the CoreOS people for officially supporting it as a platform
The last thing is most interesting:
This is about the mechanism we would use to pass the Ignition config to the instance. In this case we would likely use the same option used to pass cloud-init configs: How to use cloud-init - Incus documentation
The link looks interesting, so one would need to use cloud-init
However:
Maybe the OpenStack image would work as is as it has support for cloud-init drives from memory.
So it seems only(?) this image includes cloud-init for it to work, actually? I used the qemu ones (see below), so using different ones just for cloud-init kinda feels like “misusing” the images. ![]()
what I tried so far
You can see my progress in this repo:
Basically, currently I just use the qemu images, package them as a tar.xz and push them to the CoreOS host. And this works flawlessly.
This follows this awesome blog post by ignisc that already explains a lot:
problems
I do not (only) run Incus, but IncusOS. That means, I have no access to the file system and cannot run terminal commands on that host.
The blog post linked above, however, then tries to pass the Ignition config as a qemu variable:
incus config set fcos02 raw.qemu=" -fw_cfg name=opt/com.coreos/config,file=/var/lib/incus/ignition/fcos02.ign"
Obviously, this does not work on a remote IncusOS instance/server. You also cannot place the file “on the server” to adjust the path.
Questions
-
Is there any way to pass an init file like the mentioned one to the server?
-
What do you think of using the OpenStack image, as indicated? (And then cloud-init? Somehow?)
- So if cloud-init is used, how to do that actually? I read the docs, but I found no way of placing a file somewhere (the Ignition file) to later be picked up by cloud-init.
-
The blog post says, at the end:
Find a way not to have to scp the ignition files (maybe using a volume containing them all ?)
This confuses me a bit, because I do not actually see
scpmentioned in the guide before at all and how it should work.
Cross-posted to the Fedora CoreOS community forum.