Vorgänge virtueller Hyper-V-Festplatten: Kompakt, Konvertieren, Expandieren, und Schrumpfen – Anleitung und Tipps.
Kompakt
1. Führen Sie Ihre aus Hyper-V-Manager und klicken Sie auf Datenträger bearbeiten;
2. Klicken Nächste;
3. Klicke auf Durchsuche to select your disk for operations;
4. After Disk is selected click Nächste;
5. First option is Kompakt (this is the simplest operation). Klicken Nächste;
6. At the next page click Nächste;
Konvertieren
1. Option Konvertieren (change your Virtual Disk format, *.vhd or *.vhdx). Klicken Nächste;
2. Select the format and click Nächste;
3. Select the type of Virtual Disk.
NOTIZ: In enterprise is Best Practice – to benutze einen Virtual Disk type Fixed size.
4. Make a choice and click Nächste;
5. Klicke auf Durchsuche to select the final name and destination of Virtual Disk, und klicken Speichern;
7. If it’s ok – click Nächste;
8. Klicken Beenden to run this operation;
Expandieren
1. Run Hyper-V Manager and click on Inspect Disk and select target Virtuelle Festplatte to show information about it. Drücke den Schließen Taste;
2. We have 60 GB VHDX, Expand it. Click on Edit Disk in Hyper-V Manager; Drücke den Nächste Taste;
3. Klicken das Durchsuchen button and select target Virtuelle Festplatte;
4. After selecting click the Nächste Taste;
5. Wählen Expandieren option and click the Nächste Taste;
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 Beenden Taste;
8. Let’s Überprüfen Sie die Festplatte wieder. As we see – it now 80 GB size.
9. Connect to VM, which Virtual Disk we Expandieren. 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. Schließen This PC. Rechte Maustaste klicke auf der Anfang drücken und auswählen Datenträgerverwaltung;
11. After the Disk Management console opens you will see Unallocated space on the Disk (20 GB);
12. Rechte Maustaste click on Disk “(C:)” and select Extend Volume;
13. Drücke den Nächste Taste;
14. It shows up space for extending. Drücke den Nächste Taste;
15. Klicken Beenden to apply changes;
16. As we see – The disk is extended to 80 GB, close the Datenträgerverwaltung Konsole;
17. Offen "This PC wieder. Hooray “Local Disk (C:)” now has an 80 GB size.
Shrink
1. Run Hyper-V Manager and make sure your Virtuelle Maschine (VM) with target “Virtuelle Festplatte is in an Aus Zustand. Close Hyper-V Manager;
2. Offen Datenträgerverwaltung on the Hyper-V computer (local pc). Rechte Maustaste klicke auf der Anfang drücken und auswählen Datenträgerverwaltung;
3. Nach the Disk Management console opens, go to the upper menu. Klicken Aktion und dann Attach VHD;
4. Klicken Durchsuche to select the target Virtuelle Festplatte Datei;
5. After selecting click the OK Taste;
6. We connected Virtuelle Festplatte;
7. Rechte Maustaste click on the connected Disk and select Shrink Volume;
8. Enter the size in MB (Megabytes) to shrink from Disk. Drücke den Shrink Taste;
9. Perfekt, shrinking is successful;
10. Rechte Maustaste Klicken Sie auf Ihr Virtuelle Festplatte und auswählen Detach VHD;
11. Klicken OK and close the Datenträgerverwaltung Konsole;
12. Run your Hyper-V Manager and click on Datenträger bearbeiten;
13. Drücke den Nächste Taste;
14. Drücke den Durchsuche button to select target Virtuelle Festplatte;
15. After selecting Disk click the Nächste Taste;
16. As you see we get a new option Shrink, select it and click the Nächste Taste;
NOTIZ: Option “Shrink” is available if “Virtuelle Festplatte” has “Unallocated” space.
17. Enter the new size and click the Beenden Taste;
18. Inspect our Virtuelle Festplatte wieder, now it’s 41 GB;
19. In the system;