하이퍼-V Virtual Disk Operations: Compact, Convert, Expand, and Shrink – How to Guide and Tips.
Compact
1. Run your 하이퍼-V 관리자 and click on Edit Disk;
2. 딸깍 하는 소리 다음;
3. 클릭하세요 Browse to select your disk for operations;
4. After Disk is selected click 다음;
5. First option is Compact (this is the simplest operation). 딸깍 하는 소리 다음;
6. At the next page click 다음;
Convert
1. Option Convert (change your Virtual Disk format, *.vhd or *.vhdx). 딸깍 하는 소리 다음;
2. Select the format and click 다음;
3. Select the type of Virtual Disk.
NOTE: In enterprise is Best Practice – to use a Virtual Disk type Fixed size.
4. Make a choice and click 다음;
5. 클릭하세요 Browse to select the final name and destination of Virtual Disk, 그리고 클릭 Save;
7. If it’s ok – click 다음;
8. 딸깍 하는 소리 Finish to run this operation;
Expand
1. 달리다 하이퍼-V Manager and click on Inspect Disk and select target Virtual Disk to show information about it. Click the 닫다 button;
2. We have 60 GB VHDX, Expand it. Click on Edit Disk in 하이퍼-V 관리자; Click the 다음 button;
3. 딸깍 하는 소리 the Browse button and select target Virtual Disk;
4. After selecting click the 다음 button;
5. 선택하다 Expand option and click the 다음 button;
6. Enter the new size and click the Next button, I’m set to 80 GB. (You must have free space to do this);
7. Check the final information and click the Finish button;
8. Let’s Inspect Disk again. As we see – it now 80 GB size.
9. Connect to VM, which Virtual Disk we Expand. Login in (user must have Local Administrator Rights) and open This PC;
10. As we see it’s 60 GB (old size) but not 80 GB. 닫다 This PC. 마우스 오른쪽 버튼 click on 시작 button and select Disk Management;
11. After the Disk Management console opens you will see Unallocated space on the Disk (20 GB);
12. 마우스 오른쪽 버튼 click on Disk “(C:)” and select Extend Volume;
13. Click the 다음 button;
14. It shows up space for extending. Click the 다음 button;
15. 딸깍 하는 소리 Finish to apply changes;
16. As we see – The disk is extended to 80 GB, close the Disk Management console;
17. Open “This PC again. Hooray “Local Disk (C:)” now has an 80 GB size.
Shrink
1. 달리다 하이퍼-V Manager and make sure your Virtual Machine (VM) with target “Virtual Disk is in an Off state. 닫다 하이퍼-V 관리자;
2. 열려 있는 Disk Management on the 하이퍼-V computer (local pc). 마우스 오른쪽 버튼 click on 시작 button and select Disk Management;
3. 후에 the Disk Management console opens, go to the upper menu. 딸깍 하는 소리 Action and then Attach VHD;
4. 딸깍 하는 소리 Browse to select the target Virtual Disk file;
5. After selecting click the 좋아요 button;
6. We connected Virtual Disk;
7. 마우스 오른쪽 버튼 click on the connected Disk and select Shrink Volume;
8. Enter the size in MB (Megabytes) to shrink from Disk. Click the Shrink button;
9. Perfect, shrinking is successful;
10. 마우스 오른쪽 버튼 click on your Virtual Disk and select Detach VHD;
11. 딸깍 하는 소리 좋아요 and close the Disk Management console;
12. Run your 하이퍼-V Manager and click on Edit Disk;
13. Click the 다음 button;
14. Click the Browse button to select target Virtual Disk;
15. After selecting Disk click the 다음 button;
16. As you see we get a new option Shrink, select it and click the 다음 button;
NOTE: Option “Shrink” is available if “Virtual Disk” has “Unallocated” space.
17. Enter the new size and click the Finish button;
18. Inspect our Virtual Disk again, now it’s 41 GB;
19. In the system;