update vm spec on restore from online vm snapshot to start with running false
@@ -455,6 +455,9 @@ func (t *vmRestoreTarget) Reconcile() (bool, error) {
newVM := t.vm.DeepCopy()
newVM.Spec = snapshotVM.Spec
+ // update Running state in case snapshot was on online VM
+ running := false
+ newVM.Spec.Running = &running
newVM.Spec.DataVolumeTemplates = newTemplates
newVM.Spec.Template.Spec.Volumes = newVolumes
if newVM.Annotations == nil {
