How to fix it.
Share my experience for fixing all kind of technical problems.
Monday, May 15, 2017
Disk2VHD error snapshotting volumes — Fixed

I opened the Windows event log viewer and found several errors of VSS.
One of them was Event ID 22 —
Volume Shadow Copy Service error: A critical component required by the Volume Shadow Copy service is not registered. This might happened if an error occurred during Windows setup or during installation of a Shadow Copy provider. The error returned from CoCreateInstance on class with CLSID <79079d5c-ef20-4952-b9fc-cfd443b38641>and Name SW_PROV is [0x80040154, Class not registered].
Run RegEdit and open the registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VSS\Providers
There was a registry key of
The backup software Acronis is no longer installed on the server. After I deleted the registry key of
Hopefully this information can save your time.
13 comments:
Exact same issue and this resolved my error. Make sure to restart the VSS service after you delete the registry entry.
I still have the same mistake yet I have no other provider in my registry
This didnt work for for me either but I unselected "use volume shadow copy and it worked for me 🙂
Error snapshotting volumes disk2vhd как исправить
Trying to run disk2vhd on a SBS 2011 with 2 partitions, getting the "Error snapshotting volumes". The server is a VMWare VM (yes I know its doggy to have SBS as a VM (this isn’t my setup, we are just migrating users and files from this server))
Event log has these:
"Volume Shadow Copy Service error: Unexpected error querying for the IVssWriterCallback interface. hr = 0x80070005, Access is denied. . This is often caused by incorrect security settings in either the writer or requestor process."
For the System Writer, DHCP Jet Writer, SPSearch4 VSS writer, TS Gateway Writer, NPS VSS writer.
I have attempted:
- Only selecting one or the other of the two partitions
- I am running disk2vhd "as administrator" with a domain admin account/local admin.
- Created an AD group "vssregistrygroup" added this group to registry HKLM\System\CurrentControlSet\Services\VSS\VssAccessControl as a dword "DOMAIN\vssregistrygroup" with value 1
- Added the above group with full permission to HKLM\System\CurrentControlSet\Services\VSS\Diag\
- I’ve completed the SharePoint configuration (SBS server).
- Restarted the server
- I’m physically located hours away from the server so I cant boot into WinPE or anything like that to run disk2vhd from there.
- Restarted volume shadow copy service.
- vssadmin list writers shows no errors or warnings on any writers.
- Added my admin account in dcomcnfg.exe to component services\computers\my computer — com security — Access permissions with local and remote access.
I’ve been searching the error messages for hours already, please don’t respond with a quick link to something suggesting one of the above things that I’ve already tried. By all means, if you have a link suggesting something that I haven’t actually tried, I am all ears.
- Edited by Trana010 Friday, August 23, 2013 2:03 AM
- Moved by Santosh Bhandarkar Tuesday, August 27, 2013 6:34 AM Moved from Server General Forum, OS in question is SBS
Answers
It seem a good utility. I might give it a try to export the disk.
I was more talking about vconverter because I got serious problem migrate a DC into virtual without it in the past. I tried with XenServer tool, and at that time the tool was not enougth mature for a good shot. I finished to use vconverter and after redo a transfert into the good format (xenserver use the vhd standard, so it’s not a big move in the end)
In worst case I would use the vmware tool and re-image the disk after. (but it will take some time to do)
MCP | MCTS — Exchange 2007, Configuring | Member of TechNet Wiki Community Council | French Moderator on TechNet Wiki (Translation Widget)
- Proposed as answer by Alex Lv Sunday, September 1, 2013 1:32 AM
- Marked as answer by Trana010 Thursday, September 12, 2013 1:49 AM
All replies
What hypervisor you use ? Installing the Integration tool will make you able to make a snapshot from the hypervisor directly in most case. (and you can copy the file directly in msot case)
MCP | MCTS — Exchange 2007, Configuring | Member of TechNet Wiki Community Council | French Moderator on TechNet Wiki (Translation Widget)
Ironically, I am running into the same exact issue right now, except on SBS 2008. I was doing some researching and came across you post.
One other thing I tried is boot into DSRM and run Disk2vhd from there, but now getting another error and VSS complaining that the server is in DSRM in App Log, where before when I stopped AD services it was complaining with other even id, suggesting to go into DSRM mode and run from there.
I am also away from the server and doing this remotely. Your suggestion with WinPE or maybe Hiren’s Boot CD is not a bad idea. I can get to the server within an hour or so. Will this make a difference on where the Disk2vhd is ran from?
My next step was to run Symantec System Recovery or Acronis product to do the P2V conversion to Hyper-V. Any other thoughts? Thanks
Yagmoth, as mentioned, the server in question is hosted on VMware, so yes, I might need to look into that approach of exporting the VM from there, I was just hoping to avoid the conversion hassle (I need to mount it in Hyper-V later on) by using disk2vhd on the original VMware VM.
Alex: The WinPE isnt my own idea, I did come across a thread somewhere else where someone had supposedly done this on multiple SBS servers, however it wasnt 100% clear if it was on a data disk only or if he actually did it on a whole system and came out with a bootable VHD and not just a VHD to be added to another VM.
I have progressed slightly myself since my last post.
Step 1:
Had disk2vhd excluded from the antivirus real time agent. This has removed the previous event error posted above the IVssWriterCallback. I’m writing this in retrospect, but I believe this was the new error:
Volume Shadow Copy Service error: Error calling a routine on a Shadow Copy Provider <>. Routine details BeginPrepareSnapshot(<>,<>,\\?\Volume<>\) [hr = 0x800700aa, The requested resource is in use.
].
Operation:
Add a Volume to a Shadow Copy Set
Context:
Execution Context: Coordinator
Step 2:
I stopped the backup software VSS services and tried again, new event error again:
Volume Shadow Copy Service error: Error creating the Shadow Copy Provider COM class with CLSID <> [0x80070422, The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
].
Operation:
Obtain a callable interface for this provider
Add a Volume to a Shadow Copy Set
Context:
Provider ID: <>
Class ID: <>
Snapshot Context: 4194304
Execution Context: Coordinator
Volume Shadow Copy Service information: The COM Server with CLSID <> and name SW_PROV cannot be started. [0x80070422, The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
]
Operation:
Obtain a callable interface for this provider
List interfaces for all providers supporting this context
Check If Volume Is Supported by Provider
Add a Volume to a Shadow Copy Set
Context:
Provider ID: <>
Class ID: <>
Snapshot Context: 4194304
Snapshot Context: 4194304
Execution Context: Coordinator
Provider ID:
Volume Name: \\?\Volume<>\
Execution Context: Coordinator
Got some ideas, but need to wait for the weekly backup to finish. Meanwhile, anyone have any suggestions?
error snapshotting volumes disk2vhd
When I try to run disk2vhd on server 2003 R2 (running SQL 2005) I get «Error Snapshotting volumes» VSS service is running and i’m not sure what else could be the problem. The server consists of 3 drives. One with ?no label?, C: (system) and S: (SQL)
I want to do a p2v (hyper-v) asap since the hardware is failing

