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.
Shrink
B.
compact
C.
Merge
D.
Convert
convert to vhdx
gosh… its compact B
https://technet.microsoft.com/en-us/library/cc755149.aspx
or its convert…could not verify..
Compact
Applies to dynamically expanding virtual hard disks and differencing virtual hard disks. Reduces the size of the .vhd file by removing blank space that is left behind when data is deleted from the virtual hard disk. If the virtual hard disk is not NTFS formatted, the blank space must be overwritten with zeroes so that the compact action can reduce the file size by removing sectors that contain only zeroes.
First sentence is key.
So, the correct answer is in fact D. Convert
It is a fixed size, and needs to become a dynamically expanding hard disk, therefore the first thing you need to do is convert the disk and then you can compact it.
rule of thumb
microsoft is about using the latest and greatest.
VHD is old format
VHDX is new format
to go from old to new must CONVERT 1st
keep this in mind for similiar questions
answer d is correct because before you do compact you need to convert the fixed sized vhd to dynamically expanding disk
Sachiya is correct answer is D. You can’t compact a VHD you have to convert it first.
The Edit Virtual Hard Disk Wizard allows you to Compact, Convert, or
Expand the VHD. Compacting reduces the size of a dynamically expanding VHD but not a
fixed-size VHD. Converting changes the disk format to the newer VHDX. This process
recreates the virtual disk, and allows you to specify the size of the VHDX.
So, the correct answer is D. Convert
http://blogs.technet.com/b/yungchou/archive/2013/01/23/hyper-v-virtual-hard-disk-vhd-
operations-explained.aspx
You can actually convert from fixed to dynamic (“type”), and from vhd to vhdx (“format”).
To reduce the size to the contents of a virtual disk file, you will need to convert it from fixed to dynamic. But it can remain in VHD format.
From my tests:
– converting a fixed-size VHD to a fixed-size VHDX doesn’t reduce the size.
– converting a fixed-size VHD to a dynamically expanding VHD or VHDX reduces the size.
It’s convert, you cant shrink or compact a VHD file.
I’ve tested it, if you try to use compact you will receive an error at the end of the wizard stating that you cannot compact this type of file.
Shrink was introduced to VHDX files.
Hope that clears things up.
thank you
In order to “shrink” a fixed virtual disk (not to be mistaken with compact which is used with dynamically expanding disks), you must first convert it to a vhdx disk first.