How to run Cisco Modeling Labs within the Cloud

0
609
How to run Cisco Modeling Labs within the Cloud


Did you ever wish to run Cisco Modeling Labs however didn’t have the {hardware} or software program to take action? Or have you ever needed to run a topology in your native deployment—however couldn’t since you didn’t have sufficient reminiscence obtainable domestically? What about integrating CML right into a CI/CD pipeline, which incorporates the creation and destruction of all the pipeline, together with CML?

You would possibly suppose one reply to those issues can be to make use of CML within the cloud. And you’d be proper. However, up till just lately, the one supported platforms to run CML have been both on naked metallic servers or on VMware vSphere.

We have heard requests to have CML Software-as-a-Service (SaaS), and we’re working laborious to make this a actuality sooner or later. Our first step on this path is to supply tooling and automation so you possibly can deploy your CML occasion into Amazon Web Services (AWS)! This tooling is accessible as of at this time on GitHub.

Setting expectations

With this primary step of automation and tooling comes just a few limitations, together with:

  • Tooling is presently solely supported on AWS. We’re engaged on making this additionally obtainable on Azure in a subsequent launch.
  • It solely helps an all-in-one deployment. Subsequent releases may embrace deployment of a number of situations to type a CML cluster.
  • This strategy wants a bare-metal taste to help all node sorts. Metal flavors are costlier than virtualized situations; nonetheless, AWS doesn’t help virtualization extensions on their non-bare-metal flavors. This is totally different from Azure.
  • You have to deliver your individual AWS occasion AND your individual CML license. No pay-as-you-go consumption mannequin is accessible as of at this time.
  • CML software program and reference platform recordsdata from the “refplat ISO” have to be made obtainable in a bucket.
  • Automation should run domestically in your laptop, significantly a Linux machine with Terraform.

Due to the character of CML’s perform, the flexibility to run it within the cloud won’t ever be low cost (as in free-tier). CML requires a variety of assets, reminiscence, disk, and CPU, which comes at a price, no matter whether or not you run it domestically in your laptop computer, in your knowledge middle, or within the cloud. The concept behind the cloud is to simplify operation and supply elasticity however not essentially to save cash.

Meeting software program necessities

The software program necessities you’ll have to efficiently use the tooling embrace:

  • a Linux machine (also needs to work on a Mac with the identical packages put in by way of Homebrew)
  • a Bash shell (in case you employ the add instrument, which is a Bash script)
  • a Terraform set up
  • the AWS CLI bundle (awscli with the aws command)
  • the CML software program bundle (.pkg) and the CML reference platform ISO from CCO/cisco.com

An present CML controller satisfies the primary two necessities, and you should utilize that to put in Terraform and the AWS CLI. It additionally has the reference platform recordsdata obtainable to repeat to an AWS S3 bucket. You additionally should obtain the CML distribution bundle from the Cisco help web site and duplicate it to the AWS S3 bucket.

Select the distribution bundle circled within the following screenshot (the model could be totally different, however it ends in .pkg.zip), and also you’ll have to unzip it for the add instrument to acknowledge it

For extra element, consult with the “Upload script” part of the README.md that’s included within the cml-cloud repository.

Getting up and working

Once you’ve put in the necessities and copied the recordsdata, you’ll discover the precise process straight ahead and meticulously documented within the README.md.

Here are the basic steps:

    1. Configure the required S3 bucket, consumer, insurance policies, secrets and techniques, and guidelines by way of AWS console (as soon as).
    2. Upload the binary recordsdata (photos and software program) into the created bucket (as soon as or at any time when new software program is accessible).
    3. Configure the tooling by modifying the config.json file (as soon as).
    4. Run terraform plan adopted by terraform apply to deliver up an occasion
    5. Wait 5-10 minutes for the system to grow to be prepared; the tackle of the controller is offered in consequence (“output” from Terraform)
    6. Use CML within the cloud and revenue!

Once you’re completed, tear down the cloud infrastructure by executing terraform destroy.

Note: While no value is incurred if you find yourself not working CML situations, you’ll nonetheless have to pay for storing the recordsdata contained in the created S3 bucket.

Taking the subsequent steps

While CML AWS automation tooling is a primary step towards CML SaaS, the tooling in its present type won’t suit your wants precisely due to value for bare-metal situations or the present dependency on AWS. Or you may want a pay-as-you-go service or one thing else. Let us know!

Just bear in mind subsequent steps are forward! Stay tuned, and inform us what you suppose within the meantime. We are extraordinarily enthusiastic about how helpful (or not) this primary iteration of cloud tooling is to you and your group and, going ahead, what your particular necessities are. Please attain out to us on the GitHub concern tracker undertaking.

Resources

 

Join the Cisco Learning Network at this time at no cost.

Follow Cisco Learning & Certifications

Twitter | Facebook | LinkedIn | Instagram | YouTube

Use #CiscoCert to affix the dialog.

Share:

LEAVE A REPLY

Please enter your comment!
Please enter your name here