x625802392 发表于 2018-7-10 10:13:51

Qemu For Cisco Asa

  Qemu For Cisco Asa 简单解说
  此文档适用于windows平台
  一:所需软件
  1:qemu-0.9.0-windows. qemu的windows版本
  2:Bes解决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,>  3:qemu -L . -hda FLASH -m 256 -kernel vmlinuz-initrd asa802-k8.gz -append "auto>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 isnot 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>  bigphysarea=16384" -serial telnet::1234,server,nowait
页: [1]
查看完整版本: Qemu For Cisco Asa