aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRyota Ozaki <ozaki.ryota@gmail.com>2012-09-14 21:44:22 +0900
committerLuiz Capitulino <lcapitulino@redhat.com>2012-09-26 10:45:02 -0300
commitf513cbf7503d8db3778df436beaf25f3d8260317 (patch)
tree41a418008c040564961d5a5fc392a85bd54aa8c7 /scripts
parente37b350aa8766ae36ec9bf40fab665455d4a5530 (diff)
Add qemu-ga-client script
This is an easy-to-use QEMU guest agent client written in Python. It simply provides commands to call guest agent functions like ping, fsfreeze and shutdown. Additionally, it provides extra useful commands, e.g, cat, ifconfig and reboot, by using guet agent functions. Examples: $ export QGA_CLIENT_ADDRESS=/tmp/qga.sock $ qemu-ga-client ping $ qemu-ga-client cat /etc/resolv.conf # Generated by NetworkManager nameserver 10.0.2.3 $ qemu-ga-client fsfreeze status thawed $ qemu-ga-client fsfreeze freeze 2 filesystems frozen The script communicates with a guest agent by means of qmp.QEMUMonitorProtocol. Every commands are called with timeout (3 sec.) to avoid blocking. The script always calls sync command prior to issuing an actual command (except for ping which doesn't need sync). Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions