When I tried to find the Cisco ASA simulator by Linux keyword, there are few related results came out. Two popular ways are setting up on Windows QEMU and VMWare. People who are using Windows can refer to that. However, I found that is really useful to install ASA image to QEMU on Linux. I followed the steps and make my own ASA environment. Please note that this solution is not user friendly like dynamips or dynagen.
Select the two ways above maybe a good choice. So, let’s see how it works in my site. We need QEMU first sudo apt-get install qemu We need asa802-k8.bin??? ? We assume that we are working on $ASAWORKSPACE. Under the directory, create an hexadecimal dump of image: hexdump -C asa802-k8.bin asa802-k8.hex Search for the ZIP header. We can see that the ZIP file starts at offset 1228b0. Grep “1f 8b 08 00 1d” asa802-k8.hex 001228b0 1f 8b 08 00 1d 3d 73 46 00 03 ec 3a 6d 54 14 57.=sF:mT.W Find the image size.
Ls -la asa802-k8.bin -rw-r–r– 1 hengdu hengdu 145-01-28 21:27 asa802-k8.bin Now we need to find out where in the file we can start extracting the ZIP part. Echo “14524416; ibase=16; last – 1228B0” bc tail -n 1 13334352 Extract the zipped part of the ASA image: tail -c 13334352 asa802-k8.bin asa802-k8.gz Decompress it with gzip: gzip -d asa802-k8 gzip: asa802-k8.gz: decompression OK, trailing garbage ignored Make a tmp directory and extract the archive with cpio. Mkdir tmp cd tmp sudo cpio -i –no-absolute-filenames –make-directories./asa802-k8.initrd.gz At this point, the Linux kernel files are ready for QEMU to use.
Vmlinux Vmlinuz
Create a virtual hard disk qemu-img create FLASH 256M Formatting ‘FLASH’, fmt=raw size=268435456 Then start QEMU qemu -hda FLASH -kernel asa802-k8.kernel -hdachs 980,16,32 -initrd asa802-k8.initrd.gz -m 512 -nographic -append “console=ttyS0,9600n8 hda=980,16,32 bigphysarea=16384 auto nousb ide1=noprobe” After many lines output, you will see # prompt. Then, we start ASA. /bin/lina Finally, I saw the familiar prompt.
Ciscoasa# So far, I still have some issues to figure it out, such as interface setup and working with my dynamips router. Hopefully I will figure out later time.
Please feel free to join my discussion. Thanks, Tags:, //. Have you generated asa802-k8.initrd.gz and asa802-k8.kernel already? If no, please follow the instruction on the blog. If yes, please launch GNS3, go to menu Edit - Preferences, click on Qemu on left panel.
Click on ASA tab on main panel. Memeory: 256 NIC: e1000 Qemu Options: -hdachs 980,16,32 (Leave two K.
Brower top hatch incubator manual for surehatched. Take a look at our great deals on egg incubators and egg turners.
options unchecked) Initrd: D: asa802-k8.initrd.gz Kernel: D: asa802-k8.kernel Kernel cmd line: auto console=ttyS0,9600 bigphysarea=16384 ide1=noprobe Then, apply the configuration. Drag ASA to you diagram box. Right-click to start. There is a console box shown. Then, right-click the ASA icon to connect to console, your putty is launched by default.
Then, you type in “/asa/bin/lina”. Finally, you accessed to your ASA. Hope it will help some. Hi, new to Ubuntu, but have nearly got this working by simply pasting in the various commands. All the files appear to be available, have created my flash drive, But, am failing at the part where it starts QEMU, after the first line the console returns a prompt, I enter the second line, get another , after hitting return on the 3rd line i get the following: pciaddoptionrom: failed to find romfile “pxe-rtl8139.bin” I’ve no idea what this means, HELP!!
One question, when using a router in GNS3 i simply put the correct IOS into the image file, tell GNS3 to use that image. Can I run one of these unpacked ASA802 files in the same way?
Cisco binary image unpacker v0.1 Cisco binary image unpacker is a software that allows you to unpack IOS and ASA images. Usage: unpack -output file -format Important notice: ASA v7 images can be used in GNS3 and Pemu. At the moment ASA v8 images run only with Qemu. How to unpack ASA version 7 and early images? Images tested: asa722-k8.bin asa724-k8.bin Linux $ python unpack.py -format ASA7 asa724-k8.bin Archive: /tmp/asa724-k8.bin.zip inflating: /tmp/pix ASA7 binary image successfully unpacked in asa724-k8.bin.unpacked Windows C: Unpackunpack.exe -format ASA7 asa724-k8.bin Archive: c:/docume1/admini1/locals1/temp/asa724-k8.bin.zip inflating: c:/docume1/admini1/locals1/temp/pix ASA7 binary image successfully unpacked in asa724-k8.bin.unpacked Then you just need to use asa724-k8.bin.unpacked in GNS3 or Pemu as a PIX image. How to unpack ASA version 8 images?