Skip to content

Enable CSI support for micro-vm - #840

Open
hajiler wants to merge 1 commit into
agent-substrate:mainfrom
hajiler:uvm
Open

Enable CSI support for micro-vm#840
hajiler wants to merge 1 commit into
agent-substrate:mainfrom
hajiler:uvm

Conversation

@hajiler

@hajiler hajiler commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Add support for external volumes for micro vm environments.

This PR adds a new virtiofs specifically for CSI volume mounts.

Fixes #232

  • [X ] Tests pass
  • Appropriate changes to documentation are included in the PR

Comment thread demos/counter/counter-microvm-csi-test.yaml
Comment thread cmd/atelet/main.go Outdated
}
}
isDataScope := req.GetScope() == ateletpb.SnapshotScope_SNAPSHOT_SCOPE_DATA
if isDataScope && hasCsi && !hasDurable {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Currently, we do not snapshot csi volumes since they are external and persisted beyond pause/suspend. So we are basically quitely ignoring Data snapshot config when only CSI volumes are present.

Instead should we either:

  1. Disallow Data scope snapshot when only CSI volumes are present?
  2. Take snapshots of CSI volumes?
  3. Add some additional scope specific to CSI volumes?

IMO maybe we just add a note to the the Data snapshot scope that it is particular to durable dir, and external volumes will not be snapshotted.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think that's correct for now. Dmitry Berkovich (@dberkov) FYI.

Comment thread cmd/atelet/main.go Outdated
Comment thread cmd/ateom-microvm/internal/kata/overlay_linux.go Outdated
Comment thread cmd/ateom-microvm/checkpoint.go
Comment thread cmd/ateom-microvm/csi.go
Comment thread cmd/ateom-microvm/csi.go
Comment thread cmd/ateom-microvm/csi.go Outdated
Comment thread cmd/ateom-microvm/run.go Outdated
Comment thread pkg/api/v1alpha1/actortemplate_types.go Outdated
Comment thread docs/dev/microvm-csi-shortcomings.md Outdated
Comment thread cmd/atelet/main.go
Comment thread cmd/atelet/main.go Outdated
Comment thread cmd/ateom-microvm/internal/kata/restore.go Outdated
Comment thread cmd/ateom-microvm/run.go Outdated
Comment thread cmd/atelet/main.go Outdated
}
}
isDataScope := req.GetScope() == ateletpb.SnapshotScope_SNAPSHOT_SCOPE_DATA
if isDataScope && hasCsi && !hasDurable {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think that's correct for now. Dmitry Berkovich (@dberkov) FYI.

Comment thread cmd/ateom-microvm/internal/kata/overlay_linux.go Outdated
@BenTheElder

Copy link
Copy Markdown
Collaborator

[needs rebase]

@hajiler
hajiler force-pushed the uvm branch 6 times, most recently from 8fa8f0f to 46df5c8 Compare August 17, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] External volume mounts

2 participants