Am I correct that a VM will keep it’s own copy of a non-persistent image until such time as I delete the VM? Is there any circumstance, beyond a delete, where the image will revert back to the template?
For example I have two VMS both using the same template image. I’ve booted them up and I’ve add /host-1.txt and /host-2.txt to each server. How long will those files be there for?
This is the lifecycle of the image in the datastore, not the lifecycle
of the VM image[1].
Am I correct that a VM will keep it’s own copy of a non-persistent image until such time as I delete the VM? Is there any circumstance, beyond a delete, where the image will revert back to the template?
For example I have two VMS both using the same template image. I’ve booted them up and I’ve add /host-1.txt and /host-2.txt to each server. How long will those files be there for?
The VM data, i.e. the data written since the VM was first poweron,
remain until the VM goes in DONE state after a “terminate”.
Another way to loose data is to use “onevm recover --recreate”[2].
Confirmed. What could happen is that the VM is moved from RUNNING to POWEROFF if the VM is shutdown from the guest. But never DONE (final state after a terminate action).