Operații de disc virtual Hyper-V: Compact, Convertit, Extinde, și Shrink – Cum să ghidați și sfaturi.
Compact
1. Rulați-vă Manager Hyper-V și faceți clic pe Edit Disk;
2. Clic Următorul;
3. Click pe Naviga to select your disk for operations;
4. After Disk is selected click Următorul;
5. First option is Compact (this is the simplest operation). Clic Următorul;
6. At the next page click Următorul;
Convertit
1. Option Convertit (change your Virtual Disk format, *.vhd or *.vhdx). Clic Următorul;
2. Select the format and click Următorul;
3. Select the type of Virtual Disk.
NOTĂ: In enterprise is Best Practice – to folosește o Virtual Disk type Fixed size.
4. Make a choice and click Următorul;
5. Click pe Naviga to select the final name and destination of Virtual Disk, și faceți clic Salvați;
7. If it’s ok – click Următorul;
8. Clic finalizarea to run this operation;
Extinde
1. Run Hyper-V Manager and click on Inspect Disk and select target Disc virtual to show information about it. Apasă pe Închide buton;
2. We have 60 GB VHDX, Expand it. Click on Edit Disk in Hyper-V Manager; Apasă pe Următorul buton;
3. Clic the Browse button and select target Disc virtual;
4. After selecting click the Următorul buton;
5. Selectați Extinde option and click the Următorul buton;
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 finalizarea buton;
8. Let’s Inspect Disk din nou. As we see – it now 80 GB size.
9. Connect to VM, which Virtual Disk we Extinde. 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. Închide This PC. Butonul din dreapta al mouse-ului Click pe the Start button and select Disk Management;
11. After the Disk Management console opens you will see Unallocated space on the Disk (20 GB);
12. Butonul din dreapta al mouse-ului click on Disk “(C:)” and select Extend Volume;
13. Apasă pe Următorul buton;
14. It shows up space for extending. Apasă pe Următorul buton;
15. Clic finalizarea to apply changes;
16. As we see – The disk is extended to 80 GB, close the Disk Management consolă;
17. Deschis "This PC din nou. Hooray “Local Disk (C:)” now has an 80 GB size.
Shrink
1. Run Hyper-V Manager and make sure your Mașină virtuală (VM) with target “Disc virtual is in an Oprit state. Close Hyper-V Manager;
2. Deschis Disk Management on the Hyper-V computer (local pc). Butonul din dreapta al mouse-ului Click pe the Start button and select Disk Management;
3. After the Disk Management console opens, go to the upper menu. Clic Acțiune and then Attach VHD;
4. Clic Naviga to select the target Disc virtual fişier;
5. After selecting click the Bine buton;
6. We connected Disc virtual;
7. Butonul din dreapta al mouse-ului click on the connected Disk and select Shrink Volume;
8. Enter the size in MB (Megabytes) to shrink from Disk. Apasă pe Shrink buton;
9. Perfect, shrinking is successful;
10. Butonul din dreapta al mouse-ului faceți clic pe dvs Disc virtual și selectați Detach VHD;
11. Clic Bine and close the Disk Management consolă;
12. Run your Hyper-V Manager and click on Edit Disk;
13. Apasă pe Următorul buton;
14. Apasă pe Naviga button to select target Disc virtual;
15. After selecting Disk click the Următorul buton;
16. As you see we get a new option Shrink, select it and click the Următorul buton;
NOTĂ: Option “Shrink” is available if “Disc virtual” has “Unallocated” space.
17. Enter the new size and click the finalizarea buton;
18. Inspect our Disc virtual din nou, now it’s 41 GB;
19. In the system;