#snapsafe: restoring uniqueness in Virtual Machine clones
summary
Problem: VM snapshots duplicate per-VM state like RNG seeds and host keys. Proposal adds a vmgenid generation counter (word-sized) and exposes it to user space via mmap and poll interface so userland PRNGs can detect post‑snapshot changes race‑free; kernel RNG can recheck the 16‑byte vmgenid to avoid races. Systemd integration models a quieting/quiet pre‑snapshot state with inhibitor locks to drain network and restart services (sshd) after reseed. Implementation is prototyped and discussed; race windows and policy choices remain unsolved.
AI-written summary · about
chapters (4)
- 0:00Introduction and problem definition
- 3:55Current Linux mechanisms
- 17:43System-wide snapshot safety
- 39:55Summary and next steps
related talks
36mDynamic VM Memory Resizing daemon (vmrd)
24mCloning VMs: sheep and tricks
30mNested Virtualization (X86) Part II
19mSupporting Trusted Virtual Machines with Hardware-based Secure Remote Memory
20mSupporting Live Migration of Confidential VMs in KVM
23mHyper-V's Virtual Secure Mode in KVM project update
16mSub-system Update: Linux Integrity Status Update
50mPanel Discussion: KVM-based Virtualization Contributor Q&A
