Skip to content

Resolve symlinked libvirt base image when each VM starts - #53

Open
nel wants to merge 1 commit into
NetwindHQ:mainfrom
nel:libvirt-resolve-base-symlink
Open

nel wants to merge 1 commit into
NetwindHQ:mainfrom
nel:libvirt-resolve-base-symlink

Conversation

@nel

@nel nel commented Oct 29, 2026

Copy link
Copy Markdown

Summary

Resolves the libvirt path with filepath.EvalSymlinks just before creating each job's overlay, so the overlay records the real image file instead of the link. With path pointing at a symlink, moving the link rolls out a new base image without restarting outrunner: new VMs get the new image, running VMs keep theirs. A plain path behaves as before, and a missing image fails the start with a clear error.

Closes #52

Test plan

  • Unit test: a symlink resolves to its target, a missing image returns an error
  • make test, golangci-lint run, gofmt -s

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.

libvirt: resolve a symlinked base image when each VM starts

1 participant