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


All times are UTC




Post new topic Reply to topic  [ 58 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Using ASA in GNS3
PostPosted: Tue Nov 25, 2008 5:50 am 
Thx for the response jermy i appreciate your support and now i am able to use ASA V7 in GNS3.

Hey but what about the configuration of ASA v8 image in Qemu, can you kindly help me out with this also.

Can you jot out the steps that i need to follow to setup Qemu for the ASA v8.

Once again thanks for the support.


grossmj wrote:
Hi,

With an ASA v8 image you need Qemu. If you want to use an ASA v7 image then you can use GNS3.

To use an ASA 7 image with GNS3, you have to unpack it with Cisco image unpacker.

On Linux:

Code:
$ 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


On Windows:

Code:
C:\Unpack>unpack.exe --format ASA7 asa724-k8.bin
Archive:  c:/docume~1/admini~1/locals~1/temp/asa724-k8.bin.zip
inflating: c:/docume~1/admini~1/locals~1/temp/pix
ASA7 binary image successfully unpacked in asa724-k8.bin.unpacked


Then you can use asa724-k8.bin.unpacked in GNS3 as a PIX image.






Top
  
 
 Post subject: Re: Using ASA in GNS3
PostPosted: Tue Nov 25, 2008 2:01 pm 
Offline

Joined: Tue Oct 14, 2008 6:57 pm
Posts: 76
This is a GNS3 forum, not a Qemu forum :)

The only reason it's easy to help with Pemu is because it's intergrated with GNS3. Qemu is not. You can find more on Qemu at http://bellard.org/qemu/

_________________
-------

LBSources
- GNS3 .. Cisco Routing on Your Desktop

Get some GNS3 labs @ http://www.gns3-labs.com


Top
 Profile  
 
 Post subject: Re: Using ASA in GNS3
PostPosted: Tue Nov 25, 2008 3:23 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 798
Hi,

Cisco Image Unpacker can unpack an ASA8 image to be used with Qemu. There is an example in the README. I'm kind, here is a copy paste... ;)

Quote:
Image tested: asa802-k8.bin

[Linux]

$ python unpack.py --format ASA8 asa802-k8.bin
gzip: /tmp/asa802-k8.bin.gz: decompression OK, trailing garbage ignored
cpio: Removing leading `/' from member names
cpio: dev/console: Cannot mknod: Operation not permitted
cpio: dev/ram0: Cannot mknod: Operation not permitted
cpio: dev/mem: Cannot mknod: Operation not permitted
cpio: dev/kmem: Cannot mknod: Operation not permitted
cpio: dev/null: Cannot mknod: Operation not permitted
cpio: dev/port: Cannot mknod: Operation not permitted
cpio: dev/hda: Cannot mknod: Operation not permitted
cpio: dev/hda1: Cannot mknod: Operation not permitted
cpio: dev/hda2: Cannot mknod: Operation not permitted
cpio: dev/hda3: Cannot mknod: Operation not permitted
cpio: dev/hdb: Cannot mknod: Operation not permitted
cpio: dev/hdb1: Cannot mknod: Operation not permitted
cpio: dev/hdb2: Cannot mknod: Operation not permitted
cpio: dev/hdb3: Cannot mknod: Operation not permitted
cpio: dev/ttyS0: Cannot mknod: Operation not permitted
cpio: dev/ttyS1: Cannot mknod: Operation not permitted
cpio: dev/net/tun: Cannot mknod: Operation not permitted
61039 blocks
ASA8 initrd successfully unpacked in asa802-k8.bin.unpacked.initrd
ASA8 kernel successfully unpacked in asa802-k8.bin.unpacked.vmlinuz

[Windows]

C:\Unpack>unpack.exe --format ASA8 asa802-k8.bin

gzip: c:\docume~1\admini~1\locals~1\temp\asa802-k8.bin.gz: decompression OK, trailing garbage ignored
cpio: Removing leading `/' from member names
cpio: vmlinuz: Function not implemented
...
61039 blocks
ASA8 initrd successfully unpacked in asa802-k8.bin.unpacked.initrd
ASA8 kernel successfully unpacked in asa802-k8.bin.unpacked.vmlinuz

Create a FLASH file with the follwing command: "qemu-img create FLASH 256M"

Then you can use Qemu to launch ASA:

