大网数据广告活动
Hyper-V与虚拟化

Create Hyper-V VHD Set files

· 52CE 我爱测

Steps to create a VHDset file on Hyper-v 2016

VHD Set files are a new shared Virtual Disk model for guest clusters in Windows Server 2016. VHD Set files support online resizing of shared virtual disks, support Hyper-V Replica, and can be included in application-consistent checkpoints.

VHD Set files use a new VHD file type, .VHDS. VHD Set files store checkpoint information about the group virtual disk used in guest clusters, in the form of metadata.

Hyper-V handles all aspects of managing the checkpoint chains and merging the shared VHD set. Management software can run disk operations like online resizing on VHD Set files in the same way it does for .VHDX files. This means that management software doesn't need to know about the VHD Set file format.

Note: It's important to evaluate the impact of VHD Set files before deployment into production. Make sure that there is no performance or functional degradation in your environment, such as disk latency.

Create a VHD Set file from Hyper-V Manager

  1. Open Hyper-V Manager. Click Start, point to Administrative Tools, and then click Hyper-V Manager.
  2. In the Action pane, click New, and then click Hard Disk.
  3. On the Choose Disk Format page, select VHD Set as the format of the virtual hard disk.
  4. Continue through the pages of the wizard to customize the virtual hard disk. You can click Next to move through each page of the wizard, or you can click the name of a page in the left pane to move directly to that page.
  5. After you have finished configuring the virtual hard disk, click Finish.

Create a VHD Set file from Windows PowerShell

Use the New-VHD cmdlet, with the file type .VHDS in the file path. This example creates a VHD Set file named base.vhds that is 10 Gigabytes in size.

PS c:\>New-VHD -Path c:\base.vhds -SizeBytes 10GB

Migrate a shared VHDX file to a VHD Set file

Migrating an existing shared VHDX to a VHDS requires taking the VM offline. This is the recommended process using Windows PowerShell:

  1. Remove the VHDX from the VM. For example, run:

    PS c:\>Remove-VMHardDiskDrive existing.vhdx
    
  2. Convert the VHDX to a VHDS. For example, run:

    PS c:\>Convert-VHD existing.vhdx new.vhds
    
  3. Add the VHDS to the VM. For example, run:

    PS c:\>Add-VMHardDiskDrive new.vhds
    

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 01/26/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。