Skip to content

Conversation

@cgwalters
Copy link
Collaborator

Implement cloud-init support for ephemeral VMs using the ConfigDrive
datasource approach with VFAT filesystem as specified in issue #108.

Note this adds a mod repart as we use systemd-repart to generate
the image.

The ConfigDrive is attached as a raw disk image at /dev/disk/by-id/virtio-config-2
and will be automatically detected by cloud-init in the guest VM.

Fixes: #108

Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters walters@verbum.org

@cgwalters
Copy link
Collaborator Author

This depends on #107

@cgwalters cgwalters force-pushed the cloudinit branch 7 times, most recently from 3b11b66 to 06bc44d Compare November 7, 2025 14:41
@cgwalters cgwalters force-pushed the cloudinit branch 5 times, most recently from 73a0034 to 30ab3f7 Compare November 16, 2025 22:56
Implement cloud-init support for ephemeral VMs using the ConfigDrive
datasource approach, using a VFAT filesystem (more compatible than ISOs).

This uses the same approach as systemd for populating VFAT filesystems:
mkfs.vfat to create the filesystem, and mcopy (from mtools) to populate
it. We avoid using systemd-repart itself as it creates GPT-partitioned
disks rather than raw VFAT filesystems.

The ConfigDrive is attached as a raw disk image and will be
automatically detected by cloud-init in the guest VM.

Fixes: bootc-dev#108

Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters <walters@verbum.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for attaching cloud-init ISOs

1 participant