Hi Folx,
Like others have said, this explanation is super-useful, but I’m still slightly a little confused:
[Question about non-persistent disk](https://answer from VURoland)
I think I need to think “out loud” about this. Based on VURoland’s answer, I think this is what is happening, but would love an OpenNebula person and/or anyone else who has a better understanding of this than I do to confirm or correct if it’s wrong:
Persistent storage:
- A persistent image has been created and appears in the Images tab in the OpenNebula GUI.
- When you use it to create a new VM, the persistent image stays as is.
- The new VM uses a snapshot of the persistent image, and that’s where any changes happen. 4. The original image does not change, only the snapshot does.
- When the VM is terminated hard, the snapshot disappears but the original image remains in its original state from before the VM was created.
- “Terminate” does not delete the snapshot, nor does rebooting. Only “Terminate hard” deletes the snapshot.
- Only one VM can be created from a persistent image because (??? only one snapshot can be created??? Some other reason???)
Non-persistent storage:
- A non-persistent image has been created and appears in the Images tab in the OpenNebula GUI.
- When you use it to create a new VM, the original non-persistent image stays as is.
- The new VM uses a clone of the non-persistent image, and that’s where any changes happen. 4. The original image does not change, only the cloned image does.
- When the VM is terminated hard, the cloned image disappears but the original image remains in its original state from before the VM was created.
- “Terminate” does not delete the cloned image, nor does rebooting. Only “Terminate hard” deletes the cloned image.
- Multiple VMs can be created from a non-persistent image because (??? you can clone from it as many times as you want???)
I think the challenge for me is the terminology. What makes the original image persistent or non-persistent? It seems that if you use either in order to create a VM, the original stays the same and the snapshot or the clone goes away when you terminate hard.