cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4438
Views
1
Helpful
0
Comments
Orf Gelbrich
Cisco Employee
Cisco Employee
Task Name


1) Build ESXi server

2) Create new vCenter from ISO

3) Add vCenter to new ESXi host

4) register with UCSD


Description
Prerequisites
  1. Tested on 6.5
CategoryWorkflow
Components
User Inputs
Output

Instructions for Regular Workflow Use:

  1. Download the attached .ZIP file below to your computer. *Remember the location of the saved file on your computer.
  2. Unzip the file on your computer. Should end up with a .WFD file.
  3. Log in to UCS Director as a user that has "system-admin" privileges.
  4. Navigate to "Policies-->Orchestration" and click on "Import".
  5. Click "Browse" and navigate to the location on your computer where the .WFD file resides. Choose the .WFD file and click "Open".
  6. Click "Upload" and then "OK" once the file upload is completed. Then click "Next".
  7. Click the "Select" button next to "Import Workflows". Click the "Check All" button to check all checkboxes and then the "Select" button.
  8. Click "Submit".
  9. A new folder should appear in "Policies-->Orchestration" that contains the imported workflow. You will now need to update the included tasks with information about the specific environment.

1) This example creates a ESXI host with a 500 GB boot lun and datasore

2) It creates a new vCenter onto the new ESXi server

3) The new vCenter account is added to UCSD

4) The vCenter adds the new ESXi host into a newly created datacenter within

5) workflow runs in about 47 minutes

Prerequisite:

The ISO for vcenter has to be in /tmp on the UCSD appliance (use scp or ftp):

Screen Shot 2017-09-22 at 6.44.40 AM.png

Main workflow:

Screen Shot 2017-09-22 at 6.33.20 AM.png

Workflow input:

Screen Shot 2017-09-22 at 6.34.23 AM.png

Workflow execution:

Screen Shot 2017-09-22 at 6.35.09 AM.png

Workflow tasks:

workflow_296.png

Compound task/ workflow to create the vCenter server:

Screen Shot 2017-09-22 at 6.35.49 AM.png

workflow_297.png

Compound task to check for port 443:

Screen Shot 2017-09-22 at 6.36.08 AM.png

workflow_295.png

The custom task in this workflow:

Screen Shot 2017-09-22 at 6.38.18 AM.png

The ssh task to create the vCenter XML file (notice it contains a few UCSD variables):

echo '{ ' > /tmp/b

echo '    "__version": "2.3.0", ' >> /tmp/b

echo '   "__comments": "Sample template to deploy a vCentern on ESXi host.", ' >> /tmp/b

echo '    "new.vcsa": {' >> /tmp/b

echo '        "esxi": {' >> /tmp/b

echo '            "hostname": "${IP_ESXi_HOST}",' >> /tmp/b

echo '            "username": "root",' >> /tmp/b

echo '            "password": "password@123",' >> /tmp/b

echo '            "deployment.network": "VM Network",' >> /tmp/b

echo '            "datastore": "datastore1"' >> /tmp/b

echo '        },' >> /tmp/b

echo '        "appliance": {' >> /tmp/b

echo '            "thin.disk.mode": true,' >> /tmp/b

echo '            "deployment.option": "small",' >> /tmp/b

echo '            "name": "DemovCenter-${SR_ID}"' >> /tmp/b

echo '        },' >> /tmp/b

echo '        "network": {' >> /tmp/b

echo '            "ip.family": "ipv4",' >> /tmp/b

echo '            "mode": "static",' >> /tmp/b

echo '            "ip": "${IP_vCENTER}",' >> /tmp/b

echo '            "dns.servers": [' >> /tmp/b

echo '                "8.8.8.8"' >> /tmp/b

echo '            ],' >> /tmp/b

echo '            "prefix": "24",' >> /tmp/b

echo '            "gateway": "172.16.50.254",' >> /tmp/b

echo '            "system.name": "${IP_vCENTER}"' >> /tmp/b

echo '        },' >> /tmp/b

echo '        "os": {' >> /tmp/b

echo '            "password": "Password@123",' >> /tmp/b

echo '            "ssh.enable": true' >> /tmp/b

echo '        },' >> /tmp/b

echo '        "sso": {' >> /tmp/b

echo '            "password": "Password@123",' >> /tmp/b

