1. Open the VC, select the VM, select Edit setting, adjust the disk space from 50 to 80, during which the VM boot is not affected;
2. In the VM, go to Disk Management, can see Disk 1 has become 80GB, but the following 30GB is not assigned to D disk;
3. Go to cmd mode, enter DiskPart, return;
4. diskpart> list volume;
5. Diskpart>select volume *; Refers to the disk to be expanded, such as D-disk; * According to the actual input 0.1.2 ...
6. diskpart>list disk;
7. diskpart>select disk *;
8. Diskpart>list partition;
9. Diskpart>select partition *; Select an extended logical partition
10.diskpart>extend
11.diskpart>exit
Ok
BTW: The system disk cannot be expanded directly, you can expand the disk for another VM by hooking the system disk, such as the C drive, to another VM.
The disk must be assigned a drive letter to run the Extend command.
Windows virtual machine Disk expansion operations