微软服务器vhd,About VHD

About VHD

09/20/2016

3 minutes to read

In this article

The Virtual Hard Disk (VHD) format is a publicly-available image format specification that allows encapsulation of the hard disk into an individual file for use by the operating system as a virtual disk in all the same ways physical hard disks are used. These virtual disks are capable of hosting native file systems (NTFS, FAT, exFAT, and UDFS) while supporting standard disk and file operations. VHD API support allows management of the virtual disks. Virtual disks created with the VHD API can function as boot disks.

An example of how VHD files are used is the Hyper-V feature in Windows 7, Windows Server 2008, Virtual Server, and Windows Virtual PC. These products use the VHD API to contain the Windows operating system image utilized by a virtual machine as its system boot disk.

The Microsoft Windows Software Development Kit (SDK) integrates Native VHD support for working with virtual disks, making it easier for developers and administrators to create, manage, and deploy Windows images in VHD files using either the platform API support or management tools. It is not necessary to install separate applications or implement a VHD format parser to enable these operations. These APIs allow for generic use of virtual disks independent of any other virtualization technologies.

Terminology

The term backing store is used to refer to the physical file that exists on the actual hard disk. The backing store is represented by a VHD image file.

The terms dynamic, expandable, and sparse are often used interchangeably when referring to dynamically expandable virtual disks. For VHD technology, these terms are identical.

VHD System Features Overview

The following diagram presents an overview of the VHD features and their relationships.

50d5a1b8f012b71ff34f2c3ea7cc8811.png

The following is a summary explanation of the previously described features.

User Mode Native Windows APIs:

VirtDisk.dll - Common library for VHD management APIs.

User Mode Domain-specific Management Wrappers:

VDS VHD APIs - VDS Object Model wrappers for the VHD Windows APIs.

Kernel Mode Drivers:

VDrvRoot.sys - Root virtual drive enumerator.

FsDepends.sys - Nested volume dependency management.

Vhdmp.sys - VHD parser and dependency property provider.

The SDK documentation in this section covers the user-mode native Windows VHD APIs.

Virtual Disk Types

There are considerations for using virtual disks, and what types of virtual disks are available:

Fixed—The VHD image file is pre-allocated on the backing store for the maximum size requested.

Expandable—Also known as "dynamic", "dynamically expandable", and "sparse", the VHD image file uses only as much space on the backing store as needed to store the actual data the virtual disk currently contains. When creating this type of virtual disk, the VHD API does not test for free space on the physical disk based on the maximum size requested, therefore it is possible to successfully create a dynamic virtual disk with a maximum size larger than the available physical disk free space. For more information, see ExpandVirtualDisk. Note  The maximum size of a dynamic virtual disk is 2,040 GB.

Differencing—A parent virtual disk is used as the basis of this type, with any subsequent writes written to the virtual disk as differences to the new differencing VHD image file, and the parent VHD image file is not modified. For example, if you have a clean-install system boot operating system virtual disk as a parent and designate the differencing virtual disk as the current virtual disk for the system to use, then the operating system on the parent virtual disk stays in its original state for quick recovery or for quickly creating more boot images based on additional differencing virtual disks. For more information, see MergeVirtualDisk. Note  The maximum size of a differencing virtual disk is 2,040 GB.

All virtual disk types have a minimum size of 3 MB.

Related topics

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值