先推两个将monitor命令比较好的网址:
http://www.ibm.com/developerworks/cn/linux/l-cn-qemu-monitor/
http://smilejay.com/2012/12/virsh-use-qemu-monitor-command/
维基下面的qemu进不去 不知道是不是被和谐了 下面推一个类似的
https://lxr.missinglinkelectronics.com/qemu
简单的 info 作为查看使用
virsh qemu-monitor-command 4 --hmp info table
info version -- show the version of QEMU #qemu版本
info commands -- list QMP available commands #QMP可用命令(无输出)
info network -- show the network state #网络状态
info chardev -- show the character devices
info block -- show the block devices #磁盘信息
info blockstats -- show block device statistics #磁盘状态
info registers -- show the cpu registers #cpu寄存器信息
info cpus -- show infos for each CPU #cpu信息
info history -- show the command line history #历史命令行(无输出)
info irq -- show the interrupts statistics (if available) #查看中断状态
info pic -- show i8259 (PIC) state
info pci -- show PCI info #总线信息
info tlb -- show virtual to physical memory mappings #虚拟与物理内存的映射
info mem -- show the active virtual memory mappings #活动的虚拟内存映射
info jit -- show dynamic compiler info #即时编译器状态
info kvm -- show KVM information #是否支持kvm
info numa -- show NUMA information #内存numa的信息
info usb -- show guest USB devices #usb信息
info usbhost -- show host USB devices #
info profile -- show profiling information
info capture -- show capture information
info snapshots -- show the currently saved VM snapshots #查看vm快照
info status -- show the current VM status (running|paused) #查看vm状态
info pcmcia -- show guest PCMCIA status
info mice -- show which guest mouse is receiving events #
info vnc -- show the vnc server status #查看vnc状态
info spice -- show the spice server status
info name -- show the current VM name
info uuid -- show the current VM UUID
info usernet -- show user network stack connection states
info migrate -- show migration status
info balloon -- show balloon information
info qtree -- show device tree
info qdm -- show qdev device model list
info roms -- show roms
info block-jobs -- show progress of ongoing block device operations
quit (起到关机的作用)
eject
change
可以更改vncpassword
virsh qemu-monitor-command change vnc password 123456(只能更改 不能设置 可以动态更改)
可以改变vnc port
virsh qemu-monitor-command change vnc 127.0.0.1:5910 (这个我没实验成功)
screen dump
stop
cont
system_wakeupsystem_powerdowndevice_add