It is currently Wed Feb 08, 2012 10:54 am


All times are UTC




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: How to configure deafult Kernal for ASA in GNS ver 3-0.7RC1
PostPosted: Tue Jan 26, 2010 3:21 am 
this can help you
topic1546.html






Top
  
 
 Post subject: Re: How to configure deafult Kernal for ASA in GNS ver 3-0.7RC1
PostPosted: Thu Jan 28, 2010 8:07 am 
yb3810hq wrote:
I have never succeeded to unpack ASA8 image. unpack.exe always shows error msg.
Are there any restrictions Windows version? I've tested XP, 2003 server, it's same.

--------------------------------------------------------------
'gzip' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the file specified.
Traceback (most recent call last):
File "unpack.py", line 208, in <module>
File "unpack.py", line 146, in unpackASA8
File "shutil.pyo", line 199, in move
File "shutil.pyo", line 91, in copy2
File "shutil.pyo", line 46, in copyfile
IOError: [Errno 2] No such file or directory: 'c:\\docume~1\\abcde\\locals~1\\temp\\tm
pu1gewx\\vmlinuz'




hello man
you can create a bat file like cisco_asa.bat and copy this in
PATH=C:\UNPACK
unpack.exe -output asa802-k8 --format ASA8 asa802-k8.bin



you need change the directory "c:\unpack" to your own directory which have unpack.exe in


Top
  
 
 Post subject: Re: How to configure deafult Kernal for ASA in GNS ver 3-0.7RC1
PostPosted: Sun Jan 31, 2010 7:21 pm 
ASA804 cannot be run by qemu. see this link for asa802

http://blog.gns3.net/2009/12/how-to-emulate-cisco-asa/

asa804 not working currently, reboots see here:-
http://7200emu.hacki.at/viewtopic.php?t ... d9a289c9b8

Don't even ask avout asa821 that does not work on qemu either. Your stuck with asa802.

I attempted it. If you are interested this is my attempt from linux:-

Look for the zip header (1f 8b 08 08) is across 2 lines:-
001228a0 9d bf 7e e3 f2 99 f9 eb d6 05 e9 3a 72 dc f3 2f |..~........:r../|
001228b0 df b7 b1 ff 95 ff 6f d4 7b f7 9e 85 a0 1f 00 1f |......o.{.......|
001228c0 8b 08 08 96 b6 9b 48 00 03 72 6f 6f 74 66 73 2e |......H..rootfs

Found at 001228bf = 1190079 is the decimal value
14137344 - 1190079 = 12947265
tail -c 12947265 asa804-k8.bin > asa804-k8.gz
gzip -d asa804-k8.gz

Happy ASAing!.


Top
  
 
 Post subject: Re: How to configure deafult Kernal for ASA in GNS ver 3-0.7RC1
PostPosted: Wed Mar 10, 2010 11:55 pm 
Offline

Joined: Thu Feb 05, 2009 11:52 pm
Posts: 11
shaoshuanghu

hello man
you can create a bat file like cisco_asa.bat and copy this in
PATH=C:\UNPACK
unpack.exe --output asa802-k8 --format ASA8 asa802-k8.bin

you need change the directory "c:\unpack" to your own directory which have unpack.exe in
--------------------------------------
boclozz

Solve the unpack bug on windows.......
The unpack worked for me on windows XP, after I copied "gzip.exe" file from the unpack folder to C:\WINDOWS\system32........

--------------------------------------
Thanks a lot both of you guys. (boclozz, shaoshuanghu)
Yes. It worked for me either. The problem is the Windows "Path".

But there are still some problems when I configure interface and save config....
ciscoasa(config)# int e0/1
ciscoasa(config-if)# nameif inside
ERROR: open(np/port/id/1/-1) failed.
ERROR: open() failed.
ERROR: Failed to initialize interface inside
ERROR: Add interface failed.
ciscoasa(config-if)#


Top
 Profile  
 
 Post subject: Re: How to configure deafult Kernal for ASA in GNS ver 3-0.7RC1
PostPosted: Sun Mar 21, 2010 2:38 pm 
Offline

Joined: Thu Oct 29, 2009 1:15 pm
Posts: 19
hi Jeremy,
Please post a step-by-step guide to use ASA8 on GNS3 0.7.
What parameteres should be provided Preferences>Qemu>ASA>kernal and initrd fields?
Thank you


Top
 Profile  
 
 Post subject: Re: How to configure deafult Kernal for ASA in GNS ver 3-0.7RC1
PostPosted: Sat May 08, 2010 11:12 am 
Offline

Joined: Thu Oct 29, 2009 1:15 pm
Posts: 19
There is a great video tutorial posted on how to run ASA in GNS3 0.7 in Windows Vista. It is awesome.

I tried & worked very well for me on my Windows Vista SP2 PC.

This is the URL - http://www.sadikhov.com/forum/index.php ... pic=177924 .

Please take a moment to respect & thank the original author "SAKET". He is a real genius.

Good luck & Happy "ASA" labbing........!

kani_wid


Top
 Profile  
 
 Post subject: Re: How to configure deafult Kernal for ASA in GNS ver 3-0.7RC1
PostPosted: Sun May 09, 2010 12:12 am 
Hello
I'm running ASA on XP. I extracted initrd and kernel using Ubuntu and added jeremy's script to asa/scripts folder before compressing the image. ASA comes up fine and I can save configurations but when I try to open the project I get error "Could not set working directory to ASA_Practice on server qemu 127.0.0.1:10525." That means everytime I have to start a new ASA and configure it. I can shut it down and bring it back up and it has all the configuration only if i completely shutdown GNS and then try to open the project is when I get the error. Any ideas???


Top
  
 
 Post subject: Re: How to configure deafult Kernal for ASA in GNS ver 3-0.7RC1
PostPosted: Fri May 21, 2010 10:14 pm 
Hi moody,
I had the same problem. I can get ASA up and running, communicate to it and even save files to flash. However, whenever I shut down GNS3 and tried to restart and open an ASA project I would get an error about not being able to set the working directory.

Here is how I fixed it.
I simply edited the .net file and specified the full path to the QEMU working directory. See example below. The fix is highlighted in blue. I now have the ability to work with the project, save, close GNS3 and work again another day.

autostart = False
[qemu localhost:10525]
workingdir = C:\Program Files\GNS3\Projects\ASA\SNAA\SNAA-Lab1_working
udp = 20000
[[5520]]
kernel = C:\Program Files\GNS3\Images\asa802-k8.kernel
netcard = e1000
ram = 256
kernel_cmdline = auto console=ttyS0,9600 bigphysarea=16384 ide1=noprobe
initrd = C:\Program Files\GNS3\Images\asa802-k8.initrd.gz
options = -hdachs 980,16,32 -vnc :1
[[ASA ASA1]]
x = -103.0
y = -18.0
[GNS3-DATA]
configs = SNAA-Lab1_configs
workdir = SNAA-Lab1_working


Top
  
 
 Post subject: Re: How to configure deafult Kernal for ASA in GNS ver 3-0.7RC1
PostPosted: Fri Jul 09, 2010 4:32 am 
Hello dnotini
I got it to work a while ago and then never came back to the forum. Thanks for help. Everything works fine now except I wish i could use ASDM without fiddler.


Top
  
 
 Post subject: Re: How to configure deafult Kernal for ASA in GNS ver 3-0.7RC1
PostPosted: Mon Jul 26, 2010 12:13 am 
Solve the unpack bug on windows.......
Thanks to boclozz
just copy gzip.exe on windows and windows\system32






Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO