QEMU Options » History » Version 1
Sergey Smolov, 05/16/2018 01:51 PM
1 | 1 | Sergey Smolov | h1. QEMU Options |
---|---|---|---|
2 | |||
3 | The output for QEMU with "-help" option is written below. |
||
4 | |||
5 | <pre> |
||
6 | |||
7 | Standard options: |
||
8 | -h or -help display this help and exit |
||
9 | -version display version information and exit |
||
10 | -machine [type=]name[,prop[=value][,...]] |
||
11 | selects emulated machine ('-machine help' for list) |
||
12 | property accel=accel1[:accel2[:...]] selects accelerator |
||
13 | supported accelerators are kvm, xen, tcg (default: tcg) |
||
14 | kernel_irqchip=on|off|split controls accelerated irqchip support (default=off) |
||
15 | vmport=on|off|auto controls emulation of vmport (default: auto) |
||
16 | kvm_shadow_mem=size of KVM shadow MMU in bytes |
||
17 | dump-guest-core=on|off include guest memory in a core dump (default=on) |
||
18 | mem-merge=on|off controls memory merge support (default: on) |
||
19 | igd-passthru=on|off controls IGD GFX passthrough support (default=off) |
||
20 | aes-key-wrap=on|off controls support for AES key wrapping (default=on) |
||
21 | dea-key-wrap=on|off controls support for DEA key wrapping (default=on) |
||
22 | suppress-vmdesc=on|off disables self-describing migration (default=off) |
||
23 | nvdimm=on|off controls NVDIMM support (default=off) |
||
24 | enforce-config-section=on|off enforce configuration section migration (default=off) |
||
25 | -cpu cpu select CPU ('-cpu help' for list) |
||
26 | -accel [accel=]accelerator[,thread=single|multi] |
||
27 | select accelerator ('-accel help for list') |
||
28 | thread=single|multi (enable multi-threaded TCG)-smp [cpus=]n[,maxcpus=cpus][,cores=cores][,threads=threads][,sockets=sockets] |
||
29 | set the number of CPUs to 'n' [default=1] |
||
30 | maxcpus= maximum number of total cpus, including |
||
31 | offline CPUs for hotplug, etc |
||
32 | cores= number of CPU cores on one socket |
||
33 | threads= number of threads on one CPU core |
||
34 | sockets= number of discrete sockets in the system |
||
35 | -numa node[,mem=size][,cpus=firstcpu[-lastcpu]][,nodeid=node] |
||
36 | -numa node[,memdev=id][,cpus=firstcpu[-lastcpu]][,nodeid=node] |
||
37 | -add-fd fd=fd,set=set[,opaque=opaque] |
||
38 | Add 'fd' to fd 'set' |
||
39 | -set group.id.arg=value |
||
40 | set <arg> parameter for item <id> of type <group> |
||
41 | i.e. -set drive.$id.file=/path/to/image |
||
42 | -global driver.property=value |
||
43 | -global driver=driver,property=property,value=value |
||
44 | set a global default for a driver property |
||
45 | -boot [order=drives][,once=drives][,menu=on|off] |
||
46 | [,splash=sp_name][,splash-time=sp_time][,reboot-timeout=rb_time][,strict=on|off] |
||
47 | 'drives': floppy (a), hard disk (c), CD-ROM (d), network (n) |
||
48 | 'sp_name': the file's name that would be passed to bios as logo picture, if menu=on |
||
49 | 'sp_time': the period that splash picture last if menu=on, unit is ms |
||
50 | 'rb_timeout': the timeout before guest reboot when boot failed, unit is ms |
||
51 | -m [size=]megs[,slots=n,maxmem=size] |
||
52 | configure guest RAM |
||
53 | size: initial amount of guest memory |
||
54 | slots: number of hotplug slots (default: none) |
||
55 | maxmem: maximum amount of guest memory (default: none) |
||
56 | NOTE: Some architectures might enforce a specific granularity |
||
57 | -mem-path FILE provide backing storage for guest RAM |
||
58 | -mem-prealloc preallocate guest memory (use with -mem-path) |
||
59 | -k language use keyboard layout (for example 'fr' for French) |
||
60 | -audio-help print list of audio drivers and their options |
||
61 | -soundhw c1,... enable audio support |
||
62 | and only specified sound cards (comma separated list) |
||
63 | use '-soundhw help' to get the list of supported cards |
||
64 | use '-soundhw all' to enable all of them |
||
65 | -balloon none disable balloon device |
||
66 | -balloon virtio[,addr=str] |
||
67 | enable virtio balloon device (default) |
||
68 | -device driver[,prop[=value][,...]] |
||
69 | add device (based on driver) |
||
70 | prop=value,... sets driver properties |
||
71 | use '-device help' to print all possible drivers |
||
72 | use '-device driver,help' to print all possible properties |
||
73 | -name string1[,process=string2][,debug-threads=on|off] |
||
74 | set the name of the guest |
||
75 | string1 sets the window title and string2 the process name (on Linux) |
||
76 | When debug-threads is enabled, individual threads are given a separate name (on Linux) |
||
77 | NOTE: The thread names are for debugging and not a stable API. |
||
78 | -uuid %08x-%04x-%04x-%04x-%012x |
||
79 | specify machine UUID |
||
80 | : |
||
81 | Block device options: |
||
82 | -fda/-fdb file use 'file' as floppy disk 0/1 image |
||
83 | -hda/-hdb file use 'file' as IDE hard disk 0/1 image |
||
84 | -hdc/-hdd file use 'file' as IDE hard disk 2/3 image |
||
85 | -cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master) |
||
86 | -blockdev [driver=]driver[,node-name=N][,discard=ignore|unmap] |
||
87 | [,cache.direct=on|off][,cache.no-flush=on|off] |
||
88 | [,read-only=on|off][,detect-zeroes=on|off|unmap] |
||
89 | [,driver specific parameters...] |
||
90 | configure a block backend |
||
91 | -drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i] |
||
92 | [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off] |
||
93 | [,cache=writethrough|writeback|none|directsync|unsafe][,format=f] |
||
94 | [,serial=s][,addr=A][,rerror=ignore|stop|report] |
||
95 | [,werror=ignore|stop|report|enospc][,id=name][,aio=threads|native] |
||
96 | [,readonly=on|off][,copy-on-read=on|off] |
||
97 | [,discard=ignore|unmap][,detect-zeroes=on|off|unmap] |
||
98 | [[,bps=b]|[[,bps_rd=r][,bps_wr=w]]] |
||
99 | [[,iops=i]|[[,iops_rd=r][,iops_wr=w]]] |
||
100 | [[,bps_max=bm]|[[,bps_rd_max=rm][,bps_wr_max=wm]]] |
||
101 | [[,iops_max=im]|[[,iops_rd_max=irm][,iops_wr_max=iwm]]] |
||
102 | [[,iops_size=is]] |
||
103 | [[,group=g]] |
||
104 | use 'file' as a drive image |
||
105 | -mtdblock file use 'file' as on-board Flash memory image |
||
106 | -sd file use 'file' as SecureDigital card image |
||
107 | -pflash file use 'file' as a parallel flash image |
||
108 | -snapshot write to temporary files instead of disk image files |
||
109 | -hdachs c,h,s[,t] |
||
110 | force hard disk 0 physical geometry and the optional BIOS |
||
111 | translation (t=none or lba) (usually QEMU can guess them) |
||
112 | -fsdev fsdriver,id=id[,path=path,][security_model={mapped-xattr|mapped-file|passthrough|none}] |
||
113 | [,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd] |
||
114 | [[,throttling.bps-total=b]|[[,throttling.bps-read=r][,throttling.bps-write=w]]] |
||
115 | [[,throttling.iops-total=i]|[[,throttling.iops-read=r][,throttling.iops-write=w]]] |
||
116 | [[,throttling.bps-total-max=bm]|[[,throttling.bps-read-max=rm][,throttling.bps-write-max=wm]]] |
||
117 | [[,throttling.iops-total-max=im]|[[,throttling.iops-read-max=irm][,throttling.iops-write-max=iwm]]] |
||
118 | [[,throttling.iops-size=is]] |
||
119 | -virtfs local,path=path,mount_tag=tag,security_model=[mapped-xattr|mapped-file|passthrough|none] |
||
120 | [,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd] |
||
121 | -virtfs_synth Create synthetic file system image |
||
122 | : |
||
123 | USB options: |
||
124 | -usb enable the USB driver (will be the default soon) |
||
125 | -usbdevice name add the host or guest USB device 'name' |
||
126 | : |
||
127 | Display options: |
||
128 | -display sdl[,frame=on|off][,alt_grab=on|off][,ctrl_grab=on|off] |
||
129 | [,window_close=on|off][,gl=on|off] |
||
130 | -display gtk[,grab_on_hover=on|off][,gl=on|off]| |
||
131 | -display vnc=<display>[,<optargs>] |
||
132 | -display curses |
||
133 | -display none select display type |
||
134 | The default display is equivalent to |
||
135 | "-display gtk" |
||
136 | -nographic disable graphical output and redirect serial I/Os to console |
||
137 | -trace-log enables emulator logging in an execution format |
||
138 | -print-pte-addr prints PTE address value to stdout every time it is calculated |
||
139 | -curses shorthand for -display curses |
||
140 | -no-frame open SDL window without a frame and window decorations |
||
141 | -alt-grab use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt) |
||
142 | -ctrl-grab use Right-Ctrl to grab mouse (instead of Ctrl-Alt) |
||
143 | -no-quit disable SDL window close capability |
||
144 | -sdl shorthand for -display sdl |
||
145 | -spice [port=port][,tls-port=secured-port][,x509-dir=<dir>] |
||
146 | [,x509-key-file=<file>][,x509-key-password=<file>] |
||
147 | [,x509-cert-file=<file>][,x509-cacert-file=<file>] |
||
148 | [,x509-dh-key-file=<file>][,addr=addr][,ipv4|ipv6|unix] |
||
149 | [,tls-ciphers=<list>] |
||
150 | [,tls-channel=[main|display|cursor|inputs|record|playback]] |
||
151 | [,plaintext-channel=[main|display|cursor|inputs|record|playback]] |
||
152 | [,sasl][,password=<secret>][,disable-ticketing] |
||
153 | [,image-compression=[auto_glz|auto_lz|quic|glz|lz|off]] |
||
154 | [,jpeg-wan-compression=[auto|never|always]] |
||
155 | [,zlib-glz-wan-compression=[auto|never|always]] |
||
156 | [,streaming-video=[off|all|filter]][,disable-copy-paste] |
||
157 | [,disable-agent-file-xfer][,agent-mouse=[on|off]] |
||
158 | [,playback-compression=[on|off]][,seamless-migration=[on|off]] |
||
159 | [,gl=[on|off]][,rendernode=<file>] |
||
160 | enable spice |
||
161 | at least one of {port, tls-port} is mandatory |
||
162 | -portrait rotate graphical output 90 deg left (only PXA LCD) |
||
163 | -rotate <deg> rotate graphical output some deg left (only PXA LCD) |
||
164 | -vga [std|cirrus|vmware|qxl|xenfb|tcx|cg3|virtio|none] |
||
165 | select video card type |
||
166 | -full-screen start in full screen |
||
167 | -vnc <display> shorthand for -display vnc=<display> |
||
168 | -no-acpi disable ACPI |
||
169 | -smbios file=binary |
||
170 | load SMBIOS entry from binary file |
||
171 | -smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d] |
||
172 | [,uefi=on|off] |
||
173 | specify SMBIOS type 0 fields |
||
174 | -smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str] |
||
175 | [,uuid=uuid][,sku=str][,family=str] |
||
176 | specify SMBIOS type 1 fields |
||
177 | -smbios type=2[,manufacturer=str][,product=str][,version=str][,serial=str] |
||
178 | [,asset=str][,location=str] |
||
179 | specify SMBIOS type 2 fields |
||
180 | -smbios type=3[,manufacturer=str][,version=str][,serial=str][,asset=str] |
||
181 | [,sku=str] |
||
182 | specify SMBIOS type 3 fields |
||
183 | -smbios type=4[,sock_pfx=str][,manufacturer=str][,version=str][,serial=str] |
||
184 | [,asset=str][,part=str] |
||
185 | specify SMBIOS type 4 fields |
||
186 | -smbios type=17[,loc_pfx=str][,bank=str][,manufacturer=str][,serial=str] |
||
187 | [,asset=str][,part=str][,speed=%d] |
||
188 | specify SMBIOS type 17 fields |
||
189 | : |
||
190 | Network options: |
||
191 | -netdev user,id=str[,ipv4[=on|off]][,net=addr[/mask]][,host=addr] |
||
192 | [,ipv6[=on|off]][,ipv6-net=addr[/int]][,ipv6-host=addr] |
||
193 | [,restrict=on|off][,hostname=host][,dhcpstart=addr] |
||
194 | [,dns=addr][,ipv6-dns=addr][,dnssearch=domain][,tftp=dir] |
||
195 | [,bootfile=f][,hostfwd=rule][,guestfwd=rule][,smb=dir[,smbserver=addr]] |
||
196 | configure a user mode network backend with ID 'str', |
||
197 | its DHCP server and optional services |
||
198 | -netdev tap,id=str[,fd=h][,fds=x:y:...:z][,ifname=name][,script=file][,downscript=dfile] |
||
199 | [,br=bridge][,helper=helper][,sndbuf=nbytes][,vnet_hdr=on|off][,vhost=on|off] |
||
200 | [,vhostfd=h][,vhostfds=x:y:...:z][,vhostforce=on|off][,queues=n] |
||
201 | [,poll-us=n] |
||
202 | configure a host TAP network backend with ID 'str' |
||
203 | connected to a bridge (default=br0) |
||
204 | use network scripts 'file' (default=/etc/qemu-ifup) |
||
205 | to configure it and 'dfile' (default=/etc/qemu-ifdown) |
||
206 | to deconfigure it |
||
207 | use '[down]script=no' to disable script execution |
||
208 | use network helper 'helper' (default=./build/target/libexec/qemu-bridge-helper) to |
||
209 | configure it |
||
210 | use 'fd=h' to connect to an already opened TAP interface |
||
211 | use 'fds=x:y:...:z' to connect to already opened multiqueue capable TAP interfaces |
||
212 | use 'sndbuf=nbytes' to limit the size of the send buffer (the |
||
213 | default is disabled 'sndbuf=0' to enable flow control set 'sndbuf=1048576') |
||
214 | use vnet_hdr=off to avoid enabling the IFF_VNET_HDR tap flag |
||
215 | use vnet_hdr=on to make the lack of IFF_VNET_HDR support an error condition |
||
216 | use vhost=on to enable experimental in kernel accelerator |
||
217 | (only has effect for virtio guests which use MSIX) |
||
218 | use vhostforce=on to force vhost on for non-MSIX virtio guests |
||
219 | use 'vhostfd=h' to connect to an already opened vhost net device |
||
220 | use 'vhostfds=x:y:...:z to connect to multiple already opened vhost net devices |
||
221 | use 'queues=n' to specify the number of queues to be created for multiqueue TAP |
||
222 | use 'poll-us=n' to speciy the maximum number of microseconds that could be |
||
223 | spent on busy polling for vhost net |
||
224 | -netdev bridge,id=str[,br=bridge][,helper=helper] |
||
225 | configure a host TAP network backend with ID 'str' that is |
||
226 | connected to a bridge (default=br0) |
||
227 | using the program 'helper (default=./build/target/libexec/qemu-bridge-helper) |
||
228 | -netdev l2tpv3,id=str,src=srcaddr,dst=dstaddr[,srcport=srcport][,dstport=dstport] |
||
229 | [,rxsession=rxsession],txsession=txsession[,ipv6=on/off][,udp=on/off] |
||
230 | [,cookie64=on/off][,counter][,pincounter][,txcookie=txcookie] |
||
231 | [,rxcookie=rxcookie][,offset=offset] |
||
232 | configure a network backend with ID 'str' connected to |
||
233 | an Ethernet over L2TPv3 pseudowire. |
||
234 | Linux kernel 3.3+ as well as most routers can talk |
||
235 | L2TPv3. This transport allows connecting a VM to a VM, |
||
236 | VM to a router and even VM to Host. It is a nearly-universal |
||
237 | standard (RFC3391). Note - this implementation uses static |
||
238 | pre-configured tunnels (same as the Linux kernel). |
||
239 | use 'src=' to specify source address |
||
240 | use 'dst=' to specify destination address |
||
241 | use 'udp=on' to specify udp encapsulation |
||
242 | use 'srcport=' to specify source udp port |
||
243 | use 'dstport=' to specify destination udp port |
||
244 | use 'ipv6=on' to force v6 |
||
245 | L2TPv3 uses cookies to prevent misconfiguration as |
||
246 | well as a weak security measure |
||
247 | use 'rxcookie=0x012345678' to specify a rxcookie |
||
248 | use 'txcookie=0x012345678' to specify a txcookie |
||
249 | use 'cookie64=on' to set cookie size to 64 bit, otherwise 32 |
||
250 | use 'counter=off' to force a 'cut-down' L2TPv3 with no counter |
||
251 | use 'pincounter=on' to work around broken counter handling in peer |
||
252 | use 'offset=X' to add an extra offset between header and data |
||
253 | -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port] |
||
254 | configure a network backend to connect to another network |
||
255 | using a socket connection |
||
256 | -netdev socket,id=str[,fd=h][,mcast=maddr:port[,localaddr=addr]] |
||
257 | configure a network backend to connect to a multicast maddr and port |
||
258 | use 'localaddr=addr' to specify the host address to send packets from |
||
259 | -netdev socket,id=str[,fd=h][,udp=host:port][,localaddr=host:port] |
||
260 | configure a network backend to connect to another network |
||
261 | using an UDP tunnel |
||
262 | -netdev vhost-user,id=str,chardev=dev[,vhostforce=on|off] |
||
263 | configure a vhost-user network, backed by a chardev 'dev' |
||
264 | -netdev hubport,id=str,hubid=n |
||
265 | configure a hub port on QEMU VLAN 'n' |
||
266 | -net nic[,vlan=n][,macaddr=mac][,model=type][,name=str][,addr=str][,vectors=v] |
||
267 | old way to create a new NIC and connect it to VLAN 'n' |
||
268 | (use the '-device devtype,netdev=str' option if possible instead) |
||
269 | -net dump[,vlan=n][,file=f][,len=n] |
||
270 | dump traffic on vlan 'n' to file 'f' (max n bytes per packet) |
||
271 | -net none use it alone to have zero network devices. If no -net option |
||
272 | is provided, the default is '-net nic -net user' |
||
273 | -net [user|tap|bridge|socket][,vlan=n][,option][,option][,...] |
||
274 | old way to initialize a host network interface |
||
275 | (use the -netdev option if possible instead) |
||
276 | : |
||
277 | Character device options: |
||
278 | -chardev help |
||
279 | -chardev null,id=id[,mux=on|off][,logfile=PATH][,logappend=on|off] |
||
280 | -chardev socket,id=id[,host=host],port=port[,to=to][,ipv4][,ipv6][,nodelay][,reconnect=seconds] |
||
281 | [,server][,nowait][,telnet][,reconnect=seconds][,mux=on|off] |
||
282 | [,logfile=PATH][,logappend=on|off][,tls-creds=ID] (tcp) |
||
283 | -chardev socket,id=id,path=path[,server][,nowait][,telnet][,reconnect=seconds] |
||
284 | [,mux=on|off][,logfile=PATH][,logappend=on|off] (unix) |
||
285 | -chardev udp,id=id[,host=host],port=port[,localaddr=localaddr] |
||
286 | [,localport=localport][,ipv4][,ipv6][,mux=on|off] |
||
287 | [,logfile=PATH][,logappend=on|off] |
||
288 | -chardev msmouse,id=id[,mux=on|off][,logfile=PATH][,logappend=on|off] |
||
289 | -chardev vc,id=id[[,width=width][,height=height]][[,cols=cols][,rows=rows]] |
||
290 | [,mux=on|off][,logfile=PATH][,logappend=on|off] |
||
291 | -chardev ringbuf,id=id[,size=size][,logfile=PATH][,logappend=on|off] |
||
292 | -chardev file,id=id,path=path[,mux=on|off][,logfile=PATH][,logappend=on|off] |
||
293 | -chardev pipe,id=id,path=path[,mux=on|off][,logfile=PATH][,logappend=on|off] |
||
294 | -chardev pty,id=id[,mux=on|off][,logfile=PATH][,logappend=on|off] |
||
295 | -chardev stdio,id=id[,mux=on|off][,signal=on|off][,logfile=PATH][,logappend=on|off] |
||
296 | -chardev serial,id=id,path=path[,mux=on|off][,logfile=PATH][,logappend=on|off] |
||
297 | -chardev tty,id=id,path=path[,mux=on|off][,logfile=PATH][,logappend=on|off] |
||
298 | -chardev parallel,id=id,path=path[,mux=on|off][,logfile=PATH][,logappend=on|off] |
||
299 | -chardev parport,id=id,path=path[,mux=on|off][,logfile=PATH][,logappend=on|off] |
||
300 | : |
||
301 | Device URL Syntax: |
||
302 | -iscsi [user=user][,password=password] |
||
303 | [,header-digest=CRC32C|CR32C-NONE|NONE-CRC32C|NONE |
||
304 | [,initiator-name=initiator-iqn][,id=target-iqn] |
||
305 | [,timeout=timeout] |
||
306 | iSCSI session parameters |
||
307 | Bluetooth(R) options: |
||
308 | -bt hci,null dumb bluetooth HCI - doesn't respond to commands |
||
309 | -bt hci,host[:id] |
||
310 | use host's HCI with the given name |
||
311 | -bt hci[,vlan=n] |
||
312 | emulate a standard HCI in virtual scatternet 'n' |
||
313 | -bt vhci[,vlan=n] |
||
314 | add host computer to virtual scatternet 'n' using VHCI |
||
315 | -bt device:dev[,vlan=n] |
||
316 | emulate a bluetooth device 'dev' in scatternet 'n' |
||
317 | : |
||
318 | TPM device options: |
||
319 | -tpmdev passthrough,id=id[,path=path][,cancel-path=path] |
||
320 | use path to provide path to a character device; default is /dev/tpm0 |
||
321 | use cancel-path to provide path to TPM's cancel sysfs entry; if |
||
322 | not provided it will be searched for in /sys/class/misc/tpm?/device |
||
323 | : |
||
324 | Linux/Multiboot boot specific: |
||
325 | -kernel bzImage use 'bzImage' as kernel image |
||
326 | -append cmdline use 'cmdline' as kernel command line |
||
327 | -initrd file use 'file' as initial ram disk |
||
328 | -dtb file use 'file' as device tree image |
||
329 | : |
||
330 | Debug/Expert options: |
||
331 | -fw_cfg [name=]<name>,file=<file> |
||
332 | add named fw_cfg entry with contents from file |
||
333 | -fw_cfg [name=]<name>,string=<str> |
||
334 | add named fw_cfg entry with contents from string |
||
335 | -serial dev redirect the serial port to char device 'dev' |
||
336 | -parallel dev redirect the parallel port to char device 'dev' |
||
337 | -monitor dev redirect the monitor to char device 'dev' |
||
338 | -qmp dev like -monitor but opens in 'control' mode |
||
339 | -qmp-pretty dev like -qmp but uses pretty JSON formatting |
||
340 | -mon [chardev=]name[,mode=readline|control] |
||
341 | -debugcon dev redirect the debug console to char device 'dev' |
||
342 | -pidfile file write PID to 'file' |
||
343 | -singlestep always run in singlestep mode |
||
344 | -S freeze CPU at startup (use 'c' to start execution) |
||
345 | -realtime [mlock=on|off] |
||
346 | run qemu with realtime features |
||
347 | mlock=on|off controls mlock support (default: on) |
||
348 | -gdb dev wait for gdb connection on 'dev' |
||
349 | -s shorthand for -gdb tcp::1234 |
||
350 | -d item1,... enable logging of specified items (use '-d help' for a list of log items) |
||
351 | -D logfile output log to logfile (default stderr) |
||
352 | -dfilter range,.. filter debug output to range of addresses (useful for -d cpu,exec,etc..) |
||
353 | -L path set the directory for the BIOS, VGA BIOS and keymaps |
||
354 | -bios file set the filename for the BIOS |
||
355 | -enable-kvm enable KVM full virtualization support |
||
356 | -xen-domid id specify xen guest domain id |
||
357 | -xen-create create domain using xen hypercalls, bypassing xend |
||
358 | warning: should not be used when xend is in use |
||
359 | -xen-attach attach to existing xen domain |
||
360 | xend will use this when starting QEMU |
||
361 | -no-reboot exit instead of rebooting |
||
362 | -no-shutdown stop before shutdown |
||
363 | -loadvm [tag|id] |
||
364 | start right away with a saved state (loadvm in monitor) |
||
365 | -daemonize daemonize QEMU after initializing |
||
366 | -option-rom rom load a file, rom, into the option ROM space |
||
367 | -rtc [base=utc|localtime|date][,clock=host|rt|vm][,driftfix=none|slew] |
||
368 | set the RTC base and clock, enable drift fix for clock ticks (x86 only) |
||
369 | -icount [shift=N|auto][,align=on|off][,sleep=on|off,rr=record|replay,rrfile=<filename>,rrsnapshot=<snapshot>] |
||
370 | enable virtual instruction counter with 2^N clock ticks per |
||
371 | instruction, enable aligning the host and virtual clocks |
||
372 | or disable real time cpu sleeping |
||
373 | -watchdog model |
||
374 | enable virtual hardware watchdog [default=none] |
||
375 | -watchdog-action reset|shutdown|poweroff|pause|debug|none |
||
376 | action when watchdog fires [default=reset] |
||
377 | -echr chr set terminal escape character instead of ctrl-a |
||
378 | -virtioconsole c |
||
379 | set virtio console |
||
380 | -show-cursor show cursor |
||
381 | -tb-size n set TB size |
||
382 | -incoming tcp:[host]:port[,to=maxport][,ipv4][,ipv6] |
||
383 | -incoming rdma:host:port[,ipv4][,ipv6] |
||
384 | -incoming unix:socketpath |
||
385 | prepare for incoming migration, listen on |
||
386 | specified protocol and socket address |
||
387 | -incoming fd:fd |
||
388 | -incoming exec:cmdline |
||
389 | accept incoming migration on given file descriptor |
||
390 | or from given external command |
||
391 | -incoming defer |
||
392 | wait for the URI to be specified via migrate_incoming |
||
393 | -only-migratable allow only migratable devices |
||
394 | -nodefaults don't create default devices |
||
395 | -chroot dir chroot to dir just before starting the VM |
||
396 | -runas user change to user id user just before starting the VM |
||
397 | -semihosting semihosting mode |
||
398 | -semihosting-config [enable=on|off][,target=native|gdb|auto][,arg=str[,...]] |
||
399 | semihosting configuration |
||
400 | -old-param old param mode |
||
401 | -sandbox <arg> Enable seccomp mode 2 system call filter (default 'off'). |
||
402 | -readconfig <file> |
||
403 | -writeconfig <file> |
||
404 | read/write config file |
||
405 | -nodefconfig |
||
406 | do not load default config files at startup |
||
407 | -no-user-config |
||
408 | do not load user-provided config files at startup |
||
409 | -trace [[enable=]<pattern>][,events=<file>][,file=<file>] |
||
410 | specify tracing options |
||
411 | -enable-fips enable FIPS 140-2 compliance |
||
412 | -msg timestamp[=on|off] |
||
413 | change the format of messages |
||
414 | on|off controls leading timestamps (default:on) |
||
415 | -dump-vmstate <file> |
||
416 | Output vmstate information in JSON format to file. |
||
417 | Use the scripts/vmstate-static-checker.py file to |
||
418 | check for possible regressions in migration code |
||
419 | by comparing two such vmstate dumps. |
||
420 | : |
||
421 | Generic object creation: |
||
422 | -object TYPENAME[,PROP1=VALUE1,...] |
||
423 | create a new object of type TYPENAME setting properties |
||
424 | in the order they are specified. Note that the 'id' |
||
425 | property must be set. These objects are placed in the |
||
426 | '/objects' path. |
||
427 | |||
428 | During emulation, the following keys are useful: |
||
429 | ctrl-alt-f toggle full screen |
||
430 | ctrl-alt-n switch to virtual console 'n' |
||
431 | ctrl-alt toggle mouse and keyboard grab |
||
432 | |||
433 | When using -nographic, press 'ctrl-a h' to get some help. |
||
434 | </pre> |