qemu-.12-basics 2010-04-25 john pfeiffer
download qemu for windows (http://homepage3.nifty.com/takeda-toshiya/qemu/ ) http://wiki.qemu.org/Links
qemu-img create centos5.img 1G
qemu -L . -cdrom CentOS-5-4-i386-netinstall.iso -hda centos5.img -boot d -m 512 -localtime -net nic -net user
((boots from drive "d", the cdrom (centos iso), hard drive from file .img, with 512 MB ram, using the system local time, NAT to connect to the internet))
qemu -L . -cdrom CentOS-5-4-i386-netinstall.iso -hda centos5.img -boot d -m 512 -localtime -net nic -net user -redir tcp:888::80
The x86 PC uses: a, b (floppy 1 and 2), c (first hard disk), d (first CD-ROM), n-p (Etherboot from network adapter 1-4)
you may have to rename a linux.iso image to remove some of the excess .'s, e.g. linux.0.2.3.iso could be changed to linux-0-2-3.iso
("-L . " specifices the current directory instead of c:\program files\bios.bin)
-net user mode: acts as a firewall and does not permit any incoming traffic. Only TCP and UDP. ping and other ICMP utilities won't work.
DHCP server leases: windows 10.0.2.15, Linux is 10.0.2.16.
-redir tcp:5555::80 redirects the host port 5555 (TCP) to guest port 80 -redir tcp:5555:10.0.2.16:23 //5555 to guest 10.0.2.16 (dhcp) port 23
Control - Alt to "grab" the mouse