Skip to content

Preserve suspended Tart clone configuration - #473

Open
yzhuang-oai wants to merge 1 commit into
mainfrom
dev/yzhuang/orchard-suspended-clones
Open

Preserve suspended Tart clone configuration#473
yzhuang-oai wants to merge 1 commit into
mainfrom
dev/yzhuang/orchard-suspended-clones

Conversation

@yzhuang-oai

Copy link
Copy Markdown
Contributor

A suspended Tart clone must retain the hardware configuration used when its state was saved. Applying the normal resource overrides and MAC address or serial randomization can make the saved state unusable.

Read the cloned VM's state before configuration and skip tart set for suspended clones. Stopped clones keep the existing configuration behavior, including assigned CPU and memory precedence. Metadata lookup and decoding failures remain errors.

Suspended images must already have the desired hardware configuration; resource overrides apply to stopped clones.

Validation: command-runner regressions cover suspended and stopped clones, optional image FQN lookup, and metadata errors. Ran go test -count=1 -timeout=120s ./internal/worker/vmmanager/tart ./internal/worker/vmmanager/vetu ./internal/worker/vmmanager/base.

@yzhuang-oai
yzhuang-oai marked this pull request as ready for review September 1, 2026 16:15
@yzhuang-oai
yzhuang-oai requested a review from edi-oai September 1, 2026 16:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T16:29:11.290151Z 2f3093b New commits
🔒 Security Review Completed 2026-09-01T16:31:59.177147Z 2f3093b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Read the cloned VM state before applying resource overrides or randomizing
its MAC address and serial. Suspended clones must retain the configuration
used to save their state.

Cover suspended and stopped clones through the command runner, including
assigned resource precedence, optional image FQN lookup, and metadata
command and JSON errors.
@yzhuang-oai
yzhuang-oai force-pushed the dev/yzhuang/orchard-suspended-clones branch from c7b1cff to 2f3093b Compare September 1, 2026 16:27
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