Tuesday, November 12, 2013

pass QEMU monitor commands to virsh


Virsh supports qemu-monitor-command to pass any QEMU monitor commands. Following is an example:

virsh # qemu-monitor-command 45 --hmp info cpus
* CPU #0: pc=0xffffffff8144d27a thread_id=19994

"45" is the domainID
"--hmp" tells the virsh to use human readable mode
"info cpus" are QEMU monitor commands, you can use any supported by QEMU. 


1 comment:

Saravanakumar said...

info cpus should be within single quotes...like qemu-monitor-command 45 --hmp 'info cpus' Thanks for the info.