VMWare 16.0 expands Ubuntu virtual machine capacity

I don’t know why, but when I search for “virtual machine expansion” on the platform, all that comes out are long talks; after the expansion, we need to go to war on the command line of the virtual machine system. ╮(╯▽╰)╭
It takes less than a minute to operate with the desktop + mouse...
Insert image description here
There are two steps in total:

  • 【In Windows】Allocate memory
  • 【In Ubuntu】Release memory

【In Windows】Allocate memory

  • Points “Edit the virtual machine setting”—“Exhibition
    Insert image description here
    Insert image description here

  • The number filled in the expansion option representsthe total capacity of the virtual machine after expansion. Therefore, the allocation size must not be less than the "Maximum size" in the blue box above;
    At the same time, the way VMWare expands is Create a new space first and then delete the original space, so the allocation size must not be larger than the system in the blue box above Available space

    Be careful when choosing, because disk expansion is an operationirreversible

  • When you see the following dialog box, the operation is complete.
    Insert image description here

【In Ubuntu】Release memory

Enter Ubuntu, press the "Windows" key, enter "disk" (or "Disk") in the search box
Insert image description here
Click the small gear, select "Resize", and allocate space to Max

Enter the command on the command line to view the current capacity.

df -h

Insert image description here
As you can see, the capacity has now increased

Guess you like

Origin blog.csdn.net/weixin_51772802/article/details/131818724