Hyper-V Virtual Disk Operations: Compact, Convertir, Développer, and Shrink – How to Guide and Tips.
Compact
1. Exécutez votre Hyper-V Directeur et cliquez sur Edit Disk;
2. Cliquez Suivant;
3. Cliquez sur Parcourir to select your disk for operations;
4. After Disk is selected click Suivant;
5. First option is Compact (this is the simplest operation). Cliquez Suivant;
6. At the next page click Suivant;
Convertir
1. Option Convertir (change your Virtual Disk format, *.vhd or *.vhdx). Cliquez Suivant;
2. Select the format and click Suivant;
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 Suivant;
5. Cliquez sur Parcourir to select the final name and destination of Virtual Disk, et cliquez Sauvegarder;
7. If it’s ok – click Suivant;
8. Cliquez Finition to run this operation;
Développer
1. Courir Hyper-V Manager and click on Inspect Disk and select target Virtual Disk to show information about it. Cliquez sur le Fermer bouton;
2. We have 60 GB VHDX, Expand it. Click on Edit Disk in Hyper-V Directeur; Cliquez sur le Suivant bouton;
3. Cliquez le Parcourir button and select target Virtual Disk;
4. After selecting click the Suivant bouton;
5. Sélectionner Développer option and click the Suivant bouton;
6. Enter the new size and click the Next button, I’m set to 80 FR. (You must have free space to do this);
7. Check the final information and click the Finition bouton;
8. Let’s Inspect Disk again. As we see – it now 80 GB size.
9. Connectez-vous à Machine virtuelle, which Virtual Disk we Développer. Login in (user must have Local Administrator Rights) and open This PC;
10. As we see it’s 60 FR (old size) but not 80 FR. Fermer This PC. Bouton droit de la souris cliquez sur le début et sélectionnez Disk Management;
11. After the Disk Management console opens you will see Unallocated space on the Disk (20 FR);
12. Bouton droit de la souris click on Disk “(C:)” and select Extend Volume;
13. Cliquez sur le Suivant bouton;
14. It shows up space for extending. Cliquez sur le Suivant bouton;
15. Cliquez Finition to apply changes;
16. As we see – The disk is extended to 80 FR, close the Disk Management console;
17. Open “This PC again. Hooray “Local Disk (C:)” now has an 80 GB size.
Shrink
1. Courir Hyper-V Manager and make sure your Machine virtuelle (Machine virtuelle) with target “Virtual Disk is in an Off state. Fermer Hyper-V Directeur;
2. Ouvrir Disk Management on the Hyper-V computer (local pc). Bouton droit de la souris cliquez sur le début et sélectionnez Disk Management;
3. After the Disk Management console opens, go to the upper menu. Cliquez Action et puis Attacher VHD;
4. Cliquez Parcourir to select the target Virtual Disk déposer;
5. After selecting click the D'ACCORD bouton;
6. We connected Virtual Disk;
7. Bouton droit de la souris click on the connected Disk and select Shrink Volume;
8. Enter the size in MB (Megabytes) to shrink from Disk. Cliquez sur le Shrink bouton;
9. Parfait, shrinking is successful;
10. Bouton droit de la souris cliquez sur votre Virtual Disk et sélectionnez Detach VHD;
11. Cliquez D'ACCORD and close the Disk Management console;
12. Exécutez votre Hyper-V Manager and click on Edit Disk;
13. Cliquez sur le Suivant bouton;
14. Cliquez sur le Parcourir button to select target Virtual Disk;
15. After selecting Disk click the Suivant bouton;
16. As you see we get a new option Shrink, select it and click the Suivant bouton;
NOTE: Option “Shrink” is available if “Virtual Disk” has “Unallocated” space.
17. Enter the new size and click the Finition bouton;
18. Inspect our Virtual Disk again, now it’s 41 FR;
19. In the system;