• 0 environment
  • 1 prepare
  • 2 Run the capacity expansion command
    • Find vmware – vdiskmanager
    • Expand the disk space of the VM
  • 3 Expand the VM capacity

0 environment

  • System environment: Windows
  • Vm: VMware

1 prepare

Refer to the article

2 Run the capacity expansion command

Just keep track of the important steps and look at the reference articles in detail

Find vmware – vdiskmanager

Find vmware location
Enter CMD.

Note: If you type vmware-vdiskManager on the DOS interface, you can see all the parameters of the command. You can successfully type in Powershell

Expand the disk space of the VM

vmware-vdiskmanager -x 80GB "D:\Windows Server 2008 R2\Windows Server 2008 R2 x64_V3.vmdk" 
Copy the code

The “-x” parameter indicates the virtual machine hard disk space to be expanded, followed by the number of disks to be expanded (in this case, to 80GB, which is the total disk capacity and includes the original disk capacity). The double quotation marks (“”) indicate the path and file of the VM disk to be operated

Determine the location of VMDK

Press Enter. Wait for a moment. If XXX successfully is displayed, the command is successfully executed

3 Expand the VM capacity

Expanding a Volume