I'm trying to make a VHD out of a partition on my harddisk. The harddisk contains my Windows partition among others, and if I choose all the partitions on my harddisk, I get the above error. Looking at Event Viewer, I get the following warning:
"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."
I've searched for solutions to this error and I've tried everything I came across, from adding the Admin account to VssAccessControl in the registry, to editing DCOM configurations to allow local access for both NetworkSecurity and Admin, to changing the non-Unicode language to English (US). Needless to say, nothing has worked.
However, if I uncheck the Windows partition, I have no problem with making the VHD. But here's the problem. I have 3 partitions on that disk, Windows being the first and the partition I want as a VHD being the last. If I choose only the VHD partition in disk2vhd and then attach the VHD file in Disk Management, it has copied the Windows partition while the other two are RAW partitions. Same thing goes if I choose the last two partitions, it copies the first two and leaves the last, the one I really need, as RAW. That's why I need to make the VHD with all 3, to overcome that issue.
Given that it works without the Windows partition, I gather the problem is that the partition is being used and therefore can not be shadow copied. But I have searched for that, and I haven't found anywhere where that is mentioned as being the case.
So I'm not sure what the problem is, nor how to solve it.