Over the last couple of weeks, I’ve been bit by the “Automation Bug”. I want to automate everything. Why? Well, there are two reasons why I want to automate everything I can:
- Remove tedious, mundane, and repetitive tasks. If I can do the same task over and over again, not only do I save time, but I remove any human errors from the equation.
- Abstract the complexities of the tasks at hand. This is very useful when delegating the tasks to personnel who may not fully understand or know the intricacies of the steps.
This week, I’ve started to learn about Cisco’s OnePK software development kit. I won’t go into any reviews of the kit just yet, as I’m still learning and playing with it. There are things that I like, and things that I dislike. The best way to learn it, is to dive in head first. For that, you’ll need Cisco’s All-in-One VM. This is a VM that runs Ubuntu Linux and their vIOS platform. It is prebuilt with a 3-node network, and software needed to start developing, such as Eclipse (with OnePK libraries) for Java and Python development, links to tutorials and documentation, and a few utilities to manage the environment.
My first challenge is that I work from an Apple Mac running Parallels, but the VM download is an OVA file which Parallels doesn’t recognize. These steps are to get the VM into Apple Parallels to run from your Mac.
- Download the All-in-One VM (2.7GB) from Cisco’s website. This will be an OVA file
- Download the OVF Tool from VMware.
- Choose the Mac DMG file.
- Run the installer.
- After install, it will be placed in /Applications/VMware OVF Tool/. Open Terminal and change directory to your downloads folder (or where you saved the Cisco All-in-One VM).
- Execute the following command. Here, I’m running the ovftool with the –lax option. I’m pointing it to the OVA file and calling the new VM “onepk-all-in-one.vmx”
Downloads $ /Applications/VMware\ OVF\ Tool/ovftool --lax ./all-in-one-VM-184.108.40.206.ova ./onepk-all-in-one.vmx
- It will go through the conversion process. It only took a few minutes for me. Once this was done, open Parallels and choose File –> Open. Select the VMX file that was created.
- Parallels will want to convert it to be more efficient. NOTE: It will double your VM size.
- At this point, you can delete the original OVA file, and the interim VMX file.
- After conversion, start up the VM and login. At the time of this writing, the VM login is cisco/cisco123. It will ask you to change your password.
- Once you are logged into the desktop, I highly recommend installing the Parallels tools. It will enhance your display, make mouse-overs easier, and better network bridging. In Parallels, go to “Virtual Machine” –> “Install Parallels Tools”.
- Once the tools folder pops up (it should automatically. If not, browse to the mounted drive). Double-click “install-gui”.
You should now have a running OnePK VM running 3 vIOS routers running in Parallels. Good Luck, and happy lab’ing!