Configuring VM hardware
Occasionally, you will find that the initial configuration for a virtual machine needs to change to continue to support its role. Sometimes this is because the hardware is undersized and needs to be increased to meet the needs. Other times this is because the hardware is too big and needs to be decreased to free up resources for other VMs.
Getting ready
In this example we will be reconfiguring the hardware of our Accounting02
virtual machine from the Creating virtual machines recipe. Specifically, we will be changing the memory configuration, adding additional hard drives, and changing the number of virtual CPUs on the VM.
Note
Most of these commands can only be performed while the VM is switched off.
How to do it...
Carry out the following steps to update the virtual hardware:
Change the memory configuration to increase the available RAM:
Set-VMMemory -ComputerName HV01 -VMName Accounting02 -StartupBytes 1GB
Enable dynamic memory on the VM:
Set-VMMemory -ComputerName HV01...