Manage Learn to apply best practices and optimize your operations.

BETA: ESX 3.0 minor error in preupgrade.pl

If you're on the beta program you might be aware that amongst the downloads for ESX 3.0, VirtualCenter 2.0 there is a pre-upgrade script called “preupgrade.pl” which you can use against an ESX 2.x server to check for any potential errors in the upgrade process.

If you're on the beta program you might be aware that amongst the downloads for ESX 3.0, VirtualCenter 2.0 there is a pre-upgrade script called “preupgrade.pl” which you can use against an ESX 2.x server to check for any potential errors in the upgrade process.

The script is very useful and saves time but there is a minor error with it.

 

The error displays itself like so:

Checking existing VMs…
Checking VM versions…
Use of uninitialized value in numeric ge (>=) at /root/preupgrade.pl line 93.
ERROR: The following VMs must be upgraded to the
ERROR: ESX Server 2.x format before system upgrade:
ERROR:    * mf1
Checking for repeatable resume…
Checking disk space…
When the script runs it checks the virtual hw field in the VMX file. Different flavors of ESX 2.x and VirtualCenter 1.x have formatted this field differently during their life time. Some format the field as:

virtualhw.version = “3″

while other flavors format this field as

virtualHW.version = “3″

Preupgrade.pl is case-sensitive to this value and can report errors which are actually benign.

Your choice is either to ignore these errors or manually correct them in the VMX file. This should result in a successful upgrade report looking like this:

Checking existing VMs…
Checking VM versions…
Checking for repeatable resume…
Checking disk space…
Done. You may now upgrade the system.

Dig Deeper on VMware ESX and ESXi administrative tips

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchServerVirtualization

SearchVirtualDesktop

SearchDataCenter

SearchCloudComputing

Close