echo '            "domain-name": "demo.local",' >> /tmp/b

echo '            "site-name": "demo"' >> /tmp/b

echo '        }' >> /tmp/b

echo '    },' >> /tmp/b

echo '    "ceip": {' >> /tmp/b

echo '        "description": {' >> /tmp/b

echo '            "__comments": [' >> /tmp/b

echo '                "++++VMware Customer Experience Improvement Program (CEIP)++++",' >> /tmp/b

echo '                "VMware's Customer Experience Improvement Program (CEIP) ",' >> /tmp/b

echo '                "provides VMware with information that enables VMware to ",' >> /tmp/b

echo '                "improve its products and services, to fix problems, ",' >> /tmp/b

echo '                "and to advise you on how best to deploy and use our ",' >> /tmp/b

echo '                "products. As part of CEIP, VMware collects technical ",' >> /tmp/b

echo '                "information about your organization s use of VMware ",' >> /tmp/b

echo '                "products and services on a regular basis in association ",' >> /tmp/b

echo '                "with your organization s VMware license key(s). This ",' >> /tmp/b

echo '                "information does not personally identify any individual. ",' >> /tmp/b

echo '                "",' >> /tmp/b

echo '                "Additional information regarding the data collected ",' >> /tmp/b

echo '                "through CEIP and the purposes for which it is used by ",' >> /tmp/b

echo '                "VMware is set forth in the Trust  Assurance Center at ",' >> /tmp/b

echo '                "http://www.vmware.com/trustvmware/ceip.html . If you ",' >> /tmp/b

echo '                "prefer not to participate in VMware s CEIP for this ",' >> /tmp/b

echo '                "product, you should disable CEIP by setting ",' >> /tmp/b

echo '                "'ceip.enabled': false. You may join or leave VMware s ",' >> /tmp/b

echo '                "CEIP for this product at any time. Please confirm your ",' >> /tmp/b

echo '                "acknowledgement by passing in the parameter ",' >> /tmp/b

echo '                "--acknowledge-ceip in the command line.",' >> /tmp/b

echo '                "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"' >> /tmp/b

echo '            ]' >> /tmp/b

echo '        },' >> /tmp/b

echo '        "settings": {' >> /tmp/b

echo '            "ceip.enabled": false' >> /tmp/b

echo '        }' >> /tmp/b

echo '    }' >> /tmp/b

echo '}' >> /tmp/b

The ssh task to create the actual vCenter:

mkdir /mnt/iso

mount -t iso9660 -o loop /tmp/VMware-VCSA-all-6.5.0-5973321.iso /mnt/iso

echo "echo 1 | /mnt/iso/vcsa-cli-installer/lin64/vcsa-deploy install -v --accept-eula /tmp/b" > /tmp/c${SR_ID}

chmod +x /tmp/c${SR_ID}

nohup /tmp/c${SR_ID} >/tmp/vcenterinstall.out${SR_ID} 2>&1 &

New ESXi server with new vCenter:

Screen Shot 2017-09-22 at 6.59.47 AM.png

The stats on the new ESXi server:

Screen Shot 2017-09-22 at 7.00.17 AM.png

Screen Shot 2017-09-22 at 7.18.29 AM.png

Screen Shot 2017-09-22 at 7.20.52 AM.png

Screen Shot 2017-09-22 at 7.36.06 AM.png

Log file on UCSD (Localhost):

[root@localhost tmp]# cat vcenterinstall.out355

nohup: ignoring input

The following arguments were set on the command line: {'accept_eula': True,

'verbose': True, 'ovftool_helper': <class 'install.OvftoolHelperInstall'>,

'log_dir': u'/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV', 'template':

'/tmp/b', 'sub_command': 'install', 'config_parser': <class

'install.ConfigParserInstall'>}

The installer version 2.3.0.5539464, built-in component versions: OpenSSL

1.0.2k-fips  26 Jan 2017, 2.7.13, OpenSSL 1.0.2k-fips  26 Jan 2017, is running

on the operating system

Linux-2.6.32-642.15.1.el6.x86_64-x86_64-with-centos-6.7-Final.

Execution Details:

[1] Result and Log File Information

[2] Template Syntax Validation

[3] Template Verification

[4] Gather Requirements

[5] Prechecks

[6] OVF Tool Execution

[7] Service Installation

[8] vCenter Service Configuration

