upgrade vcenter server from 4.1 to 5 - lesysadmin...- 1 or more esxi 4.1 host - several vms running...

Post on 14-Aug-2020

26 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

0

Upgrade

vCenter

Server from

4.1 to 5.5 Manh Luan Vo Blog : www.lesysadmin.com

1

Table of Contents INTRODUCTION ................................................................................................................................................................. 2

Context ......................................................................................................................................................................... 2

Overview of the upgrade plan...................................................................................................................................... 2

Next Steps .................................................................................................................................................................... 2

SQL SERVER 2008 INSTALLATION ...................................................................................................................................... 3

STOP VCENTER SERVER SERVICES ................................................................................................................................... 17

PERFORM SQL DATABASE BACKUP ................................................................................................................................. 19

CREATE THE DB INTO THE NEW SQL SERVER FOR VCENTER ........................................................................................... 22

RESTORE THE OLD DATABASE INTO THE NEW DB SERVER ............................................................................................. 24

INSTALL THE SQL SERVER 2008 NATIVE CLIENT ON VCENTER ........................................................................................ 32

RECREATE THE VPXUSER OF THE RESTORED VCDB DATABASE ....................................................................................... 36

SET UP A NEW SYSTEM DSN ODBC CONNECTOR ............................................................................................................ 39

UNINSTALL THE OLD VCENTER SERVER FOR A CLEAN UPGRADE .................................................................................... 45

INSTALL THE VCENTER SERVER ....................................................................................................................................... 46

Execute the autorun.exe with the vcservice user ID .................................................................................................. 46

Install the vCenter Single Sign-On .............................................................................................................................. 48

Install VMware vSphere Web Client .......................................................................................................................... 54

Install VMware vCenter Inventory Service ................................................................................................................. 61

Install vCenter Server ................................................................................................................................................. 68

INSTALL THE VMWARE VSPHERE CLIENT ........................................................................................................................ 80

CREATE THE NEW VUMDB DATABASE ............................................................................................................................ 85

SET UP THE 32BITS DSN ODBC CONNECTOR FOR VUM .................................................................................................. 87

INSTALL VSPHERE UPDATE MANAGER ............................................................................................................................ 92

CONNECT TO THE VCENTER AND PERFORM VERIFICATIONS........................................................................................ 100

CONNECT TO THE VCENTER WEB CLIENT AND PERFORM VERIFICATIONS ................................................................... 102

Access to the Web Client ......................................................................................................................................... 102

Install Adobe Flash Player ........................................................................................................................................ 102

Install the Client Integration Plug-in via the Web Client .......................................................................................... 102

Log into the vSphere Web Client using the SSO administrator user ID .................................................................... 107

Verify/create new SSO permissions ......................................................................................................................... 109

Verify vCenter permissions ...................................................................................................................................... 111

INSTALL VCENTER UPDATE MANAGER CLIENT ............................................................................................................. 113

2

INTRODUCTION

Context The lab is hosting an old VMware ESXi 4.1 infrastructure, containing:

- 1 vCenter Server 4.1 - 1 SQL Server 2005 containing the vCenter and VUM databases - 1 or more ESXi 4.1 Host - Several VMs Running on the ESXi host

The old vCenter needs to be upgraded to the 5.5 version, as the 4.1 version is obsolete and presents security vulnerability risks (not supported by VMware any longer, no patch release)

Overview of the upgrade plan - Install new VM with a new version of SQL Server (2008) - Backup old DB from the old SQL Server (2005) - Restore old DB to new SQL Server (2008) - Uninstall old vCenter 4.1 - Install vCenter 5.5 components - Install vSphere Client 5.5 - Install VUM 5.5 - Configure vSphere Web Client - Configure permissions

Next Steps - Upgrade ESXi hosts - Upgrade VMware Tools on VMs - Upgrade VM Hardware version

3

SQL SERVER 2008 INSTALLATION

Create a new VM to install the new version of SQL Server 2008 Insert the CD or mount it, then execute the autorun.exe Choose “New SQL Server stand-alone installation or add features to an existing installation”

Follow the instructions on the screen

4

The scan is completed, if all green, click OK

Enter the product key for activation

5

Accept the license terms, click Next

6

Click Install to continue

7

Once the installation of the support files is completed, the installation wizard will do other checks

verifying requirements compliance, if all Green, click Next

Select all, and click Next

8

Leave the default settings, click Next

9

Review the disk space requirements and click Next

If you do not have SQL server service user ID, select the SYSTEM user for all the services, excepted for the

SQL Server Integration Services you can leave the default NETWORK SERVICE user ID. Click Next

10

Select Mixed Mode authentication and create the password for the “sa” user Specify other SQL administrator by selecting some local system user ID/group, click Next

11

Do the same for the Analysis Services

12

Leave the default for the Reporting Services, click Next

Leave the default settings, and click Next

13

If the installation pre-check shows all Green, click Next

14

Review the features to install, and click Install

15

Once the installation is completed, it should show all Green, click Next

Review the supplemental information and click Close

16

17

STOP VCENTER SERVER SERVICES Access to the services.msc tool and stop the “VMware VirtualCenter Server” services

Click Yes to confirm stopping the other related services

Also stop the VUM Services

18

19

PERFORM SQL DATABASE BACKUP Access to the old SQL Server Management Studio, login with the “sa” credentials and find the VCDB database.

Right click on the database, choose Tasks, then Back Up…

20

In the General tab, select the options as below, make sure the backup type is Full and you can select a

specific destination folder.

In the Options tab, you can set a new backup media set, see below Click OK to perform the backup

21

22

CREATE THE DB INTO THE NEW SQL SERVER FOR VCENTER Go to the vCenter Server 5.5 installation media, then find under the folder vCenter-Server\dbschema the DB and Schema creation scripts for MSSQL, read the text file

Go back to the SQL Server 2008, then login as “sa”

Click on New Query

Use the script below to create the DB, DO NOT FORGET TO DOUBLE CHECK THE VPXUSER (this will be the

VCDB admin user), you must specify a specific folder location for the DB files and a new password for that

user :

23

use [master] go CREATE DATABASE [VCDB] ON PRIMARY (NAME = N'vcdb', FILENAME = N'C:\VCDB.mdf' , SIZE = 3000KB , FILEGROWTH = 10% ) LOG ON (NAME = N'vcdb_log', FILENAME = N'C:\VCDB.ldf' , SIZE = 1000KB , FILEGROWTH = 10%) COLLATE SQL_Latin1_General_CP1_CI_AS go use VCDB go sp_addlogin @loginame=[vpxuser], @passwd=N'vpxuser', @defdb='VCDB', @deflanguage='us_english' go ALTER LOGIN [vpxuser] WITH CHECK_POLICY = OFF go CREATE USER [vpxuser] for LOGIN [vpxuser] go CREATE SCHEMA [VMW] go ALTER USER [vpxuser] WITH DEFAULT_SCHEMA =[VMW] go sp_addrolemember @rolename = 'db_owner', @membername = 'vpxuser' go use MSDB go CREATE USER [vpxuser] for LOGIN [vpxuser] go sp_addrolemember @rolename = 'db_owner', @membername = 'vpxuser' go

24

RESTORE THE OLD DATABASE INTO THE NEW DB SERVER Copy the DB backup file to the new SQL server Open the SQL Server 2008 Management Studio

Log in as “sa”

Right click on the Database you want to restore, here VCDB and choose “Task > Restore > Database…”

25

Select “From device” and click on “…”

Choose “File” backup media and click Add

26

Browse the directories and find the DB backup file, select the file and click OK

27

Click OK to confirm again

28

Tick the case “Restore” near the selected DB backup set

29

In the Options tab, select “Overwrite the existing database (WITH REPLACE)” Click OK to perform the Backup restoration

30

31

Once completed, you receive this message

32

INSTALL THE SQL SERVER 2008 NATIVE CLIENT ON VCENTER You can download the client via this link https://www.microsoft.com/en-us/download/details.aspx?id=27596 Or you can find it in the Installation media under “SQL Server Enterprise 2008 CD”\x64\Setup\x64 Open the sqlncli.msi

Follow the information on the screen, click Next

Accept the license terms, click Next

33

Input the required information, click Next

Leave the default settings, click Next

34

Click Install

35

The installation is completed

36

RECREATE THE VPXUSER OF THE RESTORED VCDB DATABASE After restoration of the DB, the old VPXUSER is different to the newly created one, so you need to delete the vpxuser ID from the VCDB Database Under the VCDB database, go to Security > Users > vpxuser Right click on the user and choose Delete

Under Security directory > Logins Right click on the vpxuser ID and choose Properties

37

In the User mapping tab, select the VCDB and msdb databases, both of them needs to have vpxuser under “User” and dbo under “Default Schema” Each of them also need to have the db_owner role membership Click OK to confirm

38

The vpxuser is remapped to the VCDB database

39

SET UP A NEW SYSTEM DSN ODBC CONNECTOR Under Control Panel > All Control Panel Items > Administrative Tools Open the Data Sources (ODBC)

You can see the old DSN Connector, leave it and create a new one Click Add…

40

Select the new SQL Server Native Client 10.0, click Finish

Give it a new name, description and specify the new SQL Server FQDN or IP address Click Next

41

Select “With SQL Server authentication using a login ID and password entered by the user” Enter the vpxuser and its password, click Next

42

Select “Change the default database to:”, VCDB Click Next

Click Finish

43

Click Test Data Source…

Tests are successful, click OK

The new DSN ODBC Connector is now showing in the list, click OK

44

45

UNINSTALL THE OLD VCENTER SERVER FOR A CLEAN UPGRADE As per VMware best practices documentation, it is better to reinstall the vCenter server, though they say that it works to upgrade directly, they suggest a clean installation to avoid performance and stability issues. Go to Control Panel > All Control Panel Items > Program and Features Uninstall the VMware vCenter Server, the VMware vCenter Update Manager, and the VMware vCenter Update Manager Client

Once uninstalled, restart the Operating System.

46

INSTALL THE VCENTER SERVER

Execute the autorun.exe with the vcservice user ID

Enter the vcservice credentials

47

Access to the Custom Install and read the content

48

Install the vCenter Single Sign-On Under vCenter Single Sign-On tab, click Install Follow the instructions on the screen, click Next

Accept the License terms, click Next

49

Review the prerequisites check, remediate them and click Next

Select “vCenter Single Sign-On for your first vCenter Server”, click Next

50

Note the Domain Name and User name, create and confirm the SSO Administrator password Click Next

Give a name to the Site, click Next

51

Leave the default port, click Next

Click Next

52

Review the install options, click Install

53

vCenter SSO installation is completed

54

Install VMware vSphere Web Client Under vSphere Web Client, click Install

Choose the language

55

Follow the instructions on the screen and click Next

Accept the license terms, click Next

56

Click Next

Leave the default ports, click Next

57

Input the SSO administrator credentials and click Next

Click Yes to accept the SSL fingerprint

58

Click Install Certificates

Click Install

59

Installation is completed

60

61

Install VMware vCenter Inventory Service Under vCenter Inventory Service, click Install

Choose the language

62

Follow the instructions and click Next

Accept the license terms, click Next

63

Click Next

Enter the FQDN or IP address and click Next

64

Leave the default ports, click Next

Choose the Inventory Size, click Next

65

Enter the SSO administrator credentials, click Next

Accept the SSL fingerprint, click Yes

66

Click Install

67

Installation is completed

68

Install vCenter Server Under vCenter Server, click Install

Choose the language

Follow the instruction on the screen, click Next

69

Accept the license terms, click Next

Enter the license key, click Next

70

Choose the new DSN ODBC connector, click Next

Enter the vpxuser and password, click Next

71

Review the alert, note them down, click OK

Go under C:\ProgramData\VMware\VMware VirtualCenter\ Make a copy of the SSL folder to any secured location

72

Select Upgrade existing vCenter Server database Select that “I have taken a backup of the existing vCenter Server database and SSL certificates Click Next

Select Automatic, click Next

73

Enter the vCenter service user credentials

Leave the default ports and click Next

74

Choose the Inventory Size and click Next

Enter the SSO administrator credentials and click Next

75

Click Yes to accept the SSL fingerprint of the SSO Lookup Service leaf certificate

Review and confirm the SSO administrator, click Next

76

Depending on what you have given during the Inventory service installation, input the FQDN or IP address here with its port

Click Next

77

Click Install

78

Installation is completed

79

80

INSTALL THE VMWARE VSPHERE CLIENT Under VMware Sphere Client, click Install

Choose the language

81

Follow the instructions on the screen, click Next

Accept the license terms, click Next

82

Click Next

Click Install

83

Installation is completed.

84

85

CREATE THE NEW VUMDB DATABASE In the SQL Server Management tool, connect as “sa” Right click on Databases and choose “New Database…”

Give a name to the database, VUMDB, and select the owner “vpxuser”

In the Options tab, select Simple for the Recovery Model and click OK

86

87

SET UP THE 32BITS DSN ODBC CONNECTOR FOR VUM Under vSphere Update Manager, click on “%windir%\syswow64\odbcad32.exe” to create a 32bits DSN ODBC connector

You can see the old DSN for VUM. Leave it and click Add…

88

Select the SQL Server Native Client 10.0

Enter the Name, description and SQL server FQDN or IP address Click Next

89

Select “With SQL Server authentication using a login ID and password entered by the user” Enter the vpxuser and password

Select “Change the default database to:” and choose the VUMDB database

90

Click Next

Click Finish

Click on Test Data Source…

91

Tests completed successfully.

92

INSTALL VSPHERE UPDATE MANAGER Under vSphere Update Manager, click Install

Choose the language

93

Follow the instructions on the screen and click Next

Accept the License terms, click Next

94

Leave the default settings, click Next

Input the required information and the vCenter service user ID/Password, click Next

95

Choose the newly created DSN, click Next

Enter the DB owner user ID/Password, click next

96

Leave the default, click Next

Click Next

97

Click OK

Click Install

98

Installation is completed

99

100

CONNECT TO THE VCENTER AND PERFORM VERIFICATIONS Use the vSphere Client to connect to the vCenter and perform verifications

vCenter server is upgraded successfully, hosts are connected and inventory is loaded

101

102

CONNECT TO THE VCENTER WEB CLIENT AND PERFORM VERIFICATIONS

Access to the Web Client

Click on Continue to this website (not recommended)

Install Adobe Flash Player Install Adobe Flash Player via this link https://get.adobe.com/flashplayer/

Install the Client Integration Plug-in via the Web Client Click on the link on the bottom of the page “Download the Client Integration Plug-in”

103

Click Run

Click Yes

104

Close the browsers and click Retry

Click Next

105

Accept the license terms and click Next

Click Next

Click Install

106

Click Finish

107

Log into the vSphere Web Client using the SSO administrator user ID https://vcenter-IP-or-FQDN:9443/

Click Allow to allow the Integration plug-in to run

If you receive this message, click Allow to permit flash to store information on the server

108

Click Yes to reload

Enter the SSO administrator credentials

You have now access to the vCenter Web Client

109

Verify/create new SSO permissions Under Administration

Verify the roles under Access Control

110

Verify the Password Policies and Identity Sources under Single Sign-On > Configuration

Under Identity Sources, you can set up the Active Directory integration

111

Verify vCenter permissions Under vCenter on the left panel

112

Go to vCenter Servers

Click on the vCenter Server Go to Manage tab > Permission Manage the vCenter permissions from this menu

113

INSTALL VCENTER UPDATE MANAGER CLIENT In the vSphere Client, connected to the vCenter Under Plug-ins > Manage Plug-ins…

Click on download and install for “VMware vSphere Update Manager 5.5.0”

Click Run

Choose the language

114

Follow the instructions, click Next

115

Accept the license terms, click Next

Click Install

116

Click Yes to confirm

117

Installation completed

The plug-in is successfully installed and Enabled.

118

You can now access the VUM tab

top related