Statistics
| Branch: | Tag: | Revision:

root / test / data / kvm_0.9.1_help_boot_test.txt @ eb7a6965

History | View | Annotate | Download (5.9 kB)

1
QEMU PC emulator version 0.9.1 (kvm-72), Copyright (c) 2003-2008 Fabrice Bellard
2
usage: qemu [options] [disk_image]
3

    
4
'disk_image' is a raw hard image image for IDE hard disk 0
5

    
6
Standard options:
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
-fakeopt
16
       [,cache=on|off][,format=f][,boot=on|off]
17
                use 'file' as a drive image
18
-mtdblock file  use 'file' as on-board Flash memory image
19
-sd file        use 'file' as SecureDigital card image
20
-pflash file    use 'file' as a parallel flash image
21
-boot [a|c|d|n] boot on floppy (a), hard disk (c), CD-ROM (d), or network (n)
22
-snapshot       write to temporary files instead of disk image files
23
-no-frame       open SDL window without a frame and window decorations
24
-alt-grab       use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt)
25
-no-quit        disable SDL window close capability
26
-no-fd-bootchk  disable boot signature checking for floppy disks
27
-m megs         set virtual RAM size to megs MB [default=128]
28
-smp n          set the number of CPUs to 'n' [default=1]
29
-nographic      disable graphical output and redirect serial I/Os to console
30
-portrait       rotate graphical output 90 deg left (only PXA LCD)
31
-k language     use keyboard layout (for example "fr" for French)
32
-audio-help     print list of audio drivers and their options
33
-soundhw c1,... enable audio support
34
                and only specified sound cards (comma separated list)
35
                use -soundhw ? to get the list of supported cards
36
                use -soundhw all to enable all of them
37
-localtime      set the real time clock to local time [default=utc]
38
-full-screen    start in full screen
39
-win2k-hack     use it when installing Windows 2000 to avoid a disk full bug
40
-usb            enable the USB driver (will be the default soon)
41
-usbdevice name add the host or guest USB device 'name'
42
-name string    set the name of the guest
43

    
44
Network options:
45
-net nic[,vlan=n][,macaddr=addr][,model=type]
46
                create a new Network Interface Card and connect it to VLAN 'n'
47
-net user[,vlan=n][,hostname=host]
48
                connect the user mode network stack to VLAN 'n' and send
49
                hostname 'host' to DHCP clients
50
-net tap[,vlan=n][,fd=h][,ifname=name][,script=file][,downscript=dfile]
51
                connect the host TAP network interface to VLAN 'n' and use the
52
                network scripts 'file' (default=/etc/kvm/kvm-ifup)
53
                and 'dfile' (default=/etc/kvm/kvm-ifdown);
54
                use '[down]script=no' to disable script execution;
55
                use 'fd=h' to connect to an already opened TAP interface
56
-net socket[,vlan=n][,fd=h][,listen=[host]:port][,connect=host:port]
57
                connect the vlan 'n' to another VLAN using a socket connection
58
-net socket[,vlan=n][,fd=h][,mcast=maddr:port]
59
                connect the vlan 'n' to multicast maddr and port
60
-net none       use it alone to have zero network devices; if no -net option
61
                is provided, the default is '-net nic -net user'
62

    
63
-tftp dir       allow tftp access to files in dir [-net user]
64
-bootp file     advertise file in BOOTP replies
65
-smb dir        allow SMB access to files in 'dir' [-net user]
66
-redir [tcp|udp]:host-port:[guest-host]:guest-port
67
                redirect TCP or UDP connections from host to guest [-net user]
68

    
69
Linux boot specific:
70
-kernel bzImage use 'bzImage' as kernel image
71
-append cmdline use 'cmdline' as kernel command line
72
-initrd file    use 'file' as initial ram disk
73

    
74
Debug/Expert options:
75
-monitor dev    redirect the monitor to char device 'dev'
76
-serial dev     redirect the serial port to char device 'dev'
77
-parallel dev   redirect the parallel port to char device 'dev'
78
-pidfile file   Write PID to 'file'
79
-S              freeze CPU at startup (use 'c' to start execution)
80
-s              wait gdb connection to port
81
-p port         set gdb connection port [default=1234]
82
-d item1,...    output log to /tmp/qemu.log (use -d ? for a list of log items)
83
-hdachs c,h,s[,t]  force hard disk 0 physical geometry and the optional BIOS
84
                translation (t=none or lba) (usually qemu can guess them)
85
-L path         set the directory for the BIOS, VGA BIOS and keymaps
86
-no-kvm         disable KVM hardware virtualization
87
-no-kvm-irqchip disable KVM kernel mode PIC/IOAPIC/LAPIC
88
-no-kvm-pit	    disable KVM kernel mode PIT
89
-std-vga        simulate a standard VGA card with VESA Bochs Extensions
90
                (default is CL-GD5446 PCI VGA)
91
-no-acpi        disable ACPI
92
-curses         use a curses/ncurses interface instead of SDL
93
-no-reboot      exit instead of rebooting
94
-no-shutdown    stop before shutdown
95
-loadvm [tag|id]  start right away with a saved state (loadvm in monitor)
96
-vnc display    start a VNC server on display
97
-daemonize      daemonize QEMU after initializing
98
-tdf            inject timer interrupts that got lost
99
-kvm-shadow-memory megs set the amount of shadow pages to be allocated
100
-mem-path       set the path to hugetlbfs/tmpfs mounted directory, also enables allocation of guest memory with huge pages
101
-option-rom rom load a file, rom, into the option ROM space
102
-clock          force the use of the given methods for timer alarm.
103
                To see what timers are available use -clock ?
104
-startdate      select initial date of the clock
105
-icount [N|auto]
106
                Enable virtual instruction counter with 2^N clock ticks per instruction
107

    
108
During emulation, the following keys are useful:
109
ctrl-alt-f      toggle full screen
110
ctrl-alt-n      switch to virtual console 'n'
111
ctrl-alt        toggle mouse and keyboard grab
112

    
113
When using -nographic, press 'ctrl-a h' to get some help.