Skip to content

Misc. containerd-shim-lcow-v2 fixes for confidential - #2906

Open
Tingmao Wang (micromaomao) wants to merge 3 commits into
microsoft:mainfrom
micromaomao:lcow-v2-conf
Open

Misc. containerd-shim-lcow-v2 fixes for confidential#2906
Tingmao Wang (micromaomao) wants to merge 3 commits into
microsoft:mainfrom
micromaomao:lcow-v2-conf

Conversation

@micromaomao

@micromaomao Tingmao Wang (micromaomao) commented Sep 1, 2026

Copy link
Copy Markdown
Member

Picked from confidential AI Sandbox PoC

Assisted-by: GitHub-Copilot
Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>
… is started

The cleanup code was meant to remove the VMGS if we errors, but
currently it always remove it.

Assisted-by: GitHub-Copilot
Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>
…lone containers

Assisted-by: GitHub-Copilot
Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes confidential LCOW sandbox lifecycle handling and standalone container mounts.

Changes:

  • Preserves confidential VM boot files after successful configuration.
  • Resolves uvm:// mounts for standalone containers.
  • Uses the correct <sandboxID>@vm identifier during shim shutdown.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
internal/guest/runtime/hcsv2/standalone_container.go Resolves standalone uVM mounts.
internal/builder/vm/lcow/specs.go Limits confidential-file cleanup to failures.
internal/builder/vm/lcow/specs_test.go Verifies copied confidential files persist.
cmd/containerd-shim-lcow-v2/manager.go Corrects VM lookup during shutdown.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

3 participants