Skip to content

Attach an ISO as a cdrom drive (spec.iso) - #16

Merged
prop4n merged 1 commit into
mainfrom
feat/attach-iso-cdrom
Aug 31, 2026
Merged

prop4n merged 1 commit into
mainfrom
feat/attach-iso-cdrom

Conversation

@prop4n

@prop4n prop4n commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Makes the declared-but-unused spec.iso field actually attach an ISO to the VM as a cdrom drive, on ide0. The value is a Proxmox volume reference you upload yourself, e.g. local:iso/seed.iso.

Motivation: attach a NoCloud cidata ISO carrying custom user-data (any provider that reads a NoCloud datasource — cloud-init, guix-metadata, etc.). Generic, not tied to any distro.

  • Attaches on blank, image, and clone paths.
  • The Proxmox cloud-init drive (ide2) is now added only when cloudInit is set, so it never collides with a user-supplied cidata ISO (both label cidata). Set iso without cloudInit for the NoCloud flow; set cloudInit for the Proxmox-managed one.

Example:

spec:
  fromTemplate: guix-generic-tpl
  iso: local:iso/web01-seed.iso   # you upload it; carries the user-data
  state: running

Tests: iso option builder, iso propagates through the clone spec; full suite, lint, gofmt green.

@prop4n
prop4n merged commit 2a65490 into main Aug 31, 2026
3 checks passed
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.

1 participant