简体   繁体   English

如何在Windows 2008 R2中使用CreateVirtualDisk创建差异VHD

[英]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.

相关问题 Windows Server 2008 r2上BluetoothGetRadioInfo的替代方法 - Alternative to BluetoothGetRadioInfo on Windows Server 2008 r2 Windows 2008 R2中缺少多播消息 - Missing multicast messages in Windows 2008 R2 如何使用WMI或其他CMI中的WMI检测安装在Windows 2003服务器和2008 Server 2003服务器R2和2008服务器R2上的防病毒软件 - How to detect antivirus installed on windows 2003 server and 2008 server 2003 server R2and 2008 server R2 using WMI or other then WMI in C++ 在Windows 2008 R2 SP1上使用GetVersionEx时的错误行为 - Incorrect behavior while using GetVersionEx on Windows 2008 R2 SP1 在 Windows Server 2012 R2 上构建的应用程序在 Windows Server 2008 R2 上失败 - Application built on Windows Server 2012 R2 fails on windows server 2008 R2 如何确保Windows 2008 R2将SERVICE_CONTROL_PRESHUTDOWN控制通知传递给服务 - How can I ensure that Windows 2008 R2 will pass the SERVICE_CONTROL_PRESHUTDOWN control notification to a service NetUserAdd在工作组Windows Server 2008 R2上运行时失败 - NetUserAdd failing when running on workgroup Windows Server 2008 R2 Windows Server 2008 R2上的常见对话框:GetOpenFileName中崩溃 - Common Dialogs on Windows Server 2008 R2: crash in GetOpenFileName 确定谁在Windows 2008 R2服务器/ Windows 7中访问共享文件夹上的文件 - Determining who is accessing a file on a shared folder in Windows 2008 R2 server / Windows 7 在 Windows server 2008 r2 中禁用网络适配器的 C++ 示例 - C++ example to disable a network adapter in Windows server 2008 r2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM