Skip to content

Instantly share code, notes, and snippets.

@chirauki
Last active December 7, 2016 15:37
Show Gist options
  • Save chirauki/ca9fe8a02b9c5f7a6342d3fed0df44c2 to your computer and use it in GitHub Desktop.
Save chirauki/ca9fe8a02b9c5f7a6342d3fed0df44c2 to your computer and use it in GitHub Desktop.
Deploy VCSA + NSX

Deploy VCSA 6.0

You need the profile json file:

{
    "deployment":
    {
        "esx.hostname":"10.60.1.63",
        "esx.datastore":"ds-ucs-blade-3",
        "esx.username":"root",
        "esx.password":"temporal",
        "deployment.option":"tiny",
        "deployment.network":"nsx-infrastructure",
        "appliance.name":"nsxdev-vc.bcn.abiquo.com",
        "appliance.thin.disk.mode":true
    },

    "vcsa":
    {

        "system":
        {
            "root.password":"somepass",
            "ssh.enable":true,
            "ntp.servers":"0.pool.ntp.org"
        },

        "sso":
        {
            "password":"somepass",
            "domain-name":"vsphere.local",
            "site-name":"vsphere"
        },

        "networking":
        {
            "ip.family":"ipv4",
            "mode":"static",
            "ip":"192.168.100.10",
            "prefix":"24",
            "gateway":"192.168.100.1",
            "dns.servers":"10.60.1.4",
            "system.name":"nsxdev-vc.bcn.abiquo.com"
        }
    }
}

After that:

[root@mirror lin64]# ./vcsa-deploy ~/nsx-dev-vcsa-60.json

Start vCSA command line installer to deploy vCSA "nsxdev-vc.bcn.abiquo.com", an embedded node.

Please see /tmp/vcsa-cli-installer-5wkQrh.log for logging information.

Run installer with "-v" or "--verbose" to log detailed information.

The SSO password meets the installation requirements.
Opening vCSA image: /mirror/images/VMware/6.0/VMware-VCSA-all-6.0.0-2800571/vcsa/vmware-vcsa
Opening VI target: vi://root@10.60.1.63:443/
Deploying to VI: vi://root@10.60.1.63:443/

Progress: 99%
Transfer Completed
Powering on VM: nsxdev-vc.bcn.abiquo.com

Progress: 69%
Power On Completed

Installing services...
Progress: 5%. Setting up storage
Progress: 56%. Installed oracle-instantclient11.2-odbc-11.2.0.2.0.x86_64.rpm
Progress: 60%. Installed vmware-directory-6.0.0.4463-2776531.x86_64.rpm
Progress: 75%. Installed VMware-Postgres-plpython-9.3.5.2-2444648.x86_64.rpm
Progress: 79%. Installed VMware-vpxd-6.0.0-2776510.x86_64.rpm
Progress: 83%. Installed VMware-cloudvm-vimtop-6.0.0-2776510.x86_64.rpm
Progress: 86%. Installed VMware-sps-6.0.0-2776510.x86_64.rpm
Progress: 89%. Installed vsphere-client-6.0.0-2793775.noarch.rpm
Service installations succeeded.

Configuring services for first time use...
Progress: 0%
Progress: 3%. Starting VMware Authentication Framework...
Progress: 11%. Starting VMware Identity Management Service...
Progress: 18%. Starting VMware Component Manager...
Progress: 22%. Starting VMware License Service...
Progress: 25%. Starting VMware Service Control Agent...
Progress: 29%. Starting VMware vAPI Endpoint...
Progress: 33%. Starting VMware System and Hardware Health Manager...
Progress: 37%. Starting VMware Appliance Management Service...
Progress: 44%. Starting VMware Common Logging Service...
Progress: 48%. Starting VMware Postgres...
Progress: 55%. Starting VMware Inventory Service...
Progress: 64%. Starting VMware vSphere Web Client...
Progress: 65%. Starting VMware vSphere Web Client...
Progress: 66%. Starting VMware vSphere Web Client...
Progress: 70%. Starting VMware ESX Agent Manager...
Progress: 74%. Starting VMware vSphere Auto Deploy Waiter...
Progress: 77%. Starting VMware vSphere Profile-Driven Storage Service...
Progress: 81%. Starting VMware Content Library Service...
Progress: 85%. Starting VMware vCenter Workflow Manager...
Progress: 88%. Starting VMware vService Manager...
Progress: 92%. Starting VMware Performance Charts...
Progress: 100%. Starting vsphere-client-postinstall...
First time configuration succeeded.

vCSA installer finished deploying "nsxdev-vc.bcn.abiquo.com", an embedded node:
    System Name: nsxdev-vc.bcn.abiquo.com
    Login as: Administrator@vsphere.local
You have mail in /var/spool/mail/root
[root@mirror lin64]#

Deploy NSX

[root@mirror NSX]# ovftool --allowExtraConfig --acceptAllEulas --skipManifestCheck --X:injectOvfEnv \
    --powerOn --net:VSMgmt=nsx-infrastructure --datastore=ds-ucs-blade-3 --diskMode=thin \
    --name=nsxdev-nsx.bcn.abiquo.com --prop:vsm_cli_passwd_0=pass --prop:vsm_cli_en_passwd_0=pass \
    --prop:vsm_hostname=nsxdev-nsx.bcn.abiquo.com --prop:vsm_ip_0=192.168.100.20 \
    --prop:vsm_netmask_0=255.255.255.0 --prop:vsm_gateway_0=192.168.100.1 --prop:vsm_dns1_0=10.60.1.4 \
    --prop:vsm_domain_0=bcn.abiquo.com --prop:vsm_ntp_0=0.pool.ntp.org --prop:vsm_isSSHEnabled=True \
    --prop:vsm_isCEIPEnabled=False VMware-NSX-Manager-6.2.4-4292526.ova \
    "vi://administrator%40vsphere.local@nsxdev-vc.bcn.abiquo.com/NSXDEV/host/NSXDEV"
Opening OVA source: VMware-NSX-Manager-6.2.4-4292526.ova
The manifest does not validate
Enter login information for target vi://nsxdev-vc.bcn.abiquo.com/
Username: administrator%40vsphere.local
Password: **********
Opening VI target: vi://administrator%40vsphere.local@nsxdev-vc.bcn.abiquo.com:443/NSXDEV/host/NSXDEV
Deploying to VI: vi://administrator%40vsphere.local@nsxdev-vc.bcn.abiquo.com:443/NSXDEV/host/NSXDEV
Transfer Completed
Powering on VM: nsxdev-nsx.bcn.abiquo.com
Task Completed
Warning:
 - ExtraConfig option 'keyboard.typematicMinDelay' is not allowed, will skip it.
 - ExtraConfig options exists in source.
 - Skipping monitor as the --X:waitForIp option is not given.
Completed successfully
[root@mirror NSX]# 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment