Automating Custom Golden VM Images with CDI and OpenShift Virtualization
Traditional VM provisioning from ISO files is too slow for cloud-native platforms, so OpenShift Virtualization uses pre-built golden images that can be deployed in seconds. The described pipeline has three stages: packaging a qcow2 disk into a lightweight container image built from scratch, storing it in the OpenShift Internal Registry, and having CDI periodically import updates into a DataSource for cloning. Setup involves setting restrictive file permissions on the disk, enabling the registry's default route, and pushing the image with Podman. CDI's importer is configured with registry credentials and the service CA certificate to avoid x509 errors, and a DataImportCron resource with an immediate-binding annotation schedules recurring imports every 15 minutes.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in