1 QEMU PC emulator version 0.9.1 (kvm-72), Copyright (c) 2003-2008 Fabrice Bellard
2 usage: qemu [options] [disk_image]
4 'disk_image' is a raw hard image image for IDE hard disk 0
7 -M machine select emulated machine (-M ? for list)
8 -cpu cpu select CPU (-cpu ? for list)
9 -fda/-fdb file use 'file' as floppy disk 0/1 image
10 -hda/-hdb file use 'file' as IDE hard disk 0/1 image
11 -hdc/-hdd file use 'file' as IDE hard disk 2/3 image
12 -cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master)
13 -drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]
14 [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]
15 [,cache=on|off][,format=f][,boot=on|off]
16 use 'file' as a drive image
17 -mtdblock file use 'file' as on-board Flash memory image
18 -sd file use 'file' as SecureDigital card image
19 -pflash file use 'file' as a parallel flash image
20 -boot [a|c|d|n] boot on floppy (a), hard disk (c), CD-ROM (d), or network (n)
21 -snapshot write to temporary files instead of disk image files
22 -no-frame open SDL window without a frame and window decorations
23 -alt-grab use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt)
24 -no-quit disable SDL window close capability
25 -no-fd-bootchk disable boot signature checking for floppy disks
26 -m megs set virtual RAM size to megs MB [default=128]
27 -smp n set the number of CPUs to 'n' [default=1]
28 -nographic disable graphical output and redirect serial I/Os to console
29 -portrait rotate graphical output 90 deg left (only PXA LCD)
30 -k language use keyboard layout (for example "fr" for French)
31 -audio-help print list of audio drivers and their options
32 -soundhw c1,... enable audio support
33 and only specified sound cards (comma separated list)
34 use -soundhw ? to get the list of supported cards
35 use -soundhw all to enable all of them
36 -localtime set the real time clock to local time [default=utc]
37 -full-screen start in full screen
38 -win2k-hack use it when installing Windows 2000 to avoid a disk full bug
39 -usb enable the USB driver (will be the default soon)
40 -usbdevice name add the host or guest USB device 'name'
41 -name string set the name of the guest
44 -net nic[,vlan=n][,macaddr=addr][,model=type]
45 create a new Network Interface Card and connect it to VLAN 'n'
46 -net user[,vlan=n][,hostname=host]
47 connect the user mode network stack to VLAN 'n' and send
48 hostname 'host' to DHCP clients
49 -net tap[,vlan=n][,fd=h][,ifname=name][,script=file][,downscript=dfile]
50 connect the host TAP network interface to VLAN 'n' and use the
51 network scripts 'file' (default=/etc/kvm/kvm-ifup)
52 and 'dfile' (default=/etc/kvm/kvm-ifdown);
53 use '[down]script=no' to disable script execution;
54 use 'fd=h' to connect to an already opened TAP interface
55 -net socket[,vlan=n][,fd=h][,listen=[host]:port][,connect=host:port]
56 connect the vlan 'n' to another VLAN using a socket connection
57 -net socket[,vlan=n][,fd=h][,mcast=maddr:port]
58 connect the vlan 'n' to multicast maddr and port
59 -net none use it alone to have zero network devices; if no -net option
60 is provided, the default is '-net nic -net user'
62 -tftp dir allow tftp access to files in dir [-net user]
63 -bootp file advertise file in BOOTP replies
64 -smb dir allow SMB access to files in 'dir' [-net user]
65 -redir [tcp|udp]:host-port:[guest-host]:guest-port
66 redirect TCP or UDP connections from host to guest [-net user]
69 -kernel bzImage use 'bzImage' as kernel image
70 -append cmdline use 'cmdline' as kernel command line
71 -initrd file use 'file' as initial ram disk
74 -monitor dev redirect the monitor to char device 'dev'
75 -serial dev redirect the serial port to char device 'dev'
76 -parallel dev redirect the parallel port to char device 'dev'
77 -pidfile file Write PID to 'file'
78 -S freeze CPU at startup (use 'c' to start execution)
79 -s wait gdb connection to port
80 -p port set gdb connection port [default=1234]
81 -d item1,... output log to /tmp/qemu.log (use -d ? for a list of log items)
82 -hdachs c,h,s[,t] force hard disk 0 physical geometry and the optional BIOS
83 translation (t=none or lba) (usually qemu can guess them)
84 -L path set the directory for the BIOS, VGA BIOS and keymaps
85 -no-kvm disable KVM hardware virtualization
86 -no-kvm-irqchip disable KVM kernel mode PIC/IOAPIC/LAPIC
87 -no-kvm-pit disable KVM kernel mode PIT
88 -std-vga simulate a standard VGA card with VESA Bochs Extensions
89 (default is CL-GD5446 PCI VGA)
91 -curses use a curses/ncurses interface instead of SDL
92 -no-reboot exit instead of rebooting
93 -no-shutdown stop before shutdown
94 -loadvm [tag|id] start right away with a saved state (loadvm in monitor)
95 -vnc display start a VNC server on display
96 -daemonize daemonize QEMU after initializing
97 -tdf inject timer interrupts that got lost
98 -kvm-shadow-memory megs set the amount of shadow pages to be allocated
99 -mem-path set the path to hugetlbfs/tmpfs mounted directory, also enables allocation of guest memory with huge pages
100 -option-rom rom load a file, rom, into the option ROM space
101 -clock force the use of the given methods for timer alarm.
102 To see what timers are available use -clock ?
103 -startdate select initial date of the clock
105 Enable virtual instruction counter with 2^N clock ticks per instruction
107 During emulation, the following keys are useful:
108 ctrl-alt-f toggle full screen
109 ctrl-alt-n switch to virtual console 'n'
110 ctrl-alt toggle mouse and keyboard grab
112 When using -nographic, press 'ctrl-a h' to get some help.