We clone a running VM in 2 seconds
codesandbox.io
codesandbox.io
Edit: Okay, I did a bit of searching and if the image is a file (qcow2, say) I'm pretty sure you could just `cp --reflink=always old.qcow2 new.qcow2` and it would take way less than 30 seconds. (Again, assuming BTRFS; I guess ex. XFS has some sort of reflink support these days but I don't know)
> A VM can be cloned and the clone started in seconds though this heavily depends on image / rootfs size so it’s likely more in the order of 30 seconds or so (number pulled out of thin air).
which is specifically about the disk side.
The Minecraft example provided would leak the servers private key used to secure sessions [0] and enable practical MitM attacks. If you run server A, give me the copy Server B of it and Alice logs into B, I could log into Server A as Alice. Same thing if we both run copies of the same original VM.
I thought this might use some of the underlying page tracking support for live network migration [0] that nearly every hypervisor has now, but it doesn't seem like they needed it!
Somehow that conveys little
Can you run a Minecraft server in a MicroVM? If so, what are the drawbacks?