Installing XClarity Management Hub for edge-client devices (ESXi using VMware vCenter Client)
Set up the Lenovo XClarity Management Hub virtual appliance in a VMware vCenter Client on an ESXi host.
Procedure
To install the XClarity Management Hub virtual appliance, complete the following steps.
(Optional) Using an installation script
You can create a script, such as the following example, to install the XClarity Management Hub virtual appliance using the VMware ovftool (version 4.2.0 or later). You must include the following parameters in the script
- prop:guestinfo.ipv4.bootproto. The IPv4 boot protocol. This can be dhcp or static.
- prop:guestinfo.ipv4.dns1. Domain name space
- prop:guestinfo.ipv4.gateway. Gateway address
- prop:guestinfo.ipv4.ipaddr. IPv4 address
- prop:guestinfo.ipv4.netmask. Netmask
- prop:guestinfo.ipsetting. Indicates whether to set the IP address. This can be yes or no.
- prop:guestinfo.ipv6.bootproto. The IPv4 boot protocol. This can be auto, dhcp or static.
- prop:guestinfo.ipv6.ipaddr. IPv6 address
#!/bin/bash
# XCLARITY virtual appliance ova file name
LXCA_OVA="lnvgy_sw_lxca_331-2.0.0_vmware_x86-64.ova"
# ESXi IP, ID and Password
ESXI_HOST="1.2.3.4"
ESXI_USERNAME="userid"
ESXI_PASSWORD="userpasswd"
# ESXi virtual switch and datastore to store the
# XClarity virtual appliance
ESXI_VM_NETWORK="VM Network"
ESXI_VM_DATASTORE="datastore2"
# XCLarity ETH0 static ip info
IPV4_BOOTPROTO="static"
LXCA_VMNAME="lxca-vm"
LXCA_DEPOPT="small"
LXCA_OVERWR="--overwrite"
LXCA_HOSTNAME="dt.labs.lenovo.com"
LXCA_IP="1.2.3.5"
LXCA_NETMASK="255.255.240.0"
LXCA_GATEWAY="1.2.0.1"
LXCA_DNS="1.2.0.10"
LXCA_CHGIP="yes"
LXCA_IP6="0::0"
IPV6_BOOTPROTO="auto"
##### Using ovftool version 4.2.0 ###
##### '--X:injectOvfEnv' and '--powerOn' are the key parameters
/usr/bin/ovftool --acceptAllEulas --X:waitForIp --skipManifestCheck ${LXCA_OVERWR}
--X:injectOvfEnv --powerOn "--net:bridged=${ESXI_VM_NETWORK}"
--datastore=${ESXI_VM_DATASTORE} --diskMode=thin --name=${LXCA_VMNAME}
--deploymentOption=${LXCA_DEPOPT}
--prop:guestinfo.ipv4.bootproto=${IPV4_BOOTPROTO}
--prop:guestinfo.ipv4.dns1=${LXCA_DNS}
--prop:guestinfo.ipv4.gateway=${LXCA_GATEWAY}
--prop:guestinfo.ipv4.ipaddr=${LXCA_IP}
--prop:guestinfo.ipv4.netmask=${LXCA_NETMASK}
--prop:guestinfo.ipsetting=${LXCA_CHGIP}
--prop:guestinfo.ipv6.bootproto=${IPV6_BOOTPROTO}
--prop:guestinfo.ipv6.ipaddr=${LXCA_IP6} ${LXCA_OVA}
"vi://${ESXI_USERNAME}:${ESXI_PASSWORD}@${ESXI_HOST}/"
if [[ "$?" -eq 0 ]]; then
exit 0
else
exit 999
fi
[root@localhost dtest]# ./depl.sh
Opening OVA source: lnvgy_sw_lxca_331-2.0.0_vmware_x86-64.ova
Opening VI target: vi://root@1.2.3.4:443/
Deploying to VI: vi://root@1.2.3.4:443/
Transfer Completed
Powering on VM: lxca-vm
Task Completed
Received IP address: 1.2.3.5
(Optional) Using a configuration file to set the IP settings
If you are not using a DHCP server, you can optionally use a configuration file to specify the IP settings that you want to use to access the XClarity Management Hub web interface using the Eth0 network interface.
The configuration file (eth0_config) is contained in an ISO file that you create and mount to the virtual machine before XClarity Management Hub is started for the first time. When the XClarity Management Hub starts the first time, it configures the IP address for the Eth0 network using the static IP address that is defined in the eth0_config file and displays the web interface to set up initially and configure the appropriate settings (see Configuring the XClarity Management Hub for edge-client devices).
To use a configuration file, perform the following steps before powering on the virtual appliance.
- Create a file named eth0_config (with no file extension) that contains the following IPv4 parameters that you want the virtual machine to use at startup.
- IPV4_ADDR=
- IPV4_NETMASK=
- IPV4_GATEWAY=
- IPV6_ADDR=
- IPV6_GATEWAY=
You can use the echo command to create the file, for example:ECHO IPV4_ADDR=1.1.1.1 > ./eth0_config
ECHO IPV4_NETMASK=255.255.255.05 >> ./eth0_config
ECHO IPV4_GATEWAY=1.1.1.5 >> ./eth0_config
ECHO IPV6_ADDR=1001:1002:1003:1004::2 >> ./eth0_config
ECHO IPV6_GATEWAY=1001:1002:1003:1004::1 >> ./eth0_config - Create an ISO image that contains the eth0_config file.
To create an ISO image on Windows, use your favorite ISO software. On Linux, use the mkisofs command, for example:
mkisofs -V IP4ADDR -J -o ./boot.iso ./eth0_config
where -V is the volume label, -J is for Joliet format, -o is the output file name, and ./eth0_config is the file to be included in the ISO image.
- Upload the ISO image to a suitable location using the Datastore Browser.
- Mount the .ISO image to the virtual machine. The ISO file must reside in the datastore of the ESXi host so that it can be mounted as a CD/DVD drive on the XClarity Management Hub virtual machine.
- Right click the virtual machine, and click Edit Settings.
- Click Add to display the Add Hardware wizard.
- Click CD/DVD Drive, and click Next.
- Select Use ISO image, and click Next.
- Select the ISO image, and click Next.
- Select the virtual device node, and click Next.
- Click Finish.
NoteYou can unmount the drive and delete the ISO image after you log in to theXClarity Management Hub web interface and finish configuring the appropriate settings.
After you finish
Log in and configure XClarity Management Hub (see Configuring the XClarity Management Hub for edge-client devices).