Solved

Hyper-V VM going into a "saved" state

Posted on 2013-02-05
10
3,529 Views
Last Modified: 2014-11-12
We have a virtual host running Windows Server 2008 R2 with Hyper-V.
There are 7 VM's running in this instance of Hyper-V.
We are running into a problem where one of these VM's, which is running Windows XP Professional, is going into a "saved" state multiple times a week, causing the machine to go down and become unavailable.

Anyone have any ideas as to why this could be happening? The host machine and the virtual machine are not out of disk space. This server has 16GB of RAM and is currently using 14GB.

I'm not sure if this has anything to do with it, but the Windows Server Backup on the host machine is has been failing for quite a while.  I am currently trying to figure out why this is happening as well.

Any input would be appreciated.

Thanks!
0
Comment
Question by:bsidfw
  • 5
  • 5
10 Comments
 
LVL 20

Expert Comment

by:Svet Paperov
ID: 38856729
How much free disk space is available on the volume hosting the VHD files?

Usually, when a VM with a dynamic VHD file fails to extend the file, it goes in Saved mode. That would explain the WSB failing too.
0
 
LVL 4

Author Comment

by:bsidfw
ID: 38856846
There is 14.2GB free on the volume that is hosting the VHD files - I would assume this should be enough space?
0
 
LVL 20

Expert Comment

by:Svet Paperov
ID: 38857048
It depends on how big the disk is and if the BIN files are on the same volume.

If you have snapshots (of any virtual machine on the same server), I would suggest deleting some to regain disk space.
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 4

Author Comment

by:bsidfw
ID: 38877396
We have freed up some disk space on this virtual host. The volume where the VHD's are housed now has 55GB free, which would be more than enough space to accommodate the back ups. This VM is still going into a "saved" state every night and having to be manually restarted in the morning.

However, I'm not sure if this is relevant but the Windows Server Backup is still failing with the error code 2155348301

Event ID: event id 517

Any input would be appreciated.

Thanks!
0
 
LVL 4

Author Comment

by:bsidfw
ID: 38884916
Ran a CHKDSK on C: (OS) and D: (VM data drive) last night.. no errors found.. the same VM was in a saved state again this morning and had to be manually restarted.

At this point, I'm not sure what else to look for or check.. Any ideas would be appreciated.

Thanks.
0
 
LVL 20

Expert Comment

by:Svet Paperov
ID: 38885089
Is the VM go in saved state when the backup starts? VSS, used by the backup, cannot take a snapshot of a XP VM without putting it in saved state. But, it should go back up after the snapshot is done. I think the failed backup and the issue of the VM are related.
0
 
LVL 4

Author Comment

by:bsidfw
ID: 38885120
The VM does go into a saved state once the backup starts at night, but never comes back up. There are 7 VM's on this machine and this same VM is the only one not coming out of a saved state every night after the backup is failing.. I agree these two issues are related.

I have freed up more disk space on drive D: where the VM's are housed and there is now 217GB free.

I suppose I will let the backup go again tonight and check on it to see if this disk space cleaning resolves the issue.

Thanks.
0
 
LVL 20

Expert Comment

by:Svet Paperov
ID: 38886264
0
 
LVL 4

Author Comment

by:bsidfw
ID: 38895082
We have found a pattern in the event logs that is happening every night  soon after the WSB starts.. (by the way, DPS-WORKSTATION is the VM that is going into a paused state and not recovering every night) WSB is set to start at 9PM

9:27PM
EVENT ID 12140
'DPS-WORKSTATION': Failed to open attachment 'D:\VMs\BRG0XP01\SystemDrive.vhd'.Error:'The process cannot access the file because it is being used by another process.' (0x80070020).(Virtual machine ID 3D963F46-271B-494E-9BAD-36557A85772B)

9:27PM
EVENT ID 12080
'DPS-WORKSTATION' Microsoft Emulated IDE Controller (Instance ID {83F8638B-8DCA-4152-9EDA-2CA8B33039B4}):Failed to restore with Error 'The process cannot access the file because it is being used by another process.' (0x80070020). (Virtual machine ID 3D963F46-271B-494E-9BAD-36557A85772B)

9:27PM
EVENT ID 12050
'DPS-WORKSTATION' failed to restore. (Virtual machine ID 3D963F46-271B-494E-9BAD-36557A85772B)

9:31PM
EVENT ID 11
The driver detected a controller error on \Device\Harddisk1\DR1

9:36PM
EVENT ID 8193
Volume Shadow Copy Service error: Unexpected error calling routine GetOverlappedResult. hr=0x80070057, The parameter is incorrect.

Operation:
  Revert Shadow Copy

Context:
  Execution Context: System Provider

9:36PM
EVENT ID 12293
Volume Shadow Copy Service error: Error calling a routine on a Shadow Copy Provider {b5946137-7b9f-4925-af80-51abd60b20d5}. Routine details RevertToSnashot (hr=0x80043202, A Volume Shadow Copy Service component encountered an unexpected error.
Check the Application event log for more information.
)

9:37PM
EVENT ID 12140
'DPS-WORKSTATION': Failed to open attachment 'D:\VMs\BRG0XP01\SystemDrive.vhd'.Error:'The process cannot access the file because it is being used by another process.' (0x80070020).(Virtual machine ID 3D963F46-271B-494E-9BAD-36557A85772B)

9:37PM
EVENT ID 12080
'DPS-WORKSTATION' Microsoft Emulated IDE Controller (Instance ID {83F8638B-8DCA-4152-9EDA-2CA8B33039B4}):Failed to restore with Error 'The process cannot access the file because it is being used by another process.' (0x80070020). (Virtual machine ID 3D963F46-271B-494E-9BAD-36557A85772B)

9:37PM
EVENT ID 12050
'DPS-WORKSTATION' failed to restore. (Virtual machine ID 3D963F46-271B-494E-9BAD-36557A85772B)

9:37PM
EVENT ID 521
The backup operation that started at '2013-02-15T03:04:12.8020000000Z' has failed because the Volume Shadow Copy Service operation to create a shadow copy of the volumes being backed up failed with the following error code '2155348129'. Please review the event details for a solution, and then rerun the backup operation once the issue is resolved.

Does anyone have any insight as to what is happening here? I'd really appreciate it.. Thank you.
0
 
LVL 20

Accepted Solution

by:
Svet Paperov earned 500 total points
ID: 38896401
Do you have anti-virus software on the Hyper-V host? If yes, you need to remove the virtual machines directories from it.

Other suggestions:
•      Reinstall the Integration services in that VM
•      Do some manipulations with the VHD file: compact if it’s dynamic, convert to fixed

As a workaround, you could run automated tasks to stop the VM before starting the backup and start it back short after the VSS is done. The following post might help: http://www.experts-exchange.com/Microsoft/Applications/Virtual_Server/Hyper-V/Q_25100878.html


FYI: inline backup (without putting the VM in saved mode) is supported only in the Enterprise releases of Windows 7 and 8, and in all server releases starting with Windows Server 2003.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nowadays, Virtual Machines are used equally by small and large scale organizations. However the issue is that VMDK files are also prone to corruption. So, in this article we are looking at how to recover VMDK files from hard disk of host operating s…
Why should I virtualize?  It’s a question that’s asked often enough.  My response is usually “Why SHOULDN’T you virtualize?”
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question