$qemu -hda FLASH -hdachs 980,16,32 -kernel asa802-k8.bin.unpacked.vmlinuz -initrd asa802-k8.bin.unpacked -m 256 --no-kqemu
-append "auto nousb ide1=noprobe bigphysarea=16384 console=ttyS0,9600n8 hda=980,16,32" -serial telnet::15000,server,nowait

Finally start telnet to connect on port 15000:

$telnet localhost 15000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

ciscoasa> show version

Cisco Adaptive Security Appliance Software Version 8.0(2)

Compiled on Fri 15-Jun-07 19:29 by builders
System image file is "Unknown, monitor mode tftp booted image"
Config file at boot was "startup-config"

ciscoasa up 17 secs

Hardware: , 128 MB RAM, CPU Pentium II 2394 MHz
Internal ATA Compact Flash, 256MB
BIOS Flash Firmware Hub @ 0xffe00000, 1024KB

0: Ext: Ethernet0/0 : irq 255
1: Ext: Ethernet0/1 : irq 255
2: Ext: Ethernet0/2 : irq 255
3: Ext: Ethernet0/3 : irq 255
4: Ext: Ethernet0/4 : irq 255
5: Ext: Ethernet0/5 : irq 255
VLANs : 200
Failover : Active/Active
3DES-AES : Enabled
Security Contexts : 20
GTP/GPRS : Enabled
VPN Peers : 5000
WebVPN Peers : 2500
ADV END SEC : Enabled

Serial Number: 123456789AB
Running Activation Key: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
Configuration register is 0x0
Configuration has not been modified since last system restart.
ciscoasa>


For more information, have a look => there

_________________
Jeremy
GNS3 Staff


Top
 Profile  
 
 Post subject: Re: Using ASA in GNS3
PostPosted: Wed Nov 26, 2008 7:34 am 
Hi Jermy,

Thanks for the response, i tried using the the read me files but when i issue the first command

C:\Unpack>unpack.exe --format ASA8 asa802-k8.bin

I already have my pix 802 image placed in the unpack folder on C:\

it gives me following error:-

C:\Unpack>unpack.exe --format ASA8 asa802-k8.bin
'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\\hussain\\locals~1
temp\\tmp4kpioy\\vmlinuz'

Dont know??????????? how to get rid of this any help??????????????? please.



grossmj wrote:
Hi,

Cisco Image Unpacker can unpack an ASA8 image to be used with Qemu. There is an example in the README. I'm kind, here is a copy paste... ;)

Quote:
Image tested: asa802-k8.bin

[Linux]

$ python unpack.py --format ASA8 asa802-k8.bin
gzip: /tmp/asa802-k8.bin.gz: decompression OK, trailing garbage ignored
cpio: Removing leading `/' from member names
cpio: dev/console: Cannot mknod: Operation not permitted
cpio: dev/ram0: Cannot mknod: Operation not permitted
cpio: dev/mem: Cannot mknod: Operation not permitted
cpio: dev/kmem: Cannot mknod: Operation not permitted
cpio: dev/null: Cannot mknod: Operation not permitted
cpio: dev/port: Cannot mknod: Operation not permitted
cpio: dev/hda: Cannot mknod: Operation not permitted
cpio: dev/hda1: Cannot mknod: Operation not permitted
cpio: dev/hda2: Cannot mknod: Operation not permitted
cpio: dev/hda3: Cannot mknod: Operation not permitted
cpio: dev/hdb: Cannot mknod: Operation not permitted
cpio: dev/hdb1: Cannot mknod: Operation not permitted
cpio: dev/hdb2: Cannot mknod: Operation not permitted
cpio: dev/hdb3: Cannot mknod: Operation not permitted
cpio: dev/ttyS0: Cannot mknod: Operation not permitted
cpio: dev/ttyS1: Cannot mknod: Operation not permitted
cpio: dev/net/tun: Cannot mknod: Operation not permitted
61039 blocks
ASA8 initrd successfully unpacked in asa802-k8.bin.unpacked.initrd
ASA8 kernel successfully unpacked in asa802-k8.bin.unpacked.vmlinuz

[Windows]

C:\Unpack>unpack.exe --format ASA8 asa802-k8.bin

gzip: c:\docume~1\admini~1\locals~1\temp\asa802-k8.bin.gz: decompression OK, trailing garbage ignored
cpio: Removing leading `/' from member names
cpio: vmlinuz: Function not implemented
...
61039 blocks
ASA8 initrd successfully unpacked in asa802-k8.bin.unpacked.initrd
ASA8 kernel successfully unpacked in asa802-k8.bin.unpacked.vmlinuz

