Hyper-V Virtual Disk Operations: Compact, Convert, Espandere, and Shrink – How to Guide and Tips.
Compact
1. Esegui il tuo Gestore Hyper-V e fare clic su Modifica disco;
2. Clic Prossimo;
3. Clicca su Navigare to select your disk for operations;
4. After Disk is selected click Prossimo;
5. First option is Compact (this is the simplest operation). Clic Prossimo;
6. At the next page click Prossimo;
Convert
1. Option Convert (change your Virtual Disk format, *.vhd or *.vhdx). Clic Prossimo;
2. Select the format and click Prossimo;
3. Select the type of Virtual Disk.
NOTA: In enterprise is Best Practice – to use a Virtual Disk type Fixed size.
4. Make a choice and click Prossimo;
5. Clicca su Navigare to select the final name and destination of Virtual Disk, e clicca Salva;
7. If it’s ok – click Prossimo;
8. Clic Fine to run this operation;
Espandere
1. Run Hyper-V Manager and click on Inspect Disk and select target Disco virtuale to show information about it. Clicca il Vicino pulsante;
2. We have 60 GB VHDX, Expand it. Click on Edit Disk in Hyper-V Manager; Clicca il Prossimo pulsante;
3. Clic the Browse button and select target Disco virtuale;
4. After selecting click the Prossimo pulsante;
5. Selezionare Espandere option and click the Prossimo pulsante;
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 Fine pulsante;
8. Let’s Ispeziona il disco Ancora. As we see – it now 80 GB size.
9. Connect to VM, which Virtual Disk we Espandere. 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. Vicino This PC. Pulsante destro del mouse clicca su la partenza pulsante e selezionare Disk Management;
11. After the Disk Management console opens you will see Unallocated space on the Disk (20 GB);
12. Pulsante destro del mouse click on Disk “(C:)” and select Extend Volume;
13. Clicca il Prossimo pulsante;
14. It shows up space for extending. Clicca il Prossimo pulsante;
15. Clic Fine to apply changes;
16. As we see – The disk is extended to 80 GB, close the Disk Management consolare;
17. Open “This PC Ancora. Hooray “Local Disk (C:)” now has an 80 GB size.
Shrink
1. Run Hyper-V Manager and make sure your Macchina virtuale (VM) with target “Disco virtuale is in an Spento state. Close Hyper-V Manager;
2. Aprire Disk Management on the Hyper-V computer (local pc). Pulsante destro del mouse clicca su la partenza pulsante e selezionare Disk Management;
3. After the Disk Management console opens, go to the upper menu. Clic Azione poi Attach VHD;
4. Clic Navigare to select the target Disco virtuale file;
5. After selecting click the OK pulsante;
6. We connected Disco virtuale;
7. Pulsante destro del mouse click on the connected Disk and select Shrink Volume;
8. Enter the size in MB (Megabytes) to shrink from Disk. Clicca il Shrink pulsante;
9. Perfetto, shrinking is successful;
10. Pulsante destro del mouse click on your Disco virtuale e seleziona Detach VHD;
11. Clic OK and close the Disk Management consolare;
12. Run your Hyper-V Manager and click on Modifica disco;
13. Clicca il Prossimo pulsante;
14. Clicca il Navigare button to select target Disco virtuale;
15. After selecting Disk click the Prossimo pulsante;
16. As you see we get a new option Shrink, select it and click the Prossimo pulsante;
NOTA: Option “Shrink” is available if “Disco virtuale” has “Unallocated” space.
17. Enter the new size and click the Fine pulsante;
18. Inspect our Disco virtuale Ancora, now it’s 41 GB;
19. In the system;