Can you modify an existing virtual hard disk (vhd) file?

Well, yes, this is an additional good alternative. However before I am a little doubtful to go for this option as it will add dependency on VHD mount utility. This will include an additional need of installing VHD mount once my application is being deployed on a device. So I would certainly desire to perform that pucount with C++ interdeals with.

You watching: Can you modify an existing virtual hard disk (vhd) file?

1) Take VHD specification and produce your very own library. We did this for our StarWind V2V Conveter, not a big deal :) VHD spec is here:

http://vr-tab-quebec.com.microsoft.com/en-us/library/bb676673.aspx

2) Take existing VHD library and also embedd it to your app as a static or dynamic lib. I"d imply to take a look at open up resource VHD mount here:

http://sourcecreate.net/projects/vhdmount/

Hope this assisted :)

-nismo


Wednesday, October 3, 2012 2:10 PM
*

*

0
Sign in to vote
Well, yes, this is one more excellent choice. However I am a little doubtful to go for this option as it will add dependency on VHD mount utility. This will certainly include another need of installing VHD mount when my application is being deployed on a device. So I would certainly want to execute that pudepend via C++ interdeals with.

If you do not want to go "generic" way take a look
this one:

http://msdn.microsoft.com/en-us/magazine/dd569754.aspx

Sorry samples are in C and not C++ but I think you have the right to live via them :)

-nismo


Friday, October 5, 2012 11:24 AM

All replies


*

*

0
Sign in to vote

Hi,

I desire to review and modify registry in a online tough disk of a virtual machine once it is powered off. I think, when the online tough disk is mounted, I need to be able to use registry APIs to pack the regisattempt stores by searching the mounted disk. In fact I can also then modify any application papers.

See more: Unable To Install Hp Deskjet 6122 Windows 7 Driver Download, Hp Deskjet 6122 Driver 7

Given the route to the .vhd file how can I mount and also browse documents inside the digital difficult disk in a C++ program?

I came throughout three set of APIs- VHD APIs, VDS interdeals with andMsvm_ImageManagementService WMI course. I am not certain around the correct API and correct actions of that API to perform my task. Can somebody aid me with these?

Thanks,

Vivek.

See more: Usb-If Xhci Usb Host Controller, Solved: Usb

Easiest means to do this is to mount VHD as a volume and work through it choose it would certainly be an ordinary disk. Here"s a link how to mount the VHD in command line:

http://vr-tab-quebec.com.microsoft.com/en-us/library/cc708295(v=ws.10).aspx

You may wrap the command inside PowerCovering script or your C#/C++ app. Everypoint else is Win32 API calls you must be already familiar with...