Dynamic increase of memory and CPU in boot state of virtual machine
Experimental environment: a virtual machine
1. Right-click the virtual machine and click "Edit Settings"
2. In the "options", find the item "memory / cpu hot plug", tick "start memory hot add for this virtual machine" and "start CPU hot add for this virtual machine only", and click "OK".
Note: in the boot state, only memory or CPU can be upgraded, but memory or CPU cannot be degraded. It is recommended to enable this feature when creating a virtual machine.
I hope I can help you.