Cisco ACI Simulator

As officially ACI Simulator is not supported on KVM host and I didn't have ESXi in my lab I have decided to do experiment. Moreover I have played with amount of hardware resource necessary for this experiment. If you would like to know result of this experiment, you can proceed and read rest of the post.

At the beginning lets say couple of words about Cisco ACI Simulator or ACISIM. So this is Cisco virtual machine, inside which we can find simulation of two leaf switches, one spine and one Cisco Application Policy Infrastructure Controller (APIC). Actually this is simulation of Data Center leaf spine topology with SDN controller.

Official Cisco ACI Simulator Virtual Machine HW requirements:

HW requirements

To make things more interesting I have reduced HW resources just from the beginning of experiment.😉

And I created setup as below:

HW requirements

So, are you ready to spin ACI Simulator with less than minimum HW resource for release 5.2(4d)? If yes, let's go and see what will happen in the end.😎

Step 1. Download ACI Simulator

Go to Cisco Download Page, please don’t forget that you should have valid Cisco account, otherwise no luck.

Download all eight pieces:

  • acisim-5.2-4d_part1.ova
  • acisim-5.2-4d_part2.ova
  • acisim-5.2-4d_part3.ova
  • acisim-5.2-4d_part4.ova
  • acisim-5.2-4d_part5.ova
  • acisim-5.2-4d_part6.ova
  • acisim-5.2-4d_part7.ova
  • acisim-5.2-4d_part8.ova

Step 2. Concatenate downloaded parts and create QCOW2 image from VMDK

Use Linux cat command to concatenate all 8 parts.

cat acisim-5.2-4d_part1.ova \ 
    acisim-5.2-4d_part2.ova \
    acisim-5.2-4d_part3.ova \
    acisim-5.2-4d_part4.ova \
    acisim-5.2-4d_part5.ova \
    acisim-5.2-4d_part6.ova \
    acisim-5.2-4d_part7.ova \
    acisim-5.2-4d_part8.ova > acisim.ova

Optional check MD5 of acisim.ova VM once when concatenations is done.

md5sum -c aci.md5

Now we have virtual machine with vmdk vHD but we need qocow2 image. So what’s next, we need to untar acisim.ova and we have to convert acisim-5.2-4d-disk1.vmdk to acisim-5.2-4d-disk1.qcow2.

tar -xvf aci.ova

voila finally we have acisim-5.2-4d-disk1.vmdk let’s run one more command and we will have acisim-5.2-4d-disk1.qcow2

qemu-img convert -O qcow2 acisim-5.2-4d-disk1.vmdk path/to/images_folder/acisim-5.2-4d-disk1.qcow2

Step 3. Run ACISIM VM on Ubuntu with KVM hypervisor

Run virt-manger application from desktop UI or If you are using headless server first ssh to server (don't forget to enable x11 forwarding).

  • Once when you run virt-manager command it will appear creation VM setup dialog

Virt-Manager1

  • Please choose like below on print screens.

Virt-Manager2 Virt-Manager3

  • Here you will need to point to folder where you saved acisim.qcow2 image.

Virt-Manager4 Virt-Manager5

  • Let use only 8 vCPUs and 32G of RAM, this is far from recommended by Cisco.

Virt-Manager6 Virt-Manager7

  • Mandatory, please select network adapter type e1000 otherwise later you will not be able to connect to your ACISIM via HTTPS or SSH.
  • To start VM creation press "Begin installation".

Virt-Manager8 Virt-Manager9

  • Between all VMs choose acisim and run.

Virt-Manager10

  • Press OPEN button to access acisim VM console.

Virt-Manager11

  • After 2-3 min (depend about power of your host) it will appear APIC initial screen.

Virt-Manager12

  • Below we can see that we are running Cisco ACI simulator on KVM host and successful start of initial configuration on Cisco APIC.

Virt-Manager13

Short Outcome:

  • If we have insufficient HW resource already in the lab we can reduce number of vCPUs and amount of memory for ACISIM VM.
  • In this Blog post I have used 8x vCPS and 32 GB of RAM below this it will not work.
  • We can use Cisco ACI simulator on KVM host, even if it is not officially supported by vendor.

Enjoy your ACI simulator and happy testing!!!