热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

labkvm

3)qemu帮助信息qemu-kvm-h[rootCentos72libvirt]#qemu-kvm-hQEMUemulatorversion1.5.3(qemu-

 

 

3)qemu帮助信息
  qemu-kvm -h
 

[root@Centos72 libvirt]#qemu-kvm -h
QEMU emulator version
1.5.3 (qemu-kvm-1.5.3-156.el7_5.3), Copyright (c) 2003-2008 Fabrice BellardWARNING: Direct use of qemu-kvm from the command line is not supported by Red Hat.
WARNING: Use libvirt
as the stable management interface.
WARNING: Some command line options listed here may not be available
in future releases.usage: qemu-kvm [options] [disk_image]'disk_image' is a raw hard disk image for IDE hard disk 0Standard options: #标准选项
-h or -help display this help and exit
-version display version information and exit
-machine [type=]name[,prop[=value][,...]]selects emulated machine ('-machine help' for list)property accel=accel1[:accel2[:...]] selects acceleratorsupported accelerators are kvm, xen, tcg (default: tcg)kernel_irqchip=on|off controls accelerated irqchip supportkvm_shadow_mem=size of KVM shadow MMUdump-guest-core=on|off include guest memory in a core dump (default=on)mem-merge=on|off controls memory merge support (default: on)
-cpu cpu select CPU ('-cpu help' for list)
-smp n[,maxcpus=cpus][,cores=cores][,threads=threads][,sockets=sockets]set the number of CPUs to 'n' [default=1]maxcpus= maximum number of total cpus, includingoffline CPUs for hotplug, etccores= number of CPU cores on one socketthreads= number of threads on one CPU coresockets= number of discrete sockets in the system
-numa node[,mem=size][,cpus=cpu[-cpu]][,nodeid=node]
-add-fd fd=fd,set=set[,opaque=opaque]Add 'fd' to fd 'set'
-set group.id.arg=valueset parameter for item of type i.e. -set drive.$id.file=/path/to/image
-global driver.prop=valueset a global default for a driver property
-boot [order=drives][,once=drives][,menu=on|off][,splash=sp_name][,splash-time=sp_time][,reboot-timeout=rb_time][,strict=on|off]'drives': floppy (a), hard disk (c), CD-ROM (d), network (n)'sp_name': the file's name that would be passed to bios as logo picture, if menu=on'sp_time': the period that splash picture last if menu=on, unit is ms'rb_timeout': the timeout before guest reboot when boot failed, unit is ms
-m megs set virtual RAM size to megs MB [default=128]
-mem-path FILE provide backing storage for guest RAM
-mem-prealloc preallocate guest memory (use with -mem-path)
-k language use keyboard layout (for example 'fr' for French)
-audio-help print list of audio drivers and their options
-soundhw c1,... enable audio supportand only specified sound cards (comma separated list)use '-soundhw help' to get the list of supported cardsuse '-soundhw all' to enable all of them
-balloon none disable balloon device
-balloon virtio[,addr=str]enable virtio balloon device (default)
-device driver[,prop[=value][,...]]add device (based on driver)prop=value,... sets driver propertiesuse '-device help' to print all possible driversuse '-device driver,help' to print all possible properties
-name string1[,process=string2]set the name of the gueststring1 sets the window title and string2 the process name (on Linux)
-uuid %08x-%04x-%04x-%04x-%012xspecify machine UUIDBlock device options: #块设备选项
-fda/-fdb file use 'file' as floppy disk 0/1 image
-hda/-hdb file use 'file' as IDE hard disk 0/1 image
-hdc/-hdd file use 'file' as IDE hard disk 2/3 image
-cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master)
-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i][,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off][,cache=writethrough|writeback|none|directsync|unsafe][,format=f][,serial=s][,addr=A][,id=name][,aio=threads|native][,readonly=on|off][,copy-on-read=on|off][[,bps=b]|[[,bps_rd=r][,bps_wr=w]]][[,iops=i]|[[,iops_rd=r][,iops_wr=w]]use 'file' as a drive image
-mtdblock file use 'file' as on-board Flash memory image
-sd file use 'file' as SecureDigital card image
-pflash file use 'file' as a parallel flash image
-snapshot write to temporary files instead of disk image files
-hdachs c,h,s[,t]force hard disk 0 physical geometry and the optional BIOStranslation (t=none or lba) (usually QEMU can guess them)
-fsdev fsdriver,id=id[,path=path,][security_model={mapped-xattr|mapped-file|passthrough|none}][,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd]
-virtfs local,path=path,mount_tag=tag,security_model=[mapped-xattr|mapped-file|passthrough|none][,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd]
-virtfs_synth Create synthetic file system imageUSB options:      # usb选项
-usb enable the USB driver (will be the default soon)
-usbdevice name add the host or guest USB device 'name'Display options:
-display sdl[,frame=on|off][,alt_grab=on|off][,ctrl_grab=on|off][,window_close=on|off]|curses|none|vnc=[,]select display type
-nographic disable graphical output and redirect serial I/Os to console
-curses use a curses/ncurses interface instead of SDL
-no-frame open SDL window without a frame and window decorations
-alt-grab use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt)
-ctrl-grab use Right-Ctrl to grab mouse (instead of Ctrl-Alt)
-no-quit disable SDL window close capability
-sdl enable SDL
-spice [port=port][,tls-port=secured-port][,x509-dir=

][,x509-key-file=][,x509-key-password=][,x509-cert-file=][,x509-cacert-file=][,x509-dh-key-file=][,addr=addr][,ipv4|ipv6][,tls-ciphers=][,tls-channel=[main|display|cursor|inputs|record|playback]][,plaintext-channel=[main|display|cursor|inputs|record|playback]][,sasl][,password=][,disable-ticketing][,image-compression=[auto_glz|auto_lz|quic|glz|lz|off]][,jpeg-wan-compression=[auto|never|always]][,zlib-glz-wan-compression=[auto|never|always]][,streaming-video=[off|all|filter]][,disable-copy-paste][,agent-mouse=[on|off]][,playback-compression=[on|off]][,seamless-migration=[on|off]]enable spiceat least one of {port, tls-port} is mandatory
-portrait rotate graphical output 90 deg left (only PXA LCD)
-rotate rotate graphical output some deg left (only PXA LCD)
-vga [std|cirrus|vmware|qxl|xenfb|none]select video card type
-full-screen start in full screen
-vnc display start a VNC server on displayi386 target only:
-win2k-hack use it when installing Windows 2000 to avoid a disk full bug
-no-fd-bootchk disable boot signature checking for floppy disks
-no-acpi disable ACPI
-no-hpet disable HPET
-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]...]ACPI table description
-smbios file=binaryload SMBIOS entry from binary file
-smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d]specify SMBIOS type 0 fields
-smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str][,uuid=uuid][,sku=str][,family=str]specify SMBIOS type 1 fieldsNetwork options:      # 网络选项
-net nic[,vlan=n][,macaddr=mac][,model=type][,name=str][,addr=str][,vectors=v]create a new Network Interface Card and connect it to VLAN 'n'
-net user[,vlan=n][,name=str][,net=addr[/mask]][,host=addr][,restrict=on|off][,hostname=host][,dhcpstart=addr][,dns=addr][,dnssearch=domain][,tftp=dir][,bootfile=f][,hostfwd=rule][,guestfwd=rule][,smb=dir[,smbserver=addr]]connect the user mode network stack to VLAN 'n', configure itsDHCP server and enabled optional services
-net tap[,vlan=n][,name=str][,fd=h][,fds=x:y:...:z][,ifname=name][,script=file][,downscript=dfile][,helper=helper][,sndbuf=nbytes][,vnet_hdr=on|off][,vhost=on|off][,vhostfd=h][,vhostfds=x:y:...:z][,vhostforce=on|off][,queues=n]connect the host TAP network interface to VLAN 'n'use network scripts 'file' (default=/etc/qemu-ifup)to configure it and 'dfile' (default=/etc/qemu-ifdown)to deconfigure ituse '[down]script=no' to disable script executionuse network helper 'helper' (default=/usr/libexec/qemu-bridge-helper) toconfigure ituse 'fd=h' to connect to an already opened TAP interfaceuse 'fds=x:y:...:z' to connect to already opened multiqueue capable TAP interfacesuse 'sndbuf=nbytes' to limit the size of the send buffer (thedefault is disabled 'sndbuf=0' to enable flow control set 'sndbuf=1048576')use vnet_hdr=off to avoid enabling the IFF_VNET_HDR tap flaguse vnet_hdr=on to make the lack of IFF_VNET_HDR support an error conditionuse vhost=on to enable experimental in kernel accelerator(only has effect for virtio guests which use MSIX)use vhostforce=on to force vhost on for non-MSIX virtio guestsuse 'vhostfd=h' to connect to an already opened vhost net deviceuse 'vhostfds=x:y:...:z to connect to multiple already opened vhost net devicesuse 'queues=n' to specify the number of queues to be created for multiqueue TAP
-net bridge[,vlan=n][,name=str][,br=bridge][,helper=helper]connects a host TAP network interface to a host bridge device 'br'(default=br0) using the program 'helper'(default=/usr/libexec/qemu-bridge-helper)
-net socket[,vlan=n][,name=str][,fd=h][,listen=[host]:port][,connect=host:port]connect the vlan 'n' to another VLAN using a socket connection
-net socket[,vlan=n][,name=str][,fd=h][,mcast=maddr:port[,localaddr=addr]]connect the vlan 'n' to multicast maddr and portuse 'localaddr=addr' to specify the host address to send packets from
-net socket[,vlan=n][,name=str][,fd=h][,udp=host:port][,localaddr=host:port]connect the vlan 'n' to another VLAN using an UDP tunnel
-net dump[,vlan=n][,file=f][,len=n]dump traffic on vlan 'n' to file 'f' (max n bytes per packet)
-net none use it alone to have zero network devices. If no -net optionis provided, the default is '-net nic -net user'
-netdev [user|tap|bridge|socket|hubport],id=str[,option][,option][,...]Character device options:
-chardev null,id=id[,mux=on|off]
-chardev socket,id=id[,host=host],port=host[,to=to][,ipv4][,ipv6][,nodelay][,server][,nowait][,telnet][,mux=on|off] (tcp)
-chardev socket,id=id,path=path[,server][,nowait][,telnet],[mux=on|off] (unix)
-chardev udp,id=id[,host=host],port=port[,localaddr=localaddr][,localport=localport][,ipv4][,ipv6][,mux=on|off]
-chardev msmouse,id=id[,mux=on|off]
-chardev vc,id=id[[,width=width][,height=height]][[,cols=cols][,rows=rows]][,mux=on|off]
-chardev ringbuf,id=id[,size=size]
-chardev file,id=id,path=path[,mux=on|off]
-chardev pipe,id=id,path=path[,mux=on|off]
-chardev pty,id=id[,mux=on|off]
-chardev stdio,id=id[,mux=on|off][,signal=on|off]
-chardev serial,id=id,path=path[,mux=on|off]
-chardev tty,id=id,path=path[,mux=on|off]
-chardev parallel,id=id,path=path[,mux=on|off]
-chardev parport,id=id,path=path[,mux=on|off]
-chardev spicevmc,id=id,name=name[,debug=debug]
-chardev spiceport,id=id,name=name[,debug=debug]Device URL Syntax:
-iscsi [user=user][,password=password][,header-digest=CRC32C|CR32C-NONE|NONE-CRC32C|NONE[,initiator-name=initiator-iqn][,id=target-iqn]iSCSI session parameters
Bluetooth(R) options:
-bt hci,null dumb bluetooth HCI - doesn't respond to commands
-bt hci,host[:id]use host's HCI with the given name
-bt hci[,vlan=n]emulate a standard HCI in virtual scatternet 'n'
-bt vhci[,vlan=n]add host computer to virtual scatternet 'n' using VHCI
-bt device:dev[,vlan=n]emulate a bluetooth device 'dev' in scatternet 'n'Linux/Multiboot boot specific:
-kernel bzImage use 'bzImage' as kernel image
-append cmdline use 'cmdline' as kernel command line
-initrd file use 'file' as initial ram disk
-dtb file use 'file' as device tree imageDebug/Expert options:
-serial dev redirect the serial port to char device 'dev'
-parallel dev redirect the parallel port to char device 'dev'
-monitor dev redirect the monitor to char device 'dev'
-qmp dev like -monitor but opens in 'control' mode
-mon chardev=[name][,mode=readline|control][,default]
-debugcon dev redirect the debug console to char device 'dev'
-pidfile file write PID to 'file'
-singlestep always run in singlestep mode
-S freeze CPU at startup (use 'c' to start execution)
-realtime [mlock=on|off]run qemu-kvm with realtime featuresmlock=on|off controls mlock support (default: on)
-gdb dev wait for gdb connection on 'dev'
-s shorthand for -gdb tcp::1234
-d item1,... enable logging of specified items (use '-d help' for a list of log items)
-D logfile output log to logfile (default stderr)
-L path set the directory for the BIOS, VGA BIOS and keymaps
-bios file set the filename for the BIOS
-enable-kvm enable KVM full virtualization support
-xen-domid id specify xen guest domain id
-xen-create create domain using xen hypercalls, bypassing xendwarning: should not be used when xend is in use
-xen-attach attach to existing xen domainxend will use this when starting QEMU
-no-reboot exit instead of rebooting
-no-shutdown stop before shutdown
-loadvm [tag|id]start right away with a saved state (loadvm in monitor)
-daemonize daemonize QEMU after initializing
-option-rom rom load a file, rom, into the option ROM space
-clock force the use of the given methods for timer alarm.To see what timers are available use '-clock help'
-rtc [base=utc|localtime|date][,clock=host|rt|vm][,driftfix=none|slew]set the RTC base and clock, enable drift fix for clock ticks (x86 only)
-icount [N|auto]enable virtual instruction counter with 2^N clock ticks perinstruction
-watchdog i6300esb|ib700enable virtual hardware watchdog [default=none]
-watchdog-action reset|shutdown|poweroff|pause|debug|noneaction when watchdog fires [default=reset]
-echr chr set terminal escape character instead of ctrl-a
-virtioconsole cset virtio console
-show-cursor show cursor
-tb-size n set TB size
-incoming p prepare for incoming migration, listen on port p
-nodefaults don't create default devices
-chroot dir chroot to dir just before starting the VM
-runas user change to user id user just before starting the VM
-sandbox Enable seccomp mode 2 system call filter (default 'off').
-readconfig
-writeconfig read/write config file
-nodefconfigdo not load default config files at startup
-no-user-configdo not load user-provided config files at startup
-trace [events=][,file=]specify tracing options
-enable-fips enable FIPS 140-2 compliance
-object TYPENAME[,PROP1=VALUE1,...]create an new object of type TYPENAME setting propertiesin the order they are specified. Note that the 'id'property must be set. These objects are placed in the'/objects' path.
-msg timestamp[=on|off]change the format of messageson|off controls leading timestamps (default:on)
-dump-vmstate Output vmstate information in JSON format to file.Use the scripts/vmstate-static-checker.py file tocheck for possible regressions in migration codeby comparing two such vmstate dumps.
During emulation, the following keys are useful:
ctrl
-alt-f toggle full screen
ctrl
-alt-n switch to virtual console 'n'
ctrl
-alt toggle mouse and keyboard grabWhen using -nographic, press 'ctrl-a h' to get some help.WARNING: Direct use of qemu-kvm from the command line is not supported by Red Hat.
WARNING: Use libvirt
as the stable management interface.
WARNING: Some command line options listed here may not be available
in future releases.

 


转载于:https://www.cnblogs.com/beggarsu/p/9378135.html


推荐阅读
  • 向QTextEdit拖放文件的方法及实现步骤
    本文介绍了在使用QTextEdit时如何实现拖放文件的功能,包括相关的方法和实现步骤。通过重写dragEnterEvent和dropEvent函数,并结合QMimeData和QUrl等类,可以轻松实现向QTextEdit拖放文件的功能。详细的代码实现和说明可以参考本文提供的示例代码。 ... [详细]
  • 本文讨论了一个关于cuowu类的问题,作者在使用cuowu类时遇到了错误提示和使用AdjustmentListener的问题。文章提供了16个解决方案,并给出了两个可能导致错误的原因。 ... [详细]
  • 本文详细介绍了Spring的JdbcTemplate的使用方法,包括执行存储过程、存储函数的call()方法,执行任何SQL语句的execute()方法,单个更新和批量更新的update()和batchUpdate()方法,以及单查和列表查询的query()和queryForXXX()方法。提供了经过测试的API供使用。 ... [详细]
  • 成功安装Sabayon Linux在thinkpad X60上的经验分享
    本文分享了作者在国庆期间在thinkpad X60上成功安装Sabayon Linux的经验。通过修改CHOST和执行emerge命令,作者顺利完成了安装过程。Sabayon Linux是一个基于Gentoo Linux的发行版,可以将电脑快速转变为一个功能强大的系统。除了作为一个live DVD使用外,Sabayon Linux还可以被安装在硬盘上,方便用户使用。 ... [详细]
  • Linux服务器密码过期策略、登录次数限制、私钥登录等配置方法
    本文介绍了在Linux服务器上进行密码过期策略、登录次数限制、私钥登录等配置的方法。通过修改配置文件中的参数,可以设置密码的有效期、最小间隔时间、最小长度,并在密码过期前进行提示。同时还介绍了如何进行公钥登录和修改默认账户用户名的操作。详细步骤和注意事项可参考本文内容。 ... [详细]
  • CSS3选择器的使用方法详解,提高Web开发效率和精准度
    本文详细介绍了CSS3新增的选择器方法,包括属性选择器的使用。通过CSS3选择器,可以提高Web开发的效率和精准度,使得查找元素更加方便和快捷。同时,本文还对属性选择器的各种用法进行了详细解释,并给出了相应的代码示例。通过学习本文,读者可以更好地掌握CSS3选择器的使用方法,提升自己的Web开发能力。 ... [详细]
  • android listview OnItemClickListener失效原因
    最近在做listview时发现OnItemClickListener失效的问题,经过查找发现是因为button的原因。不仅listitem中存在button会影响OnItemClickListener事件的失效,还会导致单击后listview每个item的背景改变,使得item中的所有有关焦点的事件都失效。本文给出了一个范例来说明这种情况,并提供了解决方法。 ... [详细]
  • 安卓select模态框样式改变_微软Office风格的多端(Web、安卓、iOS)组件库——Fabric UI...
    介绍FabricUI是微软开源的一套Office风格的多端组件库,共有三套针对性的组件,分别适用于web、android以及iOS,Fab ... [详细]
  • Python正则表达式学习记录及常用方法
    本文记录了学习Python正则表达式的过程,介绍了re模块的常用方法re.search,并解释了rawstring的作用。正则表达式是一种方便检查字符串匹配模式的工具,通过本文的学习可以掌握Python中使用正则表达式的基本方法。 ... [详细]
  • 本文介绍了游标的使用方法,并以一个水果供应商数据库为例进行了说明。首先创建了一个名为fruits的表,包含了水果的id、供应商id、名称和价格等字段。然后使用游标查询了水果的名称和价格,并将结果输出。最后对游标进行了关闭操作。通过本文可以了解到游标在数据库操作中的应用。 ... [详细]
  • [大整数乘法] java代码实现
    本文介绍了使用java代码实现大整数乘法的过程,同时也涉及到大整数加法和大整数减法的计算方法。通过分治算法来提高计算效率,并对算法的时间复杂度进行了研究。详细代码实现请参考文章链接。 ... [详细]
  • 前景:当UI一个查询条件为多项选择,或录入多个条件的时候,比如查询所有名称里面包含以下动态条件,需要模糊查询里面每一项时比如是这样一个数组条件:newstring[]{兴业银行, ... [详细]
  • 本文讨论了Kotlin中扩展函数的一些惯用用法以及其合理性。作者认为在某些情况下,定义扩展函数没有意义,但官方的编码约定支持这种方式。文章还介绍了在类之外定义扩展函数的具体用法,并讨论了避免使用扩展函数的边缘情况。作者提出了对于扩展函数的合理性的质疑,并给出了自己的反驳。最后,文章强调了在编写Kotlin代码时可以自由地使用扩展函数的重要性。 ... [详细]
  • Python爬虫中使用正则表达式的方法和注意事项
    本文介绍了在Python爬虫中使用正则表达式的方法和注意事项。首先解释了爬虫的四个主要步骤,并强调了正则表达式在数据处理中的重要性。然后详细介绍了正则表达式的概念和用法,包括检索、替换和过滤文本的功能。同时提到了re模块是Python内置的用于处理正则表达式的模块,并给出了使用正则表达式时需要注意的特殊字符转义和原始字符串的用法。通过本文的学习,读者可以掌握在Python爬虫中使用正则表达式的技巧和方法。 ... [详细]
  • 【shell】网络处理:判断IP是否在网段、两个ip是否同网段、IP地址范围、网段包含关系
    本文介绍了使用shell脚本判断IP是否在同一网段、判断IP地址是否在某个范围内、计算IP地址范围、判断网段之间的包含关系的方法和原理。通过对IP和掩码进行与计算,可以判断两个IP是否在同一网段。同时,还提供了一段用于验证IP地址的正则表达式和判断特殊IP地址的方法。 ... [详细]
author-avatar
cl357_475
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有