Guest User

Untitled

a guest
Apr 24th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.24 KB | None | 0 0
  1. kvm -help
  2. QEMU emulator version 1.0 (qemu-kvm-1.0), Copyright (c) 2003-2008 Fabrice Bellard
  3. usage: qemu [options] [disk_image]
  4.  
  5. 'disk_image' is a raw hard disk image for IDE hard disk 0
  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 ? for list)
  12. property accel=accel1[:accel2[:...]] selects accelerator
  13. supported accelerators are kvm, xen, tcg (default: tcg)
  14. -cpu cpu select CPU (-cpu ? for list)
  15. -smp n[,maxcpus=cpus][,cores=cores][,threads=threads][,sockets=sockets]
  16. set the number of CPUs to 'n' [default=1]
  17. maxcpus= maximum number of total cpus, including
  18. offline CPUs for hotplug, etc
  19. cores= number of CPU cores on one socket
  20. threads= number of threads on one CPU core
  21. sockets= number of discrete sockets in the system
  22. -numa node[,mem=size][,cpus=cpu[-cpu]][,nodeid=node]
  23. -fda/-fdb file use 'file' as floppy disk 0/1 image
  24. -hda/-hdb file use 'file' as IDE hard disk 0/1 image
  25. -hdc/-hdd file use 'file' as IDE hard disk 2/3 image
  26. -cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master)
  27. -drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]
  28. [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]
  29. [,cache=writethrough|writeback|none|directsync|unsafe][,format=f]
  30. [,serial=s][,addr=A][,id=name][,aio=threads|native]
  31. [,readonly=on|off]
  32. use 'file' as a drive image
  33. -set group.id.arg=value
  34. set <arg> parameter for item <id> of type <group>
  35. i.e. -set drive.$id.file=/path/to/image
  36. -global driver.property=value
  37. set a global default for a driver property
  38. -mtdblock file use 'file' as on-board Flash memory image
  39. -sd file use 'file' as SecureDigital card image
  40. -pflash file use 'file' as a parallel flash image
  41. -boot [order=drives][,once=drives][,menu=on|off]
  42. [,splash=sp_name][,splash-time=sp_time]
  43. 'drives': floppy (a), hard disk (c), CD-ROM (d), network (n)
  44. 'sp_name': the file's name that would be passed to bios as logo picture, if menu=on
  45. 'sp_time': the period that splash picture last if menu=on, unit is ms
  46. -snapshot write to temporary files instead of disk image files
  47. -m megs set virtual RAM size to megs MB [default=384]
  48. -mem-path FILE provide backing storage for guest RAM
  49. -mem-prealloc preallocate guest memory (use with -mem-path)
  50. -k language use keyboard layout (for example 'fr' for French)
  51. -audio-help print list of audio drivers and their options
  52. -soundhw c1,... enable audio support
  53. and only specified sound cards (comma separated list)
  54. use -soundhw ? to get the list of supported cards
  55. use -soundhw all to enable all of them
  56. -usb enable the USB driver (will be the default soon)
  57. -usbdevice name add the host or guest USB device 'name'
  58. -device driver[,prop[=value][,...]]
  59. add device (based on driver)
  60. prop=value,... sets driver properties
  61. use -device ? to print all possible drivers
  62. use -device driver,? to print all possible properties
  63.  
  64. File system options:
  65. -fsdev fsdriver,id=id,path=path,[security_model={mapped|passthrough|none}]
  66. [,writeout=immediate][,readonly]
  67.  
  68. Virtual File system pass-through options:
  69. -virtfs local,path=path,mount_tag=tag,security_model=[mapped|passthrough|none]
  70. [,writeout=immediate][,readonly]
  71. -virtfs_synth Create synthetic file system image
  72.  
  73. -name string1[,process=string2]
  74. set the name of the guest
  75. string1 sets the window title and string2 the process name (on Linux)
  76. -uuid %08x-%04x-%04x-%04x-%012x
  77. specify machine UUID
  78.  
  79. Display options:
  80. -display sdl[,frame=on|off][,alt_grab=on|off][,ctrl_grab=on|off]
  81. [,window_close=on|off]|curses|none|
  82. vnc=<display>[,<optargs>]
  83. select display type
  84. -nographic disable graphical output and redirect serial I/Os to console
  85. -curses use a curses/ncurses interface instead of SDL
  86. -no-frame open SDL window without a frame and window decorations
  87. -alt-grab use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt)
  88. -ctrl-grab use Right-Ctrl to grab mouse (instead of Ctrl-Alt)
  89. -no-quit disable SDL window close capability
  90. -sdl enable SDL
  91. -spice <args> enable spice
  92. -portrait rotate graphical output 90 deg left (only PXA LCD)
  93. -rotate <deg> rotate graphical output some deg left (only PXA LCD)
  94. -vga [std|cirrus|vmware|qxl|xenfb|none]
  95. select video card type
  96. -full-screen start in full screen
  97. -g WxH[xDEPTH] Set the initial graphical resolution and depth
  98. -vnc display start a VNC server on display
  99.  
  100. i386 target only:
  101. -win2k-hack use it when installing Windows 2000 to avoid a disk full bug
  102. -no-fd-bootchk disable boot signature checking for floppy disks
  103. -no-acpi disable ACPI
  104. -no-hpet disable HPET
  105. -balloon none disable balloon device
  106. -balloon virtio[,addr=str]
  107. enable virtio balloon device (default)
  108. -acpitable [sig=str][,rev=n][,oem_id=str][,oem_table_id=str][,oem_rev=n][,asl_compiler_id=str][,asl_compiler_rev=n][,{data|file}=file1[:file2]...]
  109. ACPI table description
  110. -smbios file=binary
  111. load SMBIOS entry from binary file
  112. -smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d]
  113. specify SMBIOS type 0 fields
  114. -smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str]
  115. [,uuid=uuid][,sku=str][,family=str]
  116. specify SMBIOS type 1 fields
  117.  
  118. Network options:
  119. -net nic[,vlan=n][,macaddr=mac][,model=type][,name=str][,addr=str][,vectors=v]
  120. create a new Network Interface Card and connect it to VLAN 'n'
  121. -net user[,vlan=n][,name=str][,net=addr[/mask]][,host=addr][,restrict=on|off]
  122. [,hostname=host][,dhcpstart=addr][,dns=addr][,tftp=dir][,bootfile=f]
  123. [,hostfwd=rule][,guestfwd=rule][,smb=dir[,smbserver=addr]]
  124. connect the user mode network stack to VLAN 'n', configure its
  125. DHCP server and enabled optional services
  126. -net tap[,vlan=n][,name=str][,fd=h][,ifname=name][,script=file][,downscript=dfile][,sndbuf=nbytes][,vnet_hdr=on|off][,vhost=on|off][,vhostfd=h][,vhostforce=on|off]
  127. connect the host TAP network interface to VLAN 'n' and use the
  128. network scripts 'file' (default=/etc/qemu-ifup)
  129. and 'dfile' (default=/etc/qemu-ifdown)
  130. use '[down]script=no' to disable script execution
  131. use 'fd=h' to connect to an already opened TAP interface
  132. use 'sndbuf=nbytes' to limit the size of the send buffer (the
  133. default is disabled 'sndbuf=0' to enable flow control set 'sndbuf=1048576')
  134. use vnet_hdr=off to avoid enabling the IFF_VNET_HDR tap flag
  135. use vnet_hdr=on to make the lack of IFF_VNET_HDR support an error condition
  136. use vhost=on to enable experimental in kernel accelerator
  137. (only has effect for virtio guests which use MSIX)
  138. use vhostforce=on to force vhost on for non-MSIX virtio guests
  139. use 'vhostfd=h' to connect to an already opened vhost net device
  140. -net socket[,vlan=n][,name=str][,fd=h][,listen=[host]:port][,connect=host:port]
  141. connect the vlan 'n' to another VLAN using a socket connection
  142. -net socket[,vlan=n][,name=str][,fd=h][,mcast=maddr:port[,localaddr=addr]]
  143. connect the vlan 'n' to multicast maddr and port
  144. use 'localaddr=addr' to specify the host address to send packets from
  145. -net dump[,vlan=n][,file=f][,len=n]
  146. dump traffic on vlan 'n' to file 'f' (max n bytes per packet)
  147. -net none use it alone to have zero network devices. If no -net option
  148. is provided, the default is '-net nic -net user'
  149. -netdev [user|tap|socket],id=str[,option][,option][,...]
  150.  
  151. Character device options:
  152. -chardev null,id=id[,mux=on|off]
  153. -chardev socket,id=id[,host=host],port=host[,to=to][,ipv4][,ipv6][,nodelay]
  154. [,server][,nowait][,telnet][,mux=on|off] (tcp)
  155. -chardev socket,id=id,path=path[,server][,nowait][,telnet],[mux=on|off] (unix)
  156. -chardev udp,id=id[,host=host],port=port[,localaddr=localaddr]
  157. [,localport=localport][,ipv4][,ipv6][,mux=on|off]
  158. -chardev msmouse,id=id[,mux=on|off]
  159. -chardev vc,id=id[[,width=width][,height=height]][[,cols=cols][,rows=rows]]
  160. [,mux=on|off]
  161. -chardev file,id=id,path=path[,mux=on|off]
  162. -chardev pipe,id=id,path=path[,mux=on|off]
  163. -chardev pty,id=id[,mux=on|off]
  164. -chardev stdio,id=id[,mux=on|off][,signal=on|off]
  165. -chardev tty,id=id,path=path[,mux=on|off]
  166. -chardev parport,id=id,path=path[,mux=on|off]
  167.  
  168. Bluetooth(R) options:
  169. -bt hci,null dumb bluetooth HCI - doesn't respond to commands
  170. -bt hci,host[:id]
  171. use host's HCI with the given name
  172. -bt hci[,vlan=n]
  173. emulate a standard HCI in virtual scatternet 'n'
  174. -bt vhci[,vlan=n]
  175. add host computer to virtual scatternet 'n' using VHCI
  176. -bt device:dev[,vlan=n]
  177. emulate a bluetooth device 'dev' in scatternet 'n'
  178.  
  179. Linux/Multiboot boot specific:
  180. -kernel bzImage use 'bzImage' as kernel image
  181. -append cmdline use 'cmdline' as kernel command line
  182. -initrd file use 'file' as initial ram disk
  183.  
  184. Debug/Expert options:
  185. -serial dev redirect the serial port to char device 'dev'
  186. -parallel dev redirect the parallel port to char device 'dev'
  187. -monitor dev redirect the monitor to char device 'dev'
  188. -qmp dev like -monitor but opens in 'control' mode
  189. -mon chardev=[name][,mode=readline|control][,default]
  190. -debugcon dev redirect the debug console to char device 'dev'
  191. -pidfile file write PID to 'file'
  192. -singlestep always run in singlestep mode
  193. -S freeze CPU at startup (use 'c' to start execution)
  194. -gdb dev wait for gdb connection on 'dev'
  195. -s shorthand for -gdb tcp::1234
  196. -d item1,... output log to /tmp/qemu.log (use -d ? for a list of log items)
  197. -D logfile output log to logfile (instead of the default /tmp/qemu.log)
  198. -hdachs c,h,s[,t]
  199. force hard disk 0 physical geometry and the optional BIOS
  200. translation (t=none or lba) (usually qemu can guess them)
  201. -L path set the directory for the BIOS, VGA BIOS and keymaps
  202. -bios file set the filename for the BIOS
  203. -enable-kvm enable KVM full virtualization support
  204. -xen-domid id specify xen guest domain id
  205. -xen-create create domain using xen hypercalls, bypassing xend
  206. warning: should not be used when xend is in use
  207. -xen-attach attach to existing xen domain
  208. xend will use this when starting qemu
  209. -no-reboot exit instead of rebooting
  210. -no-shutdown stop before shutdown
  211. -loadvm [tag|id]
  212. start right away with a saved state (loadvm in monitor)
  213. -daemonize daemonize QEMU after initializing
  214. -option-rom rom load a file, rom, into the option ROM space
  215. -clock force the use of the given methods for timer alarm.
  216. To see what timers are available use -clock ?
  217. -rtc [base=utc|localtime|date][,clock=host|vm][,driftfix=none|slew]
  218. set the RTC base and clock, enable drift fix for clock ticks (x86 only)
  219. -icount [N|auto]
  220. enable virtual instruction counter with 2^N clock ticks per
  221. instruction
  222. -watchdog i6300esb|ib700
  223. enable virtual hardware watchdog [default=none]
  224. -watchdog-action reset|shutdown|poweroff|pause|debug|none
  225. action when watchdog fires [default=reset]
  226. -echr chr set terminal escape character instead of ctrl-a
  227. -virtioconsole c
  228. set virtio console
  229. -show-cursor show cursor
  230. -tb-size n set TB size
  231. -incoming p prepare for incoming migration, listen on port p
  232. -nodefaults don't create default devices
  233. -chroot dir chroot to dir just before starting the VM
  234. -runas user change to user id user just before starting the VM
  235. -prom-env variable=value
  236. set OpenBIOS nvram variables
  237. -semihosting semihosting mode
  238. -old-param old param mode
  239. -readconfig <file>
  240. -writeconfig <file>
  241. read/write config file
  242. -nodefconfig
  243. do not load default config files at startup
  244. -trace [events=<file>][,file=<file>]
  245. specify tracing options
  246. -no-kvm disable KVM hardware virtualization
  247. -no-kvm-irqchip disable KVM kernel mode PIC/IOAPIC/LAPIC
  248. -no-kvm-pit disable KVM kernel mode PIT
  249. -no-kvm-pit-reinjection
  250. disable KVM kernel mode PIT interrupt reinjection
  251. -tdf enable guest time drift compensation
  252. -kvm-shadow-memory MEGABYTES
  253. allocate MEGABYTES for kvm mmu shadowing
  254.  
  255. During emulation, the following keys are useful:
  256. ctrl-alt-f toggle full screen
  257. ctrl-alt-n switch to virtual console 'n'
  258. ctrl-alt toggle mouse and keyboard grab
  259.  
  260. When using -nographic, press 'ctrl-a h' to get some help.
Add Comment
Please, Sign In to add comment