Hoạt động đĩa ảo Hyper-V: gọn nhẹ, Chuyển thành, Mở rộng, và thu nhỏ – Cách Hướng dẫn và Mẹo.
gọn nhẹ
1. chạy của bạn Trình quản lý Hyper-V và bấm vào Edit Disk;
2. Nhấp chuột Kế tiếp;
3. Bấm vào Duyệt qua to select your disk for operations;
4. After Disk is selected click Kế tiếp;
5. First option is gọn nhẹ (this is the simplest operation). Nhấp chuột Kế tiếp;
6. At the next page click Kế tiếp;
Chuyển thành
1. Lựa chọn Chuyển thành (change your Virtual Disk format, *.vhd or *.vhdx). Nhấp chuột Kế tiếp;
2. Select the format and click Kế tiếp;
3. Select the type of Virtual Disk.
GHI CHÚ: In enterprise is Best Practice – to use a Virtual Disk type Fixed size.
4. Make a choice and click Kế tiếp;
5. Bấm vào Duyệt qua to select the final name and destination of Virtual Disk, và bấm vào Cứu;
7. If it’s ok – click Kế tiếp;
8. Nhấp chuột Hoàn thành to run this operation;
Mở rộng
1. Run Hyper-V Manager and click on Inspect Disk and select target đĩa ảo to show information about it. Nhấn vào Đóng cái nút;
2. We have 60 GB VHDX, Expand it. Click on Edit Disk in Hyper-V Manager; Nhấn vào Kế tiếp cái nút;
3. Nhấp chuột duyệt button and select target đĩa ảo;
4. After selecting click the Kế tiếp cái nút;
5. Lựa chọn Mở rộng option and click the Kế tiếp cái nút;
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 Hoàn thành cái nút;
8. Let’s Inspect Disk lại. As we see – it now 80 GB size.
9. Connect to VM, which Virtual Disk we Mở rộng. 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. Đóng This PC. Nút chuột phải bấm vào bắt đầu nút và chọn Disk Management;
11. After the Disk Management console opens you will see Unallocated space on the Disk (20 GB);
12. Nút chuột phải click on Disk “(C:)” and select Extend Volume;
13. Nhấn vào Kế tiếp cái nút;
14. It shows up space for extending. Nhấn vào Kế tiếp cái nút;
15. Nhấp chuột Hoàn thành to apply changes;
16. As we see – The disk is extended to 80 GB, close the Disk Management bảng điều khiển;
17. Open “This PC lại. Hooray “Local Disk (C:)” now has an 80 GB size.
Shrink
1. Run Hyper-V Manager and make sure your Máy ảo (máy ảo) with target “đĩa ảo is in an Off tình trạng. Close Hyper-V Manager;
2. Mở Disk Management on the Hyper-V computer (local pc). Nút chuột phải bấm vào bắt đầu nút và chọn Disk Management;
3. Sau đó the Disk Management console opens, go to the upper menu. Nhấp chuột Hoạt động và sau đó Attach VHD;
4. Nhấp chuột Duyệt qua to select the target đĩa ảo tài liệu;
5. After selecting click the ĐƯỢC RỒI cái nút;
6. We connected đĩa ảo;
7. Nút chuột phải click on the connected Disk and select Shrink Volume;
8. Enter the size in MB (Megabytes) to shrink from Disk. Nhấn vào Shrink cái nút;
9. Hoàn hảo, shrinking is successful;
10. Nút chuột phải click on your đĩa ảo và chọn Detach VHD;
11. Nhấp chuột ĐƯỢC RỒI and close the Disk Management bảng điều khiển;
12. Run your Hyper-V Manager and click on Edit Disk;
13. Nhấn vào Kế tiếp cái nút;
14. Nhấn vào Duyệt qua button to select target đĩa ảo;
15. After selecting Disk click the Kế tiếp cái nút;
16. As you see we get a new option Shrink, select it and click the Kế tiếp cái nút;
GHI CHÚ: Option “Shrink” is available if “đĩa ảo” has “Unallocated” space.
17. Enter the new size and click the Hoàn thành cái nút;
18. Inspect our đĩa ảo lại, now it’s 41 GB;
19. In the system;