ASA 8.4(2) under OSX 10.8

One of my most popular blogs on Cisco Inferno is the ability to install and run an ASA firewall by Cisco on GNS3. Since then I have shifted to a Macbook Pro and want to run everything in OSX. I have been using GNS3 inside a Windows VM for a while but that is a waste of resource and more. I have yearned for lack of a better word for a way to run everything natively in OSX. Today is the day I share with you how to do this. The requirements are as follows.

  • A working ASA 8.4 image – (extracted as per previous ASA post)
  • OSX 10.8 – (I’ve tested this but 10.7 may work)
  • QEMU 11.0 
  • GNS3 0.8.4RC2 

Download and install GNS3 from Sourceforge. This is the latest version from May. It will update the look, feel, and importantly some behind the scenes features. This is rather straight forward.
Next it is time to download the modified QEMU 11.0. Install this self extracting QEMU instance. It is pre-compiled and works with OSX 10.8. It has been patched to support JUNOS devices too.

Now set the path to QEMU as the value below.

/usr/local/bin/QEMU-system-i386

Set your path to the Qemu-img to what is listed below.

/usr/local/bin/qemu-img

So now you have directed GNS3 to the QEMU install you extracted previously, now test. Your results should look like they do below.

Screen Shot 2013-05-12 at 5.09.25 PM

Now jump over to the ASA tab. This version of GNS3 has better support for QEMU instances. It actually pre populates fields. From the first drop down menu, Preconfiguration, ensure ASA 8.4(2) is selected. I set my RAM to 1024. Note QEMU options and Kernel command line options are filled. Unlike previously where you had to define them, GNS3 now does this for you.

Screen Shot 2013-05-12 at 5.08.54 PM

Now time to select your ASA images.

Initrd

/Users/pandom_/Documents/GNS3/Images/asa842-initrd.gz

ASA Kernel

/Users/pandom_/Documents/GNS3/Images/asa842-vmlinuz

Voila. Now click save and close the preferences pane. Select from the side tab of devices, Security Devices, and drag onto your canvas an ASA firewall. Click the play button and watch it start up. You will have two QEMU windows open. These may appear as not responding but whilst they are open, your ASA runs. If you do close them the ASA will disable itself and turn off so do not do this

Screen Shot 2013-05-12 at 5.43.50 PM

Here it is. My final topology. Connect to them all via console (left of the play button) and enjoy the study.

6 thoughts on “ASA 8.4(2) under OSX 10.8”

  1. Hey,

    have you found any way on OS X to connect from your Mac via TUN/TAP to the ASA or to a router if you are not admin but a regular user?

    James

  2. I am receiving the following error when I try to put up the interfaces
    ciscoasa(config-if)# no shutdown
    Failed to change interface status: cannot get channel

    Any suggestions on what to do?

    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *


*