Qemu For Cisco Asa

Qemu For Cisco Asa 簡單解說

此文檔適用於windows平臺
一:所需軟件
  1qemu-0.9.0-windows. qemu的windows版本
  2Bes解決cpu100%問題
  3:asa802-k8.gz 這個是asa的ios,關於ios的名稱問題 可以解壓出來,也可以用.gz格式的.在qemu命令中要定義出來
  4:vmlinuz:是可引導的、壓縮的內核
三:安裝過程
1:把所需軟件解壓放一個目錄 例如netemu此目錄應該包含qemu-0.9.0-windows解壓後的文件,asa802鏡像 vmlnuz文件
2:創建FLASH 命令格式

E:\cisco asa>qemu-img.exe create FLASH 265M

Formating 'FLASH', fmt=raw, size=271360 kB
3:qemu -L . -hda FLASH -m 256 -kernel vmlinuz  -initrd asa802-k8.gz -append "auto ide1=noprobe console=ttyS0,9600   bigphysarea=16384" -serial telnet::1234,server,nowait
注意此命令在一行輸入,可以先輸入到文本中排列成一行.
4:打開bes 限制qemu的cpu 解決cpu100%問題
5:telnet 127.0.0.1 1234
進去後
ciscoasa# show ver
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 8 secs
Hardware:   , 128 MB RAM, CPU Pentium II 2418 MHz
Internal ATA Compact Flash, 0MB
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
××× Peers                    : 5000
Web××× 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#

不能保存配置
啓動時候有警告
INFO: Unable to read firewall mode from flash
       Writing default firewall mode (single) to flash
WARNING: Unable to write firewall mode to flash, this is normal if flash is  not formatted.

代碼:linux

qemu -hda FLASH -m 256 -kernel vmlinuz -initrd asa802-k8.gz -kernel-kqemu
-nographic -append "auto console=ttyS0,9600 bigphysarea=16384
ide1=noprobe"

windows:

複製內容到剪貼板

代碼:windows

qemu -L . -hda FLASH -m 256 -kernel vmlinuz
-initrd asa802-k8.gz -append "auto ide1=noprobe console=ttyS0,9600
bigphysarea=16384" -serial telnet::1234,server,nowait

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章