Urgent.News

What's breaking now, across thousands of outlets.

Tech

Part 3: Automated Boot Sources & Custom Golden Images with CDI

In a traditional virtualization world, provisioning a virtual machine often meant downloading a 15GB .iso file, mounting it through an administrative console, clicking through an OS installer wizard, and running post-install scripts. In a cloud-native platform like OpenShift Virtualization, that manual approach is unacceptable. We need VMs to spin up in seconds—just like containers—using…

In the third part of this series, the focus is on building custom golden OS images and automating their import using CDI in OpenShift Virtualization. Traditional virtualization provisioning often involved downloading large ISO files and manually installing an OS, but OpenShift Virtualization offers an automated approach that enables virtual machines to spin up in seconds, similar to containers.

The automated pipeline consists of three core stages: packaging the raw disk into a lightweight containerDisk, storing the image in the OpenShift Internal Registry, and configuring CDI to continuously pull updates and make them available for instant VM cloning. To build the containerDisk, ensure the raw qcow2 file has read-only permissions and correct ownership, then create a Containerfile specifying the image source and permissions.

Push the image to the OpenShift Internal Registry using the internal registry route and authenticate using a pull secret created with the cluster CA. Configure authentication and TLS certificates for CDI, create a pull secret for the importer pod, extract the cluster CA for TLS verification, and bind it to a configmap. Finally, deploy the DataImportCron to automate updates, specifying annotations for immediate storage allocation and storage requirements.

Developers can then spin up a VM in seconds using the managed DataSource, avoiding lengthy provisioning times. The guide also addresses common errors engineers may encounter, such as token availability, file permissions, certificate issues, secret reference handling, and storage provisioning delays. By following these steps and avoiding pitfalls, organizations can efficiently manage custom golden images and maintain up-to-date VM environments with minimal manual intervention.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Codex CLI에서 osFoundry 에이전트 세션으로 작업을 넘기는 방법

다 끝나면 Codex CLI는 자기가 직접 하면 안 되는 일을 osFoundry 의 세션(에이전트, 팀, 루프 중 하나)에 넘길 수 있게 된다. 넘기는 건 세 가지다. 목표, 지금까지 파악한 내용의 요약, 돌려받고 싶은 결과물. 세션 오너한테 알림이 가고, 오너는 Accept and run이나 Decline을 누른다.

하드웨어 세대가 끝나도 훈련 루틴은 남아야 한다

하드웨어 세대가 끝나도 훈련 루틴은 남아야 한다 메타가 Quest 2와 Quest Pro의 지원 종료를 공식화했습니다. 마지막 OS 업데이트는 내년 초, 이후 HorizonOS 개발은 차세대 하드웨어로 옮겨갑니다(출처: Road to VR). 하드웨어 세대가 바뀔 때마다 늘 나오는 질문이 있습니다.

More from Sunday 8 November →