KB: Performing an operation in Virtual Machine Manager fails with error 801

KB: Performing an operation in Virtual Machine Manager fails with error 801

  • Comments 3
  • Likes

imageHere’s a KB we just published that talks about an issue where performing an operation on a VM in System Center 2012 Virtual Machine Manager fails with error 801:



When performing any operation on a virtual machine (VM) in System Center 2012 Virtual Machine Manager (VMM), the job fails with the following error:
VMM cannot find the Virtual hard disk object' error 801


This can occur if VMM has orphaned records in the database showing snapshots that no longer exist.


To resolve this issue, remove the orphaned objects from the database by following the steps below.

1. Stop the System Center Virtual Machine Manager service on the VMM 2012 server.
2. Back up the Virtual Manager database.
3. Open SQL Management Studio and run the following script on the VMM database:


DECLARE custom_cursor CURSOR FOR
SELECT VHDId, VDriveId from
dbo.tbl_WLC_VDrive WHERE [VHDId] NOT IN

DECLARE @VHDId uniqueidentifier
DECLARE @VDriveId uniqueidentifier

OPEN custom_cursor
FETCH NEXT FROM custom_cursor INTO @VHDId, @VDriveId

WHILE(@@fetch_status = 0)
if(@VHDId is NOT NULL)
DELETE FROM dbo.tbl_WLC_VDrive
WHERE VDriveId = @VDriveId
FETCH NEXT FROM custom_cursor INTO @VHDId, @VDriveId
CLOSE custom_cursor
DEALLOCATE custom_cursor

4. Start the System Center Virtual Machine Manager service again and refresh problem VMs. The VMs should return to a proper reporting state.
More Information

This resolution can also be used for 801 errors when perfoming a Physical to Virtual conversion (P2V). Information on that solution can be found here:

959596 - Description of the System Center Virtual Machine Manager 2008 update to address physical to virtual (P2V) issues (http://support.microsoft.com/kb/959596)


For the most current version of this article please see the following:

2756886 - Performing an operation in Virtual Machine Manager fails with error 801

J.C. Hornbeck | Knowledge Engineer | Management and Security Division

Get the latest System Center news on Facebook and Twitter:

clip_image001 clip_image002

App-V Team blog: http://blogs.technet.com/appv/
ConfigMgr Support Team blog: http://blogs.technet.com/configurationmgr/
DPM Team blog: http://blogs.technet.com/dpm/
MED-V Team blog: http://blogs.technet.com/medv/
Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
Operations Manager Team blog: http://blogs.technet.com/momteam/
SCVMM Team blog: http://blogs.technet.com/scvmm
Server App-V Team blog: http://blogs.technet.com/b/serverappv
Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center Essentials Team blog: http://blogs.technet.com/b/systemcenteressentials
WSUS Support Team blog: http://blogs.technet.com/sus/

The Forefront Server Protection blog: http://blogs.technet.com/b/fss/
The Forefront Endpoint Security blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Thanks J.C. Hornbeck. Very good!

  • Thanks for your script. I need remove a cluster from SCVMM 2012 SP1, to recrate the certificates used by BITS. Them one node was not removed. After execute the script. The node was removed rightly. Them i added again the cluster, the certificates was recreated and i happy.

  • We just had to run this on our Production Env. Sadly; the error causes more damage than what the KB states. Error 801 completly kills the Create VM process when running through SCORCH and PowerShell. It's sad that Microsoft took over 2 years to fix the error. Looks like they fixed it in SCVMM 2012 SP1 UR6.