Fast Copy VMs From Snaps

Is there a fast way to restore several VMs from a snapshot?

  1. create a vm-1, do processing, launch apps, etc.
  2. take stateful snapshot
  3. create 10-15 VMs based on that stateful snapshot (with different NIC)

Is it possible, or it’s stupid to even ask? :smiley:

lxc copy <instance>/<snap> <new instance should work.

I’m not sure how well the new guest will take it though, maybe try it and feedback?

1 Like
 lxc copy worker-1/snap new-vm


Error: Instance name cannot be changed during stateful copy ("worker-1" to "new-vm")

Am I using the command incorrectly?

Yes, so that is not a possibility then, for stateful snapshots.

1 Like