[9] vCenter Server Deployment Summary

=========== [1] Result and Log File Information started at 11:57:32 ===========

Following result and log files will be generated...

The vCenter Server Appliance installer result file:

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer.json The

vCenter Server Appliance installer log file:

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer.log The vCenter

Server Appliance installer metadata file:

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer-metadata.json

The vCenter Server Appliance installer status file:

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer-status.json The

generated template file:

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/generated_install.json

============== [2] Template Syntax Validation started at 11:57:32 ==============

Validating json template syntax...

CEIP is not enabled because the template key 'ceip.enabled' in section 'ceip',

subsection 'settings' was set to 'false'.

Template syntax validation completed successfully.

================ [3] Template Verification started at 11:57:32 ================

Verifying template...

Checking section 'new.vcsa'

    Checking subsection 'vc'

    Checking subsection 'network'

Validating the IP address '172.16.50.15' with IP family 'ipv4'

        Key 'ip' is valid.

Validating the IP family 'ipv4' with the ESXi hostname '172.16.50.88'

        Key 'ip.family' is valid.

        Key 'system.name' is valid.

Validating the prefix '24' with IP family 'ipv4', mode 'static'

        Key 'prefix' is valid.

        Key 'mode' is valid.

Validating the IP address '8.8.8.8' with IP family 'ipv4'

        Key 'dns.servers' is valid.

Validating the IP address '172.16.50.254' with IP family 'ipv4'

        Key 'gateway' is valid.

    Checking subsection 'esxi'

        Key 'username' is valid.

        Key 'hostname' is valid.

        Key 'deployment.network' is valid.

        Key 'datastore' is valid.

        Key 'password' is valid.

        Key 'port' is valid.

    Checking subsection 'ovftool.arguments'

    Checking subsection 'appliance'

        Key 'deployment.option' is valid.

        Key 'name' is valid.

        Key 'ovftool.path' is valid.

        Key 'thin.disk.mode' is valid.

    Checking subsection 'sso'

        Key 'site-name' is valid.

        Key 'domain-name' is valid.

        The 'new.vcsa sso password' password meets the installation

requirements.

        Key 'password' is valid.

    Checking subsection 'os'

        The 'new.vcsa os password' password meets the installation requirements.

        Key 'password' is valid.

        Key 'ssh.enable' is valid.

Checking section 'ceip'

    Checking subsection 'description'

    Checking subsection 'settings'

If an untrusted SSL certificate is installed on '172.16.50.88', secure

communication cannot be guaranteed. Depending on your security policy, this

issue might not represent a security concern.

The SHA1 thumbprint of the certificate is

'32:BC:04:B5:6A:36:10:71:CB:55:59:99:A9:02:76:55:85:3F:14:69'

Do you accept the thumbprint?

1: Accept and continue.

2: Do not accept and exit.

Template verification completed successfully.

=================================== 11:57:32 ===================================

Starting vCenter Server Appliance installer to deploy "DemovCenter-355"...

This appliance is a vCenter Server instance with an embedded Platform Services

Controller.

================= [4] Gather Requirements started at 11:57:32 =================

Gathering Requirements...

Gathering requirements completed successfully.

=================================== 11:57:32 ===================================

Generating template...

Generated template file at

'/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/generated_install.json' with

user-entered parameters and programmatically determined default values. Use this

file to rerun the script with defaults explicitly set. Passwords have been

removed.

====================== [5] Prechecks started at 11:57:32 ======================

Performing prechecks...

Found datastore 'datastore1' in host 'ClassOrf1.': Capacity = 492.5 GB. Free

space = 491.55 GB. Found non-clustered host 'ClassOrf1.'. Memory size: 256 GB.

Logical CPU (core) count: 32. Hyperthreading is enabled.

Host 'ClassOrf1.': Standalone (non-clustered) host requirements are met.

Checking to see if the target ESXi host is managed by a vCenter Server.

Check target thumbprint: PASS

Check target credentials: PASS

Check Target vCenter Server appliance name: PASS

Check system type: PASS

Check target ESXi host or vCenter version: PASS

Check for OVA property availability: PASS

Check the host's configurations against the vCSA's CPU, memory and datastore

size requirements: PASS

Check VC management status of ESXi containers: PASS

Check target datastore free space: PASS

Check Single Sign-On Server identity: PASS

