docs(virtualization): guide for building a Windows golden image with Packer - #666
Open
scooby87 wants to merge 6 commits into
Open
docs(virtualization): guide for building a Windows golden image with Packer#666scooby87 wants to merge 6 commits into
scooby87 wants to merge 6 commits into
Conversation
added 5 commits
August 21, 2026 21:25
…Packer Add a Virtualization guide covering how to build a customized Windows Server golden image with Packer against the KubeVirt builder, harden it, capture the disk, and register it in Cozystack — either as a cloneable vm-disk (copy-clone) or, for a bare URL-reachable base, via vm-default-images. Complements the manual "Running Windows VMs" guide and cross-links Cloneable Virtual Machines and Golden Images. Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
Expand the Windows golden-image guide with the actual Packer usage: installing the community KubeVirt builder plugin, a complete windows.pkr.hcl (source + build with WinRM communicator and provisioners), the variables file, and the role of autounattend.xml in enabling WinRM for the build. Previously the guide only showed `packer build` without the configuration. Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
…ric) Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
…ofile - Plugin: the KubeVirt builder is the published github.com/hashicorp/kubevirt plugin, installed with `packer init` — drop the incorrect "community / install manually / cannot packer init" wording and the misattribution. - Register: describe the CDI-based clone flow (capture a vm-image DataVolume in cozy-public, clone per VM via source.image.name, verify it actually has data) instead of a non-existent cloneType field. - VMInstance example: set instanceProfile: windows.2k22.virtio and instanceType explicitly, so the VM does not fall back to the ubuntu profile. - Fix invalid HCL in variables (comma-separated attributes) and remove the duplicated ISO DataVolume apply. Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
…empty smart-clones Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
scooby87
requested review from
Andrei Kvapil (kvaps),
Timofei Larkin (lllamnyp),
myasnikovdaniil and
Timur Tukaev (tym83)
as code owners
August 24, 2026 13:32
✅ Deploy Preview for cozystack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…lume name Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a guide for building a Windows golden image with Packer on KubeVirt, superseding the closed #665 (its fork head branch was deleted, so it could not be reopened — this is a fresh PR from a branch pushed directly to the upstream repo).
It already addresses the three points from the #665 review: (1) it drops the non-existent
cloneTypevm-disk field and instead describes the CDI clone flow, noting that the clone strategy is chosen by CDI and the storage backend rather than set in the manifest, with thecdi.kubevirt.io/cloneType: copyannotation offered as a remedy when a smart-clone reportsSucceededbut leaves the target empty; (2) theVMInstanceexample now setsinstanceProfile: windows.2k22.virtioandinstanceType: u1.largeexplicitly; (3) the plugin is the publishedgithub.com/hashicorp/kubevirtbuilder, declared inrequired_pluginsand installed withpacker initrather than any manual/community install.The guide is fully generic with no client-specific content.