Hyper-V Troubleshooting

From SEPsesam
Jump to: navigation, search


Other languages:

Copyright © SEP AG 1999-2020. All rights reserved.

Any form of reproduction of the contents or parts of this manual is allowed only with the express written permission from SEP AG. When compiling and designing user documentation SEP AG uses great diligence and attempts to deliver accurate and correct information. However, SEP AG cannot issue a guarantee for the contents of this manual.

Docs latest icon.png Welcome to the latest SEP sesam documentation version 4.4.3/4.4.3 Grolar. For previous documentation version(s), check documentation archive.


Hyper-V

Hyper-V backup fails with error [ [NInternal::CVssAsyncDecorator::Wait] - VSS_S_ASYNC_PENDING]

Problem

  • The Hyper-V backup fails with the following error:
  • Error: DB Module: [ [NInternal::CVssAsyncDecorator::Wait] - VSS_S_ASYNC_PENDING]
    

Solution

  • You have to increase the VSS value in the configuration file <SESAM_VAR>/var/ini/sm.ini from 200
  • [SBC_OPTIONS]
    VSS_WAIT_FOR_ASYNC_OP=200
    

    to 600

    [SBC_OPTIONS]
    VSS_WAIT_FOR_ASYNC_OP=600
    

Hyper-V backup fails with time-out error

Problem

  • The backup task fails with a time-out error in Windows:
Error:   DB Module: [ [Failed at thaw] - VSS_E_WRITERERROR_TIMEOUT.
[Microsoft Hyper-V VSS Writer] - VSS_E_WRITERERROR_TIMEOUT]

Solution

Hyper-V backup fails with error VSS_E_SNAPSHOT_SET_IN_PROGRESS

Problem

  • When backing up a Hyper-V VM in Windows Server 2012, the following error appears:
Error: VSS_E_SNAPSHOT_SET_IN_PROGRESS error and in the Windows Event logs VDS basic provider error

Solution

Backup of a Linux VM fails

Problem

  • When backing up a Linux VM without Guest Services support, backup job fails with error:
  • VSS_E_WRITERERROR_NONRETRYABLE
    
    Backups of Linux systems with Guest Services support work normally.

Solution

  • If backing up Linux VM fails with VSS_E_WRITERERROR_NONRETRYABLE error, open the VM Settings -> Integration Services and disable the option Backup (volume shadow copy).
  • VM settings.png

Hyper-V restore fails

Problem

When attempting to restore a Hyper-V VM into a different Hyper-V environment, the restore might fail with one of the following errors:

Unable to import virtual machine due to configuration errors

or something like

The virtual machine <VM_name> is currently using an AMD processor, but physical computer 
<host_name> has an Intel processor.
translate>A running or saved virtual machine cannot be migrated to a physical computer that has a 
processor from a different vendor. 
However, you can move the virtual machine to this node if you shut down the virtual machine.

A configuration error might be caused if a VM you want to restore is not compatible with destination Hyper-V host. Restoring can fail for the following reasons:

  • Hyper-V VMs are using advanced CPU features and fail if the CPUs are too different (different generation, type ...), when restoring VMs between servers with different processor types, e.g., Intel VT or AMD-V, or when the destination server is lacking virtualization extensions or has them disabled.
  • Restoring a VM that is fully configured with virtual switches and network definitions into a different Hyper-V environment could result in a failure to find the original switch definitions.

Possible solutions

Check VM and Hyper-V host compatibility
Before restoring a VM to a different Hyper-V host, check whether the host can support the VM type you want to restore. Use the Compare-VM cmdlet to check a VM and a Hyper-V host compatibility. Run the following commands to first record the compatibility report in a PowerShell variable $Report and then display the compatibility report:
$report = Compare-VM -Path $Source
$report.Incompatibilities | FT -AutoSize

Use the report to fix any compatibility or configuration issues. For details, see MS article Compare-VM.

Enable processor compatibility mode for a virtual machine
According to Microsoft: "Hyper-V performs pre-flight checks whenever a virtual machine live migration or save/restore operation is initiated. These checks compare the set of processor features that are available to the virtual machine on the source host against the set of features that are available on the target host. If these feature sets don’t match, the migration or restore operation is cancelled." For more information, see the whole MS article Processor Compatibility Mode in Hyper-V. To enable processor compatibility mode for a virtual machine, proceed as follows:
    Information sign.png Note
    The Processor Compatibility Mode is only applicable to processor types within the same vendor processor family. It does not enable migrations between AMD- and Intel-based hosts. For more information, check TechNet Magazine Tip: When to Use Processor Compatibility Mode to Migrate Virtual Machines.
  1. Open Hyper-V Manager and shut down the VM which you want to configure for CPU compatibility mode.
  2. Right-click the powered off VM. In the Action pane, click Settings, and then click Processor.
  3. Expand Processor, and click Compatibility.
  4. Click Migrate to a physical computer with a different processor, and then click OK.
Shut down VM, back up, and restore
If you are restoring a VM from a Hyper-V host with one processor type (e.g., AMD) to the host with another processor type (e.g., Intel), you might try to move a Hyper-V VM by shutting it down, backing it up, and then restoring on the new host. For more details, see the Redmond Magazine article How To Move a Hyper-V Virtual Machine to New Hardware.

See also

Hyper-V