When upgrading from VMWare ESX server 2.x to 3.x, you have to upgrade the VMWare Tools and virtual hardware for each virtual machine manually. With Virtual Center Server, you can upgrade all managed VM’s at once with a command line tool. This article describes the command and possible parameters for vmware-vmupgrade.exe
Only virtual machines managed by VirtualCenter 2 can be upgraded.
Mass upgrades are available only for Linux and Microsoft Windows 2000 and higher
The virtual disk must be on a VMFS-3 volume
Virtual machines must be powered off. (Linux virtual machines must be shut own, rather than powered off.)
To upgrade VMware Tools and virtual hardware on multiple virtual machines
- Open the Windows command prompt. For example by going to Start -> Run -> cmd -> <ENTER>
- Change to the directory where the VirtualCenter Server is installed. For example by typing:
“cd C:\Program Files\VMWARE\VirtualCenter\“
- Type the command with your desired options. Use the following command syntax:
vmware-vmupgrade.exe -u user [-p password] [-n vmname] [-h host] [-m maxpowerons] [-o port] [-t maxpowerontime] [-s] [-q]
Description of the parameters:
Specifies a user with sufficient privileges on the target virtual machine, including VirtualMachine.Config.*, VirtualMachine.Interact.*, and VirtualMachine.Provisioning.*
Specifies a password on the command line. If this is omitted, the tool immediately prompts for a password.
-n vmname Specified the name of the virtual machine to upgrade. This name corresponds to the display name of a virtual machine. Specify multiple virtual machines using multiple -n parameters. The -n option is ignored if -h is specified.
Attempts to upgrade all the virtual machines on a particular host. Fails if the specified host is not version ESX Server 3.0 or greater.
On a particular host, powers on only this number of virtual machines at a time.
Specifies the VirtualCenter Server port, if a port other than the default port 902 has been configured.
Allows a user to set the maximum amount of time for a virtual machine to be powered on in case the guest is unable to power off the machine itself. After the tools upgrade is scheduled on a virtual machine, the virtual machine is powered on and allowed to run through the tools installation process. In most cases, the guest powers down the machine automatically when the process completes.
Skips the tools and does only the virtual hardware upgrade.
Works quietly. Doesn’t produce status or completion messages on stdout