Hyper-V Virtual Disk Operations: Kompakt, Konvertera, Bygga ut, och Shrink – Hur man vägleder och tips.
Kompakt
1. Kör din Hyper-V Manager och klicka på Redigera disk;
2. Klick Nästa;
3. Klicka på Bläddra to select your disk for operations;
4. After Disk is selected click Nästa;
5. First option is Kompakt (this is the simplest operation). Klick Nästa;
6. At the next page click Nästa;
Konvertera
1. Option Konvertera (change your Virtual Disk format, *.vhd or *.vhdx). Klick Nästa;
2. Select the format and click Nästa;
3. Select the type of Virtual Disk.
NOTERA: In enterprise is Best Practice – to use a Virtual Disk type Fixed size.
4. Make a choice and click Nästa;
5. Klicka på Bläddra to select the final name and destination of Virtual Disk, och klicka Save;
7. If it’s ok – click Nästa;
8. Klick Avsluta to run this operation;
Bygga ut
1. Run Hyper-V Manager and click on Inspect Disk and select target Virtuell disk to show information about it. Klicka på Stänga knapp;
2. We have 60 GB VHDX, Expand it. Click on Edit Disk in Hyper-V Manager; Klicka på Nästa knapp;
3. Klick the Browse button and select target Virtuell disk;
4. After selecting click the Nästa knapp;
5. Välj Bygga ut option and click the Nästa knapp;
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 Avsluta knapp;
8. Let’s Inspektera disken igen. As we see – it now 80 GB size.
9. Connect to VM, which Virtual Disk we Bygga ut. 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. Stänga This PC. Höger musknapp Klicka på starten knappen och välj Disk Management;
11. After the Disk Management console opens you will see Unallocated space on the Disk (20 GB);
12. Höger musknapp click on Disk “(C:)” and select Extend Volume;
13. Klicka på Nästa knapp;
14. It shows up space for extending. Klicka på Nästa knapp;
15. Klick Avsluta to apply changes;
16. As we see – The disk is extended to 80 GB, close the Disk Management trösta;
17. Öppen "This PC igen. Hooray “Local Disk (C:)” now has an 80 GB size.
Shrink
1. Run Hyper-V Manager and make sure your Virtuell maskin (VM) with target “Virtuell disk is in an Av state. Close Hyper-V Manager;
2. Öppen Disk Management on the Hyper-V computer (local pc). Höger musknapp Klicka på starten knappen och välj Disk Management;
3. Efter the Disk Management console opens, go to the upper menu. Klick Handling and then Attach VHD;
4. Klick Bläddra to select the target Virtuell disk fil;
5. After selecting click the OK knapp;
6. We connected Virtuell disk;
7. Höger musknapp click on the connected Disk and select Shrink Volume;
8. Enter the size in MB (Megabytes) to shrink from Disk. Klicka på Shrink knapp;
9. Perfekt, shrinking is successful;
10. Höger musknapp click on your Virtuell disk och välj Detach VHD;
11. Klick OK and close the Disk Management trösta;
12. Run your Hyper-V Manager and click on Redigera disk;
13. Klicka på Nästa knapp;
14. Klicka på Bläddra button to select target Virtuell disk;
15. After selecting Disk click the Nästa knapp;
16. As you see we get a new option Shrink, select it and click the Nästa knapp;
NOTERA: Option “Shrink” is available if “Virtuell disk” has “Unallocated” space.
17. Enter the new size and click the Avsluta knapp;
18. Inspect our Virtuell disk igen, now it’s 41 GB;
19. In the system;