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...
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”
-
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 spaceBe careful when choosing, because disk expansion is an operationirreversible
-
When you see the following dialog box, the operation is complete.
【In Ubuntu】Release memory
Enter Ubuntu, press the "Windows" key, enter "disk" (or "Disk") in the search box
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
As you can see, the capacity has now increased