VM-based Setup on ESXi
  • 08 Sep 2023
  • 1 Minute to read
  • Dark
    Light
  • PDF

VM-based Setup on ESXi

  • Dark
    Light
  • PDF

Article summary

About his Article
This article provides environment setup steps for deploying VSP on ESXi VM.


Pre-requisites

Refer the article VM for information on hardware requirements and the list of the ports utilized by VSP components for Network Security group settings.


OVF Deployment

Once the OVA file with the above minimum configuration is procured, follow the steps below to deploy the virtual Machine via VMware vSphere / vCenter Server 

  1. Log in to the VMware vSphere Web Client and navigate to the tab VMs 
  2. Navigate to Actions and click Deploy OVF Template
  3. Select Local file and click UPLOAD FILES to upload the the required OVA file from the local system. Click NEXT
  4. Provide the Virtual Machine Name and select the location for VM deployment. Click NEXT
  5. Select the resource to be utilized for VM deployment. Click NEXT
  6. Review the package information that consists of advanced configuration options. Click NEXT to accept them
  7. Select the required storage location from the datastore list. Select Thin Provision and click NEXT
  8. Select the required destination network from the dropdown list for each source network. Click NEXT
  9. Review the configuration data and click FINISH
  10. The system imports and deploys the OVA file. Once the import is complete, click Refresh to update the system. It is listed in the center pane. Select the VM and click Power On
  11. Once the VM is powered on, click Launch Web Console icon to open the VM in a new window
  12. Once logged in, change the IP Address of the VM (if required)


Installation

  1. Log in to the two newly created machines using SSH and install Docker and Docker Compose using the commands below:
    sudo su
    subscription-manager register --username <username> --password <password> --auto-attach  #Register the machine with the Red Hat subscription to download dependencies
    yum update
    subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-optional-rpms
    yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 
    yum install -y yum-utils device-mapper-persistent-data lvm2
    yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    yum install docker-ce 
    systemctl enable --now docker.service
    curl -L "https://github.com/docker/compose/releases/download/1.29.x/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    chmod +x /usr/local/bin/docker-compose
    mv /usr/local/bin/docker-compose /usr/bin/
    
  2. Verification: Execute the commands below to verify the Docker and Docker Compose versions:
    docker version
    docker-compose version
    


Was this article helpful?