Operações de disco virtual Hyper-V: Compactar, Converter, Expandir, e encolher – Como orientar e dicas.
Compactar
1. Execute o seu Hyper-V Manager e clique em Editar disco;
2. Clique Próximo;
3. Clique em Navegar to select your disk for operations;
4. After Disk is selected click Próximo;
5. First option is Compactar (this is the simplest operation). Clique Próximo;
6. At the next page click Próximo;
Converter
1. Option Converter (change your Virtual Disk format, *.vhd or *.vhdx). Clique Próximo;
2. Select the format and click Próximo;
3. Select the type of Virtual Disk.
OBSERVAÇÃO: In enterprise is Best Practice – to use a Virtual Disk type Fixed size.
4. Make a choice and click Próximo;
5. Clique em Navegar to select the final name and destination of Virtual Disk, e clique Salvar;
7. If it’s ok – click Próximo;
8. Clique Terminar to run this operation;
Expandir
1. Run Hyper-V Manager and click on Inspect Disk and select target Disco Virtual to show information about it. Clique no Fechar botão;
2. We have 60 GB VHDX, Expand it. Click on Edit Disk in Hyper-V Manager; Clique no Próximo botão;
3. Clique the Browse button and select target Disco Virtual;
4. After selecting click the Próximo botão;
5. Selecione Expandir option and click the Próximo botão;
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 Terminar botão;
8. Let’s Inspecionar disco de novo. As we see – it now 80 GB size.
9. Connect to VM, which Virtual Disk we Expandir. 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. Fechar This PC. Botão direito do mouse Clique em o começo botão e selecione Disk Management;
11. After the Disk Management console opens you will see Unallocated space on the Disk (20 GB);
12. Botão direito do mouse click on Disk “(C:)” and select Extend Volume;
13. Clique no Próximo botão;
14. It shows up space for extending. Clique no Próximo botão;
15. Clique Terminar to apply changes;
16. As we see – The disk is extended to 80 GB, close the Disk Management console;
17. Abrir "This PC de novo. Hooray “Local Disk (C:)” now has an 80 GB size.
Shrink
1. Run Hyper-V Manager and make sure your Máquina virtual (VM) with target “Disco Virtual is in an Desligado state. Close Hyper-V Manager;
2. Abrir Disk Management on the Hyper-V computer (local pc). Botão direito do mouse Clique em o começo botão e selecione Disk Management;
3. After the Disk Management console opens, go to the upper menu. Clique Ação and then Attach VHD;
4. Clique Navegar to select the target Disco Virtual arquivo;
5. After selecting click the OK botão;
6. We connected Disco Virtual;
7. Botão direito do mouse click on the connected Disk and select Shrink Volume;
8. Enter the size in MB (Megabytes) to shrink from Disk. Clique no Shrink botão;
9. Perfeito, shrinking is successful;
10. Botão direito do mouse clique no seu Disco Virtual e selecione Detach VHD;
11. Clique OK and close the Disk Management console;
12. Run your Hyper-V Manager and click on Editar disco;
13. Clique no Próximo botão;
14. Clique no Navegar button to select target Disco Virtual;
15. After selecting Disk click the Próximo botão;
16. As you see we get a new option Shrink, select it and click the Próximo botão;
OBSERVAÇÃO: Option “Shrink” is available if “Disco Virtual” has “Unallocated” space.
17. Enter the new size and click the Terminar botão;
18. Inspect our Disco Virtual de novo, now it’s 41 GB;
19. In the system;