http://www.hopelesscase.com/linuxnotes/qemuauthorqemulinks
commandsHere are the installed executables from a normal build of qemu: usr/bin/qemu usr/bin/qemu-armeb usr/bin/qemu-sparc usr/bin/qemu-mipsel usr/bin/qemu-system-sparc usr/bin/qemu-system-arm usr/bin/qemu-system-ppc usr/bin/qemu-i386 usr/bin/qemu-m68k usr/bin/qemu-mips usr/bin/qemu-system-mips usr/bin/qemu-arm usr/bin/qemu-img usr/bin/qemu-ppc usr/bin/qemu-system-mipsel usr/bin/qemu-system-x86_64 Here are notes on each command:
examplesdownloaded test imagesYou can download these test images:
from the qemu website. You run them like this: qemu ./linux-0.2.img and qemu-system-arm -kernel zImage.integrator -initrd arm_root.img Running these two causes an xwindow to come up that represents the console of the machine booted with a framebuffer device. When running this, I notice wierd behavior.
You can run qemu-system-arm in a non-graphical mode like this: qemu-system-arm -kernel zImage.integrator -initrd arm_root.img -nographic -append "console=ttyAMA0" This seems to work fine. If I run it like this: qemu-system-arm -kernel zImage.integrator -initrd arm_root.img -nographic then I don't see the kernel boot messages but after the kernel boots, I can log in. separate initrd, kernel, and hda argumentsHere is how you can boot a linux kernel with an initrd.gz and a image of disk hda qemu -initrd initrd.gz -kernel /boot/vmlinuz-generic-2.6.18 -hda hda_image vnc display option, -k optionThis form of the command: qemu -vnc :1 -initrd initrd.gz -kernel /boot/vmlinuz-generic-2.6.18 -hda hda_image causes qemu to open a vncserver of its own for displaying graphics. You then use vncviewer to connect to it like this: vncviewer :1 This assumes that the keyboard layout is en-us. If it is not, you need to specify it with the -k option. In general, whenever qemu is in a situation where it can't access the raw keycodes, it needs you to specify a -k option. Running under a vncserver environment (I mean runing qemu with is environment variable DISPLAY set to a vnc X server and not a normal ont, not running qemu with a -vnc argument). qemu booting a debian installation DVD iso imageqemu -hda image_file -cdrom iso_image_file -vnc :3 -boot d At first I had trouble getting this working because I tried this: qemu -hda image_file -hdc iso_image_file -vnc :3 -boot d The problem was that qemu was treating the hdc image as if it were a hard disk. That is why you need the -cdrom argument. kqemu: the qemu accelerator kernel module
|