Create a FLASH file with the follwing command: "qemu-img create FLASH 256M"

Then you can use Qemu to launch ASA:

$qemu -hda FLASH -hdachs 980,16,32 -kernel asa802-k8.bin.unpacked.vmlinuz -initrd asa802-k8.bin.unpacked -m 256 --no-kqemu
-append "auto nousb ide1=noprobe bigphysarea=16384 console=ttyS0,9600n8 hda=980,16,32" -serial telnet::15000,server,nowait

Finally start telnet to connect on port 15000:

$telnet localhost 15000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

ciscoasa> show version

Cisco Adaptive Security Appliance Software Version 8.0(2)

Compiled on Fri 15-Jun-07 19:29 by builders
System image file is "Unknown, monitor mode tftp booted image"
Config file at boot was "startup-config"

ciscoasa up 17 secs

Hardware: , 128 MB RAM, CPU Pentium II 2394 MHz
Internal ATA Compact Flash, 256MB
BIOS Flash Firmware Hub @ 0xffe00000, 1024KB

0: Ext: Ethernet0/0 : irq 255
1: Ext: Ethernet0/1 : irq 255
2: Ext: Ethernet0/2 : irq 255
3: Ext: Ethernet0/3 : irq 255
4: Ext: Ethernet0/4 : irq 255
5: Ext: Ethernet0/5 : irq 255
VLANs : 200
Failover : Active/Active
3DES-AES : Enabled
Security Contexts : 20
GTP/GPRS : Enabled
VPN Peers : 5000
WebVPN Peers : 2500
ADV END SEC : Enabled

Serial Number: 123456789AB
Running Activation Key: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
Configuration register is 0x0
Configuration has not been modified since last system restart.
ciscoasa>


For more information, have a look => there


Top
  
 
 Post subject: Re: Using ASA in GNS3
PostPosted: Tue Dec 16, 2008 4:01 pm 
Hi Jeremy,

I was not able to successfully unpack ASA image using the unpacker. This is the error I received during the process.

C:\Documents and Settings\>unpack.exe --format ASA7 asa724-k8.bin
'unpack.exe' is not recognized as an internal or external command,
operable program or batch file.

Can you share with me the step by step process on how to unpack successfully and where to put the ASA image file before unpacking.?

Thanks
K


Top
  
 
 Post subject: Re: Using ASA in GNS3
PostPosted: Tue Dec 16, 2008 4:41 pm 
Offline

Joined: Tue Oct 14, 2008 6:57 pm
Posts: 76
@routerer you have to be in the same directory as the unpack.exe program.

_________________
-------

LBSources
- GNS3 .. Cisco Routing on Your Desktop

Get some GNS3 labs @ http://www.gns3-labs.com


Top
 Profile  
 
 Post subject: Re: Using ASA in GNS3
PostPosted: Tue Dec 16, 2008 5:00 pm 
Hi LBSources,

Actually, I copied the ASA image file to the same folder to where unpack program is, but still im having the same error message. pls help.


Routerer


Top
  
 
 Post subject: Re: Using ASA in GNS3
PostPosted: Tue Dec 16, 2008 6:49 pm 
Offline

Joined: Tue Oct 14, 2008 6:57 pm
Posts: 76
@routerer you're not in the directory of the unpack program..

As an example..

Code:
C:\Documents and Settings\>unpack.exe


Should be

Code:
C:\unpack\>unpack.exe

_________________
-------

LBSources
- GNS3 .. Cisco Routing on Your Desktop

Get some GNS3 labs @ http://www.gns3-labs.com


Top
 Profile  
 
 Post subject: Re: Using ASA in GNS3
PostPosted: Tue Dec 16, 2008 7:46 pm 
Hi LBSources,

I've done as per your suggestion, and this was the result,


C:\>Unpack\unpack.exe --format ASA7 asa724-k8.bin
Couldn't open asa724-k8.bin

C:\>

it says Couldn't open asa724-k8.bin

asa image file is inside C:\Unpack folder.

Kindly please suggest or share knowledge pls.

Routerer


Top
  
 
 Post subject: Re: Using ASA in GNS3
PostPosted: Wed Dec 17, 2008 6:03 pm 
Hi,

Can you please help me on this.




thanks,

Routerer






Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 58 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

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