Operace virtuálního disku Hyper-V: Kompaktní, Konvertovat, Rozšířit, a Zmenšit – Návod a tipy.
Kompaktní
1. Spusťte svůj Správce Hyper-V a klikněte na Upravit disk;
2. Klikněte další;
3. Klikněte na Procházet to select your disk for operations;
4. After Disk is selected click další;
5. First option is Kompaktní (this is the simplest operation). Klikněte další;
6. At the next page click další;
Konvertovat
1. Volba Konvertovat (change your Virtual Disk format, *.vhd or *.vhdx). Klikněte další;
2. Select the format and click další;
3. Select the type of Virtual Disk.
POZNÁMKA: In enterprise is Best Practice – to použít a Virtual Disk type Fixed size.
4. Make a choice and click další;
5. Klikněte na Procházet to select the final name and destination of Virtual Disk, a klikněte Save;
7. If it’s ok – click další;
8. Klikněte Dokončit to run this operation;
Rozšířit
1. Run Hyper-V Manager and click on Inspect Disk and select target Virtuální disk to show information about it. Klikněte na Zavřít knoflík;
2. We have 60 GB VHDX, Expand it. Click on Edit Disk in Hyper-V Manager; Klikněte na další knoflík;
3. Klikněte the Browse button and select target Virtuální disk;
4. After selecting click the další knoflík;
5. Vybrat Rozšířit option and click the další knoflík;
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 Dokončit knoflík;
8. Let’s Zkontrolujte disk znovu. As we see – it now 80 GB size.
9. Connect to VM, which Virtual Disk we Rozšířit. 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. Zavřít This PC. Pravé tlačítko myši klikněte na začátek tlačítko a vyberte Disk Management;
11. After the Disk Management console opens you will see Unallocated space on the Disk (20 GB);
12. Pravé tlačítko myši click on Disk “(C:)” and select Extend Volume;
13. Klikněte na další knoflík;
14. It shows up space for extending. Klikněte na další knoflík;
15. Klikněte Dokončit to apply changes;
16. As we see – The disk is extended to 80 GB, close the Disk Management řídicí panel;
17. OTEVŘENO "This PC znovu. Hooray “Local Disk (C:)” now has an 80 GB size.
Shrink
1. Run Hyper-V Manager and make sure your Virtuální stroj (VM) with target “Virtuální disk is in an Vypnuto state. Close Hyper-V Manager;
2. OTEVŘENO Disk Management on the Hyper-V computer (local pc). Pravé tlačítko myši klikněte na začátek tlačítko a vyberte Disk Management;
3. Po the Disk Management console opens, go to the upper menu. Klikněte Akce a pak Attach VHD;
4. Klikněte Procházet to select the target Virtuální disk soubor;
5. After selecting click the OK knoflík;
6. We connected Virtuální disk;
7. Pravé tlačítko myši click on the connected Disk and select Shrink Volume;
8. Enter the size in MB (Megabytes) to shrink from Disk. Klikněte na Shrink knoflík;
9. Perfektní, shrinking is successful;
10. Pravé tlačítko myši klikněte na svůj Virtuální disk a vyberte Detach VHD;
11. Klikněte OK and close the Disk Management řídicí panel;
12. Run your Hyper-V Manager and click on Upravit disk;
13. Klikněte na další knoflík;
14. Klikněte na Procházet button to select target Virtuální disk;
15. After selecting Disk click the další knoflík;
16. As you see we get a new option Shrink, select it and click the další knoflík;
POZNÁMKA: Option “Shrink” is available if “Virtuální disk” has “Unallocated” space.
17. Enter the new size and click the Dokončit knoflík;
18. Inspect our Virtuální disk znovu, now it’s 41 GB;
19. In the system;