Solved

Hyper-V VM going into a "saved" state

Posted on 2013-02-05
10
2,892 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
 
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

From Coral's  "So You Want To Play With Computers" Series A bit of background first, so this story will make a little sense. One day, probably because he needed a good laugh, Finagle hooked me up with a church to upgrade/run their Media Booth.…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now