Operacije virtualnega diska Hyper-V: Kompakten, Pretvorba, Razširi, in Skrči – Kako voditi in nasveti.
Kompakten
1. Zaženite svoje Hyper-V Manager and click on Uredi disk;
2. Kliknite Naslednji;
3. Kliknite na Browse to select your disk for operations;
4. After Disk is selected click Naslednji;
5. First option is Kompakten (this is the simplest operation). Kliknite Naslednji;
6. At the next page click Naslednji;
Pretvorba
1. Option Pretvorba (change your Virtual Disk format, *.vhd or *.vhdx). Kliknite Naslednji;
2. Select the format and click Naslednji;
3. Select the type of Virtual Disk.
OPOMBA: In enterprise is Best Practice – to use a Virtual Disk type Fixed size.
4. Make a choice and click Naslednji;
5. Kliknite na Browse to select the final name and destination of Virtual Disk, in kliknite Save;
7. If it’s ok – click Naslednji;
8. Kliknite Končaj to run this operation;
Razširi
1. Run Hyper-V Manager and click on Inspect Disk and select target Virtualni disk to show information about it. Kliknite na Zapri gumb;
2. We have 60 GB VHDX, Expand it. Click on Edit Disk in Hyper-V Manager; Kliknite na Naslednji gumb;
3. Kliknite the Browse button and select target Virtualni disk;
4. After selecting click the Naslednji gumb;
5. Izberite Razširi option and click the Naslednji gumb;
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 Končaj gumb;
8. Let’s Preglejte disk again. As we see – it now 80 GB size.
9. Connect to VM, which Virtual Disk we Razširi. 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. Zapri This PC. Desni gumb miške kliknite na začetek button and select Disk Management;
11. After the Disk Management console opens you will see Unallocated space on the Disk (20 GB);
12. Desni gumb miške click on Disk “(C:)” and select Extend Volume;
13. Kliknite na Naslednji gumb;
14. It shows up space for extending. Kliknite na Naslednji gumb;
15. Kliknite Končaj to apply changes;
16. As we see – The disk is extended to 80 GB, close the Disk Management konzola;
17. Open “This PC again. Hooray “Local Disk (C:)” now has an 80 GB size.
Shrink
1. Run Hyper-V Manager and make sure your Navidezni stroj (VM) with target “Virtualni disk is in an Izključeno state. Close Hyper-V Manager;
2. Odprto Disk Management on the Hyper-V computer (local pc). Desni gumb miške kliknite na začetek button and select Disk Management;
3. After the Disk Management console opens, go to the upper menu. Kliknite Action in potem Attach VHD;
4. Kliknite Browse to select the target Virtualni disk mapa;
5. After selecting click the v redu gumb;
6. We connected Virtualni disk;
7. Desni gumb miške click on the connected Disk and select Shrink Volume;
8. Enter the size in MB (Megabytes) to shrink from Disk. Kliknite na Shrink gumb;
9. Popoln, shrinking is successful;
10. Desni gumb miške click on your Virtualni disk in izberite Detach VHD;
11. Kliknite v redu and close the Disk Management konzola;
12. Run your Hyper-V Manager and click on Uredi disk;
13. Kliknite na Naslednji gumb;
14. Kliknite na Browse button to select target Virtualni disk;
15. After selecting Disk click the Naslednji gumb;
16. As you see we get a new option Shrink, select it and click the Naslednji gumb;
OPOMBA: Option “Shrink” is available if “Virtualni disk” has “Unallocated” space.
17. Enter the new size and click the Končaj gumb;
18. Inspect our Virtualni disk again, now it’s 41 GB;
19. In the system;