I need to automate some tests that each time the number of CPUs and memory size of the Virtual Machine is changed. I'm wondering how to change them from command line? It seems starting and stopping guest os can be done from ESXi host's command line. But is there a command to change the virtual machine's #CPUs and memory size? Or in general, can this be done in a command line manner?
How to change configuration of virtual machine from command line of VMWare ESXi host
vmware-esxivmware-vsphere
Related Topic
- Ubuntu – safely increase the number of processors on a VM
- Linux – Is there still a use for irqbalance on modern hardware
- ESXi standalone host cannot power on any virtual machines
- Vmware virtual machine keeps freezing
- VMWare not changing RAM on virtual machine
- Linux – ESXI: Get machine name from the virtual (within the) machine itself
Best Answer
The easiest way to do this would be through PowerCLI, which is a PowerShell plugin for vSphere. With that you can use the Set-VMResesourceConfiguration cmdlet to modify the resource configuration of your guest machines.