Rapid, Reliable and Resilient Recovery with Veeam Data
8 Replies

John White 
What’s the full error in the event log?

John White 

I am trying a reboot now hopefully that helps — I use Acronis which uses vss tho so i’m not sure what the problem could be if this doesn’t work
UPDATE — rebooting did not work

I think my drives are too large 137GB and 205GB and space required is 59GB and 120GB respectfully i read something about 127GB cap

Matt Bartle 
I also tried and failed to get disk2vhd to work on a Server 2003. I was also using a vss backup (Storagecraft).
What I wound up doing was booting the Storagecraft restore CD in a virtual machine, and then restoring the latest backup to vhd files. That worked! (And it proved my backup was good!)
BTW, make sure the 2003 server is not a domain controller before you do this, and that it has a volume license, not an OEM one.

I can get it working on 2/3 of the drives just not the system drive. when I enable that it fails. I think it might have something to do with Acronis seems to be a DCOM permissions error.
I’m pretty sure the license is not OEM — according to this http:/ Opens a new window / support.microsoft.com/ kb/ 889713 I have a volume license

it works when i do a combo of 2 of the 3 drives but not when all are checked?? it also creates two vhd files rather than one when it does work.
thought I had it got the sever to boot but the SQL drive was raw and the VM would see it but said there was no data on it. Im not sure if it was a corrupt vhd file so I am trying again (on just the C and SQL drive not the no label volume)

ended up doing p2v using vmware’s free converter then a v2v using http:/ Opens a new window / vmtoolkit.com up and running and now more rebooting daily 🙂
This topic has been locked by an administrator and is no longer open for commenting.
To continue this discussion, please ask a new question.
Read these next.
One PC unable to scan to folder.
Hopefully one of you has come across this before. I have a customer with two PCs that scan to folder. One cannot seem to get the scans while the other works completely fine. The one with the problem is the main computer they use. I actually set up the.
run batchfile at logon from locked session
I have a GPO that runs a .bat file which installs a program at startup. And this works perfectly fine. As long as the user restarts their computers. The problem is that, I need to find a way to deploy this without having to restart the computer. I kno.
Snap! — 3D Printed Rocket Launch, MAR10 Day, Proprietary Ink, Employment Games
Your daily dose of tech news, in brief. Welcome to the Snap! Flashback: March 10, 2000: Dot-Com Bubble Peaks (Read more HERE.) Bonus Flashback: March 10, 2006: Mars Reconnaissance Orbiter Reaches Red Planet (Read more HERE.) You need t.
Password Issue
I have a domain that i set up all users on. I have staff that also have laptops that they log in remotely from. Some of them are reporting that the password on the laptop differs from the domain password. Is this because the laptop needs this account to g.
What are your opinions on this job opportunity?
Currently, work at a small-medium business as an internal IT jr system administrator. I started casually applying around as there is little room for position growth here. I ended up getting a job offer at a small MSP, they are around 10 or so techs, and t.
Не удается преобразовать физический диск в vhdx (Hyper-V)
100 ГБ [unencrypted]). вот шаг за шагом учебник, о том, как это сделать. Этот метод был очень удобен, так как вы сохраняете всю структуру с полным шифрованием и сохраняете ее в один, расширяемый файл (если используемое пространство меньше 700 ГБ, резервный образ также займет меньше места). Положительная величина, если вы хотите, то вы можете прикрепить его в ваше ПК и использовать его в качестве виртуального диска.
однако, начиная около двух месяцев назад, я не мог скопировать физический диск во время того же метода, всегда в конечном итоге со следующей ошибкой:

Я пробовал его на другой машине Windows 10-та же ошибка.
Я тоже пробовал Disk2vhd утилита от Microsoft-также получение «ошибка snapshotting Тома».
Я понятия не имею, почему это происходит, так как диск тот же, с теми же разделами. Но это больше не работает.
P. S.: Если вы используете какой-либо другой метод для резервного копирования весь физический диск/раздел, пожалуйста, поделитесь!