I'm trying to convert a fully patched, Windows Server2008 R2 system disk into a VHD by using disk2vhd from Microsoft Sysinternals.
Every time, the conversion fails with error during copy. The error could not be performed due to an I/O error
, regardless of whether I sue the vhd
or vhdx
format, or whetehr I use the Volume Shadow Copy option.
I am a local administrator, running disk2vhd as administrator and have disabled the anti-virus on the server, but it makes no difference.
I see this event in the eventlog around the same time as the error, so I suspect they're related.
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.
Operation: Gathering Writer Data
Context: Writer Class Id: {GUID} Writer Name: System Writer
Writer Instance ID: {GUID}
What's the problem here, and why can't I get this disk converted?
Its stupid, but running chkdisk first (yes, even when you are getting no error messages or problems anywhere else) before running hd2vhd again has fixed this for us too many times.
After looking more into the event log entry it suggests that DCOM needs more permission to get to solve the access denied message (adding Network Service).
See here: http://www.terabyteunlimited.com/kb/article.php?id=563
This solved the first issue. Now in the event log it says:
The shadow copies of volume C: were aborted because of an IO failure on volume C:.
and lots of this:
The driver detected a controller error on \Device\Ide\IdePort0
I will research this and post a reply if I get anywhere. The disk is failing, we know this from diagnostics so I hope it is not too far gone!
I have had success using XenServer's free Xen Convert tool when porting a physical windows server to HyperV.
Xen Convert : https://www.citrix.com/go/products/xenserver/xenserver-xenconvert-free.html
Xen Convert Documentation : http://support.citrix.com/servlet/KbServlet/download/28774-102-661315/XenConvertGuide.pdf
Note: I do not yet have a enough "points" to post a comment. So I share a suggestion that would possibly bypass the problem. Xen Convert in general is a more powerful tool then sysinternals disk2vhd that I recommend users try out.
Well, for one thing, you should probably be using a full-fledged P2V solution for Hyper-V, like Microsoft's Virtual Machine Manager. Alternately, VMware Convertor is something of a standard solution for P2Ving any machine, because it's free, supports most everything you can find to throw at it, and is backed by top virtualization companies out there. (You'd do your P2V, get the virtualized machine into an ovf fromat, and then you'd be able to import the OVF to your Hyper-V host.)
As to the rest:
System Reserved
partition (that's what giving you the error - you can't access that, even as an administrator).User contributions licensed under CC BY-SA 3.0