Openwrt使用Qemu仿真
来源:互联网 发布:js把 quot 转义双引号 编辑:程序博客网 时间:2024/05/18 02:02
OpenWrt in QEMU
This document descripes howto run the OpenWrt x86 port in QEMU.
- qemu an example setup
It is mixed descriptions from windows and linux, so please read through all of it before starting.
Ubuntu Linux version
Confirmed to work on Ubuntu 10.10 both x86_64 and x86
* Install qemu-kvm and kvm-pxe
sudo apt-get install qemu-kvm kvm-pxe* Download an openwrt image of your choise.
sudo su -mkdir -p /var/lib/libvirt/imagescd /var/lib/libvirt/imageshttp://downloads.openwrt.org/backfire/10.03/x86/openwrt-x86-ext2.image.gzgunzip openwrt-x86-ext2.image.gz
Before starting it under qemu/kvm. I had to set a network driver model to make a network interface appear in OpenWrt.
model=ne2k_pciStart the image:
sudo su -cd /var/lib/libvirt/imagesqemu -net nic,model=ne2k_pci -hda openwrt-x86-ext2.image
You should now get a "terminal like" (vnc) window popup which shows the boot of OpenWrt.
Good luck!
Windows version
QEMU is an an open source processor emulator (and virtualizer). Start at QEMU download page which should have a link where QEMU prebuild binaries for Windows. You can also find other (newer) builds of QEMU for Windows by googlling. In this example download theqemu-0.9.0-windows.zip and unzip to a directory.
Download OpenWrt raw image (ex. kamikaze/8.09.1/x86/) and copy the raw image into the qemu directory.
Run QEMU by using following command:
C:\qemu-0.9.0-windows>qemu.exe -L . -hda openwrt-x86-ext2.image
Which shall result in a command window as shown below:
QEMU may issue warning message as following:
Could not open '\\.\kqemu' - QEMU acceleration layer not activated
You may correct this warning by installing KQEMU driver which provides better performance for the VM, but this is not as relevant to OpenWrt.
Upon execution of the above command new window shall appear with booting OpenWrt:
And in several seconds OpenWrt VM shall be up and running:
- Openwrt使用Qemu仿真
- Openwrt使用Qemu仿真开发。
- 使用 QEMU 进行系统仿真
- 使用 QEMU 进行系统仿真
- 使用 QEMU 进行系统仿真
- 使用 QEMU 进行系统仿真
- 使用 QEMU 进行系统仿真
- 使用 QEMU 进行系统仿真
- 使用 QEMU 进行系统仿真
- 使用QEMU仿真ARM Linux系统
- 使用qemu 建立mini2440的模拟仿真环境
- 使用qemu 建立mini2440的模拟仿真环境
- 在linux上使用QEMU 进行系统仿真
- 使用qemu 建立mini2440的模拟仿真环境
- qemu for mini2440 OpenWrt
- qemu skyeye 仿真
- QEMU 仿真 rtems pc386
- Qemu 系统仿真
- 【解决】hessian 客户端报警告:Hessian/Burlap: xxx is an unknown class in sun.misc.Launcher……
- 【传智播客】PS中的魔棒工具-王老师第一次作业!
- Python学习笔记一
- 浅谈Linux的内存管理机制
- avcodec_open多线程调用问题
- Openwrt使用Qemu仿真
- 土坷垃的情怀
- oracle 常用权限字典表
- htm5 user-scalable 的意思
- ffmpeg是否可以得知每一帧的解码时间?
- git update
- 后台iframe
- singleton单例模式的讲解
- 另一个小窝....