virsh命令中使用qemu-monitor-command

先推两个将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_wakeup
system_powerdown
device_add

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值