Skip to content

fix(oci): skip portable rootfs metadata on same-uid virtiofs - #272

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/linux-skip-portable-rootfs-metadata-replay
Sep 9, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
fix/linux-skip-portable-rootfs-metadata-replay

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Linux/macOS same-uid virtio-fs retains Host share-root UIDs and refuses guest chown (by design for non-root Host Services).
  • Portable MicroVM specs therefore omit dev.a3s.oci.rootfs-metadata on non-Windows hosts; Windows WHPX still opts in so the guest can restore Linux ownership NTFS cannot store.
  • Bundle publish writes the metadata file only when that annotation is present.

Test plan

  • cargo test -p a3s-box-runtime portable_microvm_compiler_uses_relative_root
  • cargo test -p a3s-box-runtime publish_portable_bundle_uses_private
  • Re-run Box↔box-kvm-qualification-service alpine /bin/true smoke after merge

Linux/macOS DedicatedVm shares retain host UIDs and refuse guest chown; keep metadata replay for Windows WHPX only.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 758895e into main Sep 9, 2026
4 of 7 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