Unable To Create Snapshot for running Linux VM

Mayank Srivastava 41 Reputation points
2020-11-26T11:42:00.177+00:00

Hi,

I am trying to create a Recovery Snapshot for a Linux VM in Hyper-V using "New-VmBackupCheckpoint" and it gets created without any error.

But when I try it to create Recovery Snapshot if VM is in running state. It throughs the exception.

But it works for Windows VM.

Do Linux Vm needs to be shutdown first?

Thank You,
Mayank Srivastava

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Leon Laude 86,026 Reputation points
    2020-11-26T11:52:00.343+00:00

    Hi @Mayank Srivastava ,

    The cmdlet New-VmBackupCheckpoint is not an official Microsoft PowerShell cmdlet, and it does not belong to the Hyper-V PowerShell module.

    To create a checkpoint/snapshot for a Hyper-V virtual machine, you should use the Checkpoint-VM PowerShell cmdlet.

    Example:
    Checkpoint-VM -Name <VMName>

    For more information, please read here:
    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/checkpoints#creating-checkpoints

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Best regards,
    Leon

    0 comments No comments

  2. SChalakov 10,576 Reputation points MVP Volunteer Moderator
    2020-11-26T11:55:28.113+00:00

    HI Mayank,

    what exception are you getting exactly? Can you please post it here, so that we can give you a more adequate answer?
    Thanks in advance!

    Regards,
    Stoyan


  3. SChalakov 10,576 Reputation points MVP Volunteer Moderator
    2020-11-26T17:57:23.317+00:00

    Hi @Mayank Srivastava ,

    I would surely test with the

    Checkpoint-VM  
    

    cmdlet as Leon suggested. Have you come across this one:

    WS2016 TP5 checkpoint error for UBUNTU (LINUX) GUEST VM
    https://social.technet.microsoft.com/Forums/en-US/ebee13ac-8967-4c55-a5a9-859db1c5fb8c/ws2016-tp5-checkpoint-error-for-ubuntu-linux-guest-vm?forum=WinServerPreview

    It might be the same situation you are facing right now. Can you please verify this and post a short feedback?

    Thanks and Regards,
    Stoyan

    0 comments No comments

  4. Mico Mi 1,936 Reputation points
    2020-11-27T06:50:35.337+00:00

    Hi,

    1. Please make sure the VM is completely up-to-date.
    2. Make sure the linux VM integration tools are installed with:
      apt-get install --install-recommends linux-virtual-lts-xenial
    3. Made sure the Virtual Host is up-to-date and try to reboot the Virtual Host
    4. And you can try to use the following PowerShell code to create a new Hyper-V checkpoint:
      Checkpoint-VM –Name ‘VM Name’ –SnapshotName ‘Testing Snapshot’

    Thanks for your time!
    Best Regards,
    Mico Mi

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  5. Neelabh Mam 1 Reputation point
    2020-12-02T03:19:13.187+00:00

    I see 3 major issues with the current (and the official) Hyper-V powershell cmdlets for checkpoints as compared to what Taylor B. had originally implemented (New-VmBackupCheckpoint .. et al).

    Please help advise on the below aspects:

    Taylor B's implementation allows you to specify a consistency level to the checkpoint. This is not available with the Checkpoint-VM et al.. what up with that ?

    Taylor B's implementation has a method to convert a backup checkpoint to a reference point. I don't see any such thing in the official Hyper-V cmdlets.

    Taylor B's checkpoint export implementation allows you to differentially or incrementally export the checkpoint based on a earlier reference point. How can I do something similar with the official cmdlets ?

    Neelabh

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.