How to expand the disk space of Windows virtual machine
Many users may encounter the problem that the system does not have enough disk space (usually disk c) and the warning color is red. If the user does nothing, it may eventually cause the system to boot failed.
Of course, in addition to the system disk, a similar situation can occur on other disks, but it generally does not cause the system to boot (boot).
Generally speaking, unless the user's computer does not have any data to save, we can repartition and install the system. However, the average user's computer will store a lot of data, in addition, some companies (units) users may have commercial software in their computers, if you reinstall the system, it will take a lot of time, manpower and money.
The C disk of virtual machine Windows2012 currently has only 50GB. It is planned to expand 20GB, and the total space will reach 70GB or more.
1. Expand the capacity of a virtual hard disk
Run the Hyper-V Manager of the physical machine and turn off the virtual machine.
[setting]-- Click hard disk drive vhdx, [Edit] Virtual hard disk-- [expand]-- enter a new size: 100GB (or 70GB, the total target space should be larger than the original space)-- [done].
two。 Check the capacity of the virtual hard disk
[Hyper-V Manager]-[check] whether there is unallocated space.
3. Expand the disk space of the virtual machine
Open the virtual machine, run [computer Management], and select disk C-[expand Volume].
Enter the amount of space 20GB (increase), [expand].
4. Check the disk space of the virtual machine
[OK]