Check Single Sign-On Server credentials: PASS

Check whether the Platform Services Controller (PSC) is external: PASS

Basic verification completed successfully.

================== [6] OVF Tool Execution started at 11:57:35 ==================

Running OVF Tool to deploy the OVF...

'--guestinfo.cis.deployment.autoconfig' is set to: True

See /tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer.log for the

OVF Tool logs.

--------------------------------------------------------------------------------

Generated OVF Tool command line:

/mnt/iso/vcsa-cli-installer/lin64/../../vcsa/ovftool/lin64/ovftool

--X:enableHiddenProperties --noSSLVerify --X:injectOvfEnv --acceptAllEulas

--sourceType=OVA --skipManifestCheck

--prop:guestinfo.cis.deployment.autoconfig=True --powerOn

--X:connectionFileTransferRetryCount=3 --allowExtraConfig

--X:logFile=/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer.log

--X:logLevel=verbose --X:logTransferHeaderData --name=DemovCenter-355

--datastore=datastore1 --deploymentOption=small --diskMode=thin --network=VM

Network --prop:guestinfo.cis.deployment.node.type=embedded

--prop:guestinfo.cis.ceip_enabled=False

--prop:guestinfo.cis.vmdir.password=******

--prop:guestinfo.cis.vmdir.site-name=demo

--prop:guestinfo.cis.appliance.net.addr=172.16.50.15

--prop:guestinfo.cis.appliance.net.addr.family=ipv4

--prop:guestinfo.cis.vmdir.domain-name=demo.local

--prop:guestinfo.cis.appliance.net.dns.servers=8.8.8.8

--prop:guestinfo.cis.appliance.net.gateway=172.16.50.254

--prop:guestinfo.cis.appliance.net.mode=static

--prop:guestinfo.cis.appliance.root.passwd=******

--prop:guestinfo.cis.appliance.ssh.enabled=True

--prop:guestinfo.cis.vmdir.first-instance=True

--prop:guestinfo.cis.appliance.net.pnid=172.16.50.15

--prop:guestinfo.cis.appliance.net.prefix=24

/mnt/iso/vcsa-cli-installer/lin64/../../vcsa/VMware-vCenter-Server-Appliance-6.5.0.10000-5973321_OVF10.ova

vi://root:******@172.16.50.88:443

--------------------------------------------------------------------------------

'--guestinfo.cis.deployment.autoconfig' is set to: True

See /tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer.log for the

OVF Tool logs.

OVF Tool: Opening OVA source:

/mnt/iso/vcsa-cli-installer/lin64/../../vcsa/VMware-vCenter-Server-Appliance-6.5.0.10000-5973321_OVF10.ova

OVF Tool: Opening VI target: vi://root@172.16.50.88:443/

OVF Tool: Deploying to VI: vi://root@172.16.50.88:443/

OVF Tool: Disk progress: 99%

OVF Tool: Transfer Completed

OVF Tool: Powering on VM: DemovCenter-355

OVF Tool: Task progress: 59%

OVF Tool: Task Completed

OVF Tool: Completed successfully

Starting to monitor status JSON file at

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/monitor-firstboot-progress-kagi4z.json

================= [7] Service Installation started at 11:59:46 =================

Installing services...

Service Installation: Progress: 5% Setting up storage

Service Installation: Progress: 50% Installing RPMs

Service Installation: Progress: 51% Installed

VMware-jmemtool-6.5.0-5973321.x86_64.rpm

Service Installation: Progress: 54% Installed

VMware-unixODBC-2.3.2.vmw.2-6.5.0.x86_64.rpm

Service Installation: Progress: 55% Installed

vmware-lwis-6.2.0-5776266.x86_64.rpm

Service Installation: Progress: 59% Installed

vmware-certificate-server-6.5.0.2055-5776900.x86_64.rpm

Service Installation: Progress: 60% Installed

vmware-dns-client-1.0.0-5776901.x86_64.rpm

Service Installation: Progress: 66% Installed

applmgmt-cloudvm-6.5.0-5973321.x86_64.rpm

Service Installation: Progress: 76% Installed

VMware-Postgres-client-jdbc-9.4.12.0-5574246.noarch.rpm

Service Installation: Progress: 78% Installed

VMware-mbcs-6.5.0-5973321.x86_64.rpm

Service Installation: Progress: 80% Installed

VMware-vpxd-vctop-6.5.0-5973321.x86_64.rpm

Service Installation: Progress: 82% Installed

vmware-vmrc-6.5.0-5973321.x86_64.rpm

Service Installation: Progress: 84% Installed ipxe-1.0.0-1.4446055.vmw.i686.rpm

Service Installation: Progress: 86% Installed

VMware-sps-6.5.0-5973321.x86_64.rpm

Service Installation: Progress: 88% Installed

vmware-cam-6.5.0.231-5814971.x86_64.rpm

Service Installation: Progress: 90% Installed

vmware-vsm-6.5.0-5973321.x86_64.rpm

Service Installation: Progress: 91% Installed

VMware-perfcharts-6.5.0-5973321.x86_64.rpm

Service Installation: Progress: 95% Configuring the machine

vCenter Server Service installations succeeded.

============ [8] vCenter Service Configuration started at 12:12:15 ============

Configuring services for first time use...

vCenter Service Configuration: Progress: 2% Starting VMware Authentication

Framework...

vCenter Service Configuration: Progress: 5% Starting VMware Identity Management

Service...

vCenter Service Configuration: Progress: 11% Starting VMware Service Lifecycle

Manager...

vCenter Service Configuration: Progress: 17% Starting VMware Component

Manager...

vCenter Service Configuration: Progress: 20% Starting VMware License Service...

vCenter Service Configuration: Progress: 22% Starting VMware Platform Services

Controller Client...

vCenter Service Configuration: Progress: 25% Starting VMware Service Control

Agent...

vCenter Service Configuration: Progress: 28% Starting VMware vAPI Endpoint...

vCenter Service Configuration: Progress: 31% Starting VMware Service Lifecycle

Manager API...

vCenter Service Configuration: Progress: 34% Starting VMware Appliance

Management Service...

vCenter Service Configuration: Progress: 45% Starting VMware Postgres...

vCenter Service Configuration: Progress: 51% Starting VMware vCenter-Services...

vCenter Service Configuration: Progress: 54% Starting VMware Message Bus

Configuration Service...

vCenter Service Configuration: Progress: 58% Starting VMware vSphere Web

Client...

vCenter Service Configuration: Progress: 59% Starting VMware vSphere Web

Client...

vCenter Service Configuration: Progress: 61% Starting VMware vSphere Client...

vCenter Service Configuration: Progress: 62% Starting VMware vCenter Server...

vCenter Service Configuration: Progress: 65% Starting VMware Content Library

Service...

vCenter Service Configuration: Progress: 68% Starting VMware ESX Agent

Manager...

vCenter Service Configuration: Progress: 71% Starting VMware vSphere Auto Deploy

Waiter...

vCenter Service Configuration: Progress: 74% Starting VMware vSphere

Profile-Driven Storage Service...

vCenter Service Configuration: Progress: 77% Starting VMware Update Manager...

vCenter Service Configuration: Progress: 80% Starting VMware vCenter High

Availability...

vCenter Service Configuration: Progress: 82% Starting VMware vSphere

Authentication Proxy...

vCenter Service Configuration: Progress: 85% Starting VMware VSAN Health

Service...

vCenter Service Configuration: Progress: 88% Starting VMware vService Manager...

vCenter Service Configuration: Progress: 91% Starting VMware Image Builder

Manager...

vCenter Service Configuration: Progress: 97% Starting VMware Performance

Charts...

First time configuration succeeded.

========== [9] vCenter Server Deployment Summary started at 12:20:28 ==========

Deployment Summary

=================================== 12:20:28 ===================================

vCenter Server Appliance installer finished deploying "DemovCenter-355".

This appliance is a vCenter Server instance with an embedded Platform Services

Controller.

    System Name: 172.16.50.15

    Log in as: Administrator@demo.local

Finished successfully.

=================================== 12:20:28 ===================================

Result and Log File Information...

The vCenter Server Appliance installer result file:

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer.json The

vCenter Server Appliance installer log file:

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer.log The vCenter

Server Appliance installer metadata file:

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer-metadata.json

The vCenter Server Appliance installer status file:

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/vcsa-cli-installer-status.json The

generated template file:

/tmp/vcsaCliInstaller-2017-09-22-11-57-dNI6QV/generated_install.json

[root@localhost tmp]#







Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links