查看qga可以执行的命令

命令

virsh qemu-agent-command 8 --cmd '{"execute":"guest-info"}' | python -m json.tool | grep 'name' | cut -d ':' -f 2 | tr -d '",'

输出

 guest-sync-delimited
 guest-sync
 guest-suspend-ram
 guest-suspend-hybrid
 guest-suspend-disk
 guest-shutdown
 guest-set-vcpus
 guest-set-user-password
 guest-set-time
 guest-set-memory-blocks
 guest-ping
 guest-network-get-interfaces
 guest-info
 guest-get-vcpus
 guest-get-time
 guest-get-memory-blocks
 guest-get-memory-block-info
 guest-get-fsinfo
 guest-fstrim
 guest-fsfreeze-thaw
 guest-fsfreeze-status
 guest-fsfreeze-freeze-list
 guest-fsfreeze-freeze
 guest-file-write
 guest-file-seek
 guest-file-read
 guest-file-open
 guest-file-flush
 guest-file-close
 guest-exec-status
 guest-exec

你可能感兴趣的:(查看qga可以执行的命令)