[英]How to create a differencing VHD using CreateVirtualDisk in Windows 2008 R2
I'm trying to create a differencing VHD using CreateVirtualDisk API. 我正在尝试使用CreateVirtualDisk API创建差异VHD。 MSDN examples
MSDN范例
http://code.msdn.microsoft.com/windowsdesktop/Virtual-hard-disk-03108ed3 http://code.msdn.microsoft.com/windowsdesktop/Virtual-hard-disk-03108ed3
is supported only on Win 8/2012. 仅在Win 8/2012上受支持。 But, if i try the same on Win 2008 R2, CREATE_VIRTUAL_DISK_VERSION_2 is not available.
但是,如果我在Win 2008 R2上尝试相同的操作,则CREATE_VIRTUAL_DISK_VERSION_2不可用。 Tried using CREATE_VIRTUAL_DISK_VERSION_1 with corresponding values (Specifying parent VHD) CreateVirtualDisk fails with error code 87.
使用CREATE_VIRTUAL_DISK_VERSION_1和相应的值(指定父VHD)进行了尝试,CreateVirtualDisk失败,错误代码为87。
I tried creating a new VHD (not a differencing) it is getting created. 我尝试创建要创建的新VHD(不是差异)。
How to go about this? 怎么办呢?
Use CreateVirtualDisk with out passing the any sizes, but pass only the parent VHD path. 在不传递任何大小的情况下使用CreateVirtualDisk,但仅传递父VHD路径。 All the parameters which we have not passed will be taken from parent VHD.
我们尚未传递的所有参数都将从父VHD中获取。
CREATE_VIRTUAL_DISK_VERSION_2 is available online in Win 8/2012 CREATE_VIRTUAL_DISK_VERSION_2可在Win 8/2012中在线获得
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.