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 [email protected]

@cgwalters
Copy link
Collaborator Author

This depends on #107

@cgwalters cgwalters force-pushed the cloudinit branch 5 times, most recently from 5b6e543 to e0aecc2 Compare November 5, 2025 16:48
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 <[email protected]>
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