You have virtual machine named VM1.
VM1 uses a fixed size virtual hard disk (VHD) named Disk1.vhD. Disk1.vhd is 200 GB.
You shut down VM1.
You need to reduce the size of disk1.vhd.
Which action should you select from the Edit Virtual Hard Disk Wizard?

A.
Merge
B.
Compact
C.
Shrink
D.
Convert
shrink is the answer
0
0
You can’t shrink a .vhd file. Only .vhdx.
Therefore you have to D. Convert to .vhdx
1
0
That is not true. The 70-410 book explicitly names both VHD and VHDX files in the paragraph about modifying virtual disks (page 164).
Therefore C is correct.
0
0
Stephen is correct.
In order to Shrink a virtual hard disk, it must meet the following requirements:
1. Connected via SCSI controller
2. Be a .VHDX disk.
3. Have available space on the .VHDX disk that is not allocated to a partition.
0
0
I will go with Convert.
Following are the test results from 2012 R2 :
Test 1 : When editing Fixed size VHD or VHDx there were only 2 options – 1) Convert 2) Expand.
Therefore you cannot shrink or compact fixed VH disks
Test 2 : When editing Dynamic size VHD or VHDx there were 3 options –
1) Compact 2) convert 3) Expand.
Therefore compact is possible when the disk is dynamic. ( Not sure why Shrink did not appear but thats for another day’s troubleshooting 🙂 )
As seen in test 2 the disk has to be dynamic (VHD or VHDx did not matter) to get the option to compact.
In the question we have Fixed disk, we will need to “CONVERT” that first to Dynamic to be able to “compact” later.
1
0
From testing on a 2012R2 HyperV server:
The answer is D – convert.
.VHD requires Gen1 VM.
The only actions available on a fixed size VHD are:
Convert
Expand
Options A, B, and C are not available on a fixed size VHD.
1
0