Convert 250GB dynamic VHD to 40GB fixed size VHD

Convert 250GB dynamic VHD to 40GB fixed size VHD
Pre-request
If you want to convert a 250GB dynamic VHD to 40GB fixed size VHD, you have to make sure the used disk space of that 250GB dynamic VHD is less than 40GB. 
Glossary
Source VHD: The 250GB dynamic VHD file
Destination VHD: The 40GB fixed size VHD file
Local Machine: Machine that hosts Hyper-V
VHD Share: The share path that contains the 250GB dynamic VHD file 
Steps
1.       Copy the Source VHD to Local Machine from VHD Share
2.       Create a VM on Local Machine and attach the Source VHD as its disk
3.       Start the VM and logon to OS
4.       Open “Server Manager”, navigate to “Storage -> Disk Management”
5.       Right click on disk C, select “Shrink Volume…”
6.       Enter the amount of space to shrink, make sure the total size after shrink is about 40GB
7.       Click “Shrink” botton
8.       After shrink, you should see that
9.       Now shut down VM
10.   Download “VHD Resizer” tool at http://vmtoolkit.com/files/folders/converters/entry87.aspx, install it
11.   Start the VHD Resizer tool, select the Source VHD as its source VHD
12.   Input a VHD path as its destination VHD, make sure the destination VHD is not exist
13.   Set type to “Fixed”, and input the new size, the new size should be bigger than the “Min” value. You can see “Min” value at below screenshot.
14.   Click “resize” button and wait. This process need about 1 to 2 hours
15.   After resize, you will see the new VHD with 40GB fixed size now.


[本日志由 Peter 于 2010-07-23 10:57 AM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: VHD VM
评论: 1 | 引用: 0 | 查看次数: 102
  • 1
小薇 [2010-07-24 11:52 AM]
一点都看不懂,呜呜呜呜
  • 1
发表评论
昵 称:
密 码: 游客发言不需要密码.
验证码: 验证码
内 容:
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 1000 字 | UBB代码 开启 | [img]标签 关闭