Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

// for KVM, only allow snapshot with memory when VM is in running state Gliffy Diagram

namevmsnapshot

        if (userVmVo.getHypervisorType() == HypervisorType.KVM && userVmVo.getState() == State.Running && !snapshotMemory) {

            throw new InvalidParameterValueException("KVM VM does not allow to take a disk-only snapshot when VM is in running state");

        }

 

Important questions:


When we stop VM from cloudstack, on Hyper-V that VM is destroyed. When VM gets destroyed all the associated VM snapshots also get destroyed.

To Overcome this we can export the VM which also contains the snapshots information. We can export the VM when the VM is stopped on condition whether that contains the snapshot.

When we will start the VM we will import the existing VM.

All other operations will work as expected.