1. Press win + R to open the run dialog box, enter "cmd", and press enter to open the Command Prompt window;
2. Go to the installation directory of VMware (X: \ Program Files \ VMware Workstation );
3. Input some command vmware-vdiskmanager.exe-x 30 GB "D: \ VM \ Windows XP. vmdk ";
1) The parameter "-X" indicates that the disk space of the virtual machine is extended;
2) The following figure shows the size of the expanded disk (the total size of the expanded disk, including the original disk capacity );
3) The last parameter is the complete path of the Virtual Machine disk file (if the path contains spaces, it must be enclosed in double quotation marks ).
4. Press enter to start disk expansion (the disk expansion process is slow );
After the command is executed, close the Command Prompt window and restart VMware. The hard disk space of the VM is changed to 30 GB.
5. Finally, we need to adjust the Virtual Machine partition.
1) You can perform the "extend volume" Operation in "Computer Management-disk management" of the virtual machine;
2) You can also install a third-party partition tool in the virtual machine to adjust the Virtual Machine partition.