Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
VMware vSphere 5.1 Cookbook

You're reading from   VMware vSphere 5.1 Cookbook If you prefer practice to theory then this is the ideal book for learning how to install and configure VMware vSphere components. Packed with recipes, it's a hands-on tutorial and reference guide for this unbeatable virtualization product.

Arrow left icon
Product type Paperback
Published in Jul 2013
Publisher Packt
ISBN-13 9781849684026
Length 466 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Abhilash G B Abhilash G B
Author Profile Icon Abhilash G B
Abhilash G B
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

VMware vSphere 5.1 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Upgrading to vSphere 5.1 FREE CHAPTER 2. Performing a Fresh Installation of vSphere 5.1 3. vSphere Auto Deploy 4. ESXi Image Builder 5. Creating and Managing VMFS Datastores 6. Managing iSCSI and NFS Storage 7. Profile-driven Storage and Storage I/O Control 8. Configuring the vSphere Network 9. Creating and Managing Virtual Machines 10. Configuring vSphere HA 11. Configuring vSphere DRS, DPM, and VMware EVC 12. Upgrading and Patching using vSphere Update Manager 13. Using vSphere Management Assistant (vMA 5.1) Index

Upgrading a 32-bit vCenter Server to vCenter 5.1


An in-place upgrade is not possible if the vCenter Server that you are trying to upgrade is installed on a 32-bit machine. This is because vCenter Server 5.1 is a 64-bit application. All the vCenter versions prior to vCenter 4.1.x were 32-bit, with vCenter 4.0 being an exception because it could be installed either on a 32-bit or a 64-bit machine.

For an upgrade to vCenter 5.0, we had an option to use the Data Migration tool. Unfortunately, vCenter 5.1 does not support the use of it. You can work around this limitation by using the Data Migration tool to migrate the data first to a 64-bit Windows machine, then install vCenter 5.0 on it, and finally perform an in-place upgrade to vCenter 5.1.

The Data Migration tool can be used to migrate data from the following versions of vCenter:

  • Virtual Center 2.6 Update 6 or later

  • vCenter Server 4.0 and its updated releases

The Data Migration tool is not supported for migrating vCenter 4.1 configurations or databases, because vCenter 4.1 is 64-bit; hence, it would be already installed on a 64-bit machine. It is only used to migrate vCenter data from a 32-bit machine.

The Data Migration tool can migrate the following configuration settings:

  • Port settings for HTTP and HTTPS

  • Port settings for vCenter Heartbeat and vCenter Web Services

  • LDAP data

  • Port settings for LDAP and LDAP SSL ports

  • SSL certificates from the SSL folder

  • License data

  • Database data, for SQL Express database only

    Note

    The Data Migration tool can only be used to migrate a SQL Express database. A non-SQL express database should be backed up manually.

How to do it...

Migrating the vCenter data and database is a two-step procedure:

  1. Back up the setting from the 32-bit vCenter Server.

  2. Restore the settings on to the new 64-bit machine.

Backing up the settings from a 32-bit vCenter Server

The following steps are required to back up the settings on the 32-bit vCenter Server using the Data Migration tool:

  1. Stop the vCenter Server service.

  2. Extract the contents of the ZIP file, datamigration.zip, available on the vCenter installer ISO/ZIP/DVD to a hard disk location on the same machine. The datamigration.zip file can located under the datamigration folder on root the vCenter installer ISO/ZIP/DVD. The location for the file can be as follows:

    DVD/CDROM:\datamigration\datamigration.zip

    The following screenshot shows the contents of the datamigration.zip file once it is extracted:

  3. Once the datamigration.zip archive is extracted, use the Windows command line and navigate to the datamigration folder; then run the backup.bat batch file to initiate the backup process.

    For example, if the ZIP archive was extracted to C:\, then at the command line, change to the C:\Datamigation directory, type backup.bat and hit Enter.

Restoring the configuration on the new machine

Now that you have backed up the needed data, it needs to be transferred to the intended destination machine (64-bit):

  1. Once the backup.bat file is finished with its job, it will dump all the backed up data to the ./data/vc/ folder. To initiate a restore, copy the entire datamigration folder to the 64-bit machine.

  2. Make sure that you have the vCenter Server's installation DVD in the DVD drive or the ISO mounted to the VM (if the destination vCenter Server is virtual machine).

  3. Navigate to the datamigration folder using the Windows command prompt, and run the install.bat batch script.

How it works...

In this section, I will explain how the backup.bat and install.bat batch scripts work, when run on the 32-bit source and the 64-bit destination machines respectively.

What happens when you run the backup.bat batch script on the 32-bit vCenter Server?

When you run this script on the machine running the 32-bit vCenter Server, it will first check the vCenter Server's version and the database's compatibility with the Data Migration tool, and then backs up the configuration setting files. Subsequently, it will upgrade the database schema to Version 5. This is a four-step process:

  1. The original database is backed up.

  2. The database schema is upgraded to Version 5.0.

  3. The upgraded database is backed up.

  4. Restore the original database from the backup that was taken earlier.

It will also try to detect the version of VMware Update Manager installed. If it encounters a version that is not supported then it would let you know that the Update Manager's version prerequisite is not met and it will seek your confirmation to continue with the backup. Such a backup will not include the Update Manager data. It does the same if it does not detect the presence of Update Manager.

Next, the backup script will start backing up the vCenter data (configuration files) and then the database.

The backed-up information will be stored at the DataMigration\Data\vc location, as shown in the following screenshot:

What happens when you run the install.bat batch script on the 64-bit Windows machine where you intend to install vCenter 5.1?

On invoking the migration installer script install.bat, it would access the data from the datamigration directory and start verifying it.

If the machine has a different system name when compared to the source machine, then it will indicate the same and will seek your confirmation to continue. In such cases, once the installation is complete, you will have to modify the <url> tag in the XML file to supply a new system name and re-enable the plugins in the vCenter Plugin Manager. The location of the XML file is as follows:

c:\Program files\VMware\Infrastructure\VirtualCenter Server\extensions\plugin-name

Once the data migration has been successfully verified it will call the vCenter Server installer with the backed-up installation data configuration.

You have been reading a chapter from
VMware vSphere 5.1 Cookbook
Published in: Jul 2013
Publisher: Packt
ISBN-13: 9781849684026
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime