Deploying Containerized Applications with Nirmata on VMWare vCloud Air

DZone 's Guide to

Deploying Containerized Applications with Nirmata on VMWare vCloud Air

Your step by step instructions for easy container deployment

· Cloud Zone ·
Free Resource

In my previous post, I described how you can deploy containers on your laptop using Nirmata and boot2docker. While deploying containers on your laptop is great for dev/test, you may want to deploy containers on your cloud resources as your application moves through your deployment pipeline. Nirmata makes this extremely easy via its policy based orchestration. The same application can be deployed on your laptop or on any of the supported clouds without any changes.

In this post, I will describe the steps to deploy containerized applications on VMWare vCloud Air.

Setup vCloud Air

Configure VDC

  • Create virtual data center (VDC)create-vdc
  • Add a public IP to the gateway and create a SNAT rule to allow virtual machines created in this VDC communicate with the internetcreate-snat
  • Create firewall rule to allow outbound traffic.create-fw-rule
  • Add DNS Servers to your network. This needs to be done by selecting the network and clicking on “Manage in vCloud Air”.add-vm-to-catalog

Create VM Template

  • Create a VM in your VDC. Select the operating system from the catalog and specify the resources: CPU, Memory, Storage and Network.
  • Note: you need to ensure that the selected operating system support Linux containers

    sudo curl -sSL http://www.nirmata.io/nirmata-host-agent/setup-nirmata-agent.sh | sudo sh -s vcloud
  • To check if Nirmata agent is installed and running, use ‘docker ps’ command:check-agent
  • Now stop the vApp and add the VM template to catalog by selecting ‘Add to Catalog…’ menu item. Make sure ‘Customize VM Settings’ is selected.add-vm-to-catalog
  • Note: Prior to adding the vApp to Catalog, you can edit the VM properties to modify ‘Guest OS Customization’

    Now you are ready to start using the VM template in Nirmata.

    Setup Nirmata

    • In Nirmata, you need to create a cloud provider to allow Nirmata to access vCloud Air via the APIs. Go to Cloud Providers tab and click on Add Cloud Provider to launch the wizard. Select the cloud provider type as vCloud Air and in the Settings tab, provide the ‘Endpoint URL’, ‘Tenant Id’ (Organization name) and the credentials. You can find the Organization name in vCloud Director on Administration->Settings-General page. Click on Next to Validate the account access.create-cloud-provider
    • Next, go to Host Groups section, click on vCloud Air tab and launch the Host Group Wizard.
    • Select the previously created Cloud Provider and on the Settings page, select your VDC, VM template and flavor (VM type) to create the VMs. create-host-group
    • Once the wizard is completed, Nirmata will start creating the VMs based on the selected template.

    Once the VMs start, they will connect to Nirmata SaaS and will be available to deploy applications. Now you can import existing application blueprints to create an application and deploy it to you vCloud Air VMs.


    Take advantage of the $300 credit offered by VMWare vCloud Air to deploy containerized applications using Nirmata today!

    If you are attending VMWorld 2015, come talk to us in the DevOps zone.

    cloud ,containerized applications ,vcloud ,vmware

    Published at DZone with permission of Jim Bugwadia , DZone MVB. See the original article here.

    Opinions expressed by DZone contributors are their own.

    {{ parent.title || parent.header.title}}

    {{ parent.tldr }}

    {{ parent.urlSource.name }}