Tips and Tricks – Vitual Machine advanced settings

Few days back I found very useful PowerCLI script which allow add advance setting to virtual machine without power it down. I thought it might be useful for someone so I decided to document it. Standard process for adding new advance setting is as follows:

  • power VM down
  • add advance setting to VM
  • power VM on

Using below script you can add advance setting to VM without power it down ! The only thing which you have to do after script execution, is do virtual machine vMotion.

In the example below RemoteDisplay.maxConnections=1 advance value was added to VM. It will limit concurrent VM console connections to 1.

  1. Run a script,  in a Recent task window new task appears: Reconfigure virtual machine – wait until task complete.

    recent task window

  2. vMotion VM between ESX hosts
  3. check if advance setting was applied,  try to open VM console from two vSphere clients

    mks connection error

As you can see on above item, advance setting was applied successfully to virtual machine configuration without powering VM down.

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur has been in IT industry since 1999 and consulting since 2008. Artur holds VMware Certified Design Expert certification (VCDX #077).