Thank you for reply!
Im trying to send JSON-formated shutdown command to windows guest vm now. 
Here’s small script I’ve written to test that:

But still I get no reaction from ovirt agent. Surely I’m missing something.

From: Vinzenz Feenstra 
Sent: Friday, July 01, 2016 2:53 PM
Subject: Re: [ovirt-users] Communicating with ovirt agent

  On Jul 1, 2016, at 12:05 PM, Tadas <> =rote:

  is there any documentation o oVirt guest agent =ommands?
  To be more precise: i need to pass commands to =Virt guest agent from
  Reading =nfo works fine:

  socat =var/lib/libvirt/qemu/channel/target/domain-20-
  win7_32bit/com.redhat.serial.0 -

  {"applications": ["Python 2.7.12rc1", "SPICE Guest Tools", =Total
  Commander (Remove or Repair)", "Python 2.7 =ywin32-216", "Microsoft
  .NET Framework 4.6.1", "Git =ersion 2.9.0", "WinRAR 5.40 beta 2 (32-
  bit)", =Notepad++"], "__name__": "applications"}
  {"__name__": =host-name", "name": "WIN7_32BIT"}
  {"__name__": =os-version", "version": "Win 7”}

Every =ommand has to be send as a whole JSON object and sent as line =erminated 
by a \n character

The =ommands available are currently not documented however.

{“__name__”: “name”,=… args}

- name: =hutdown
- =imeout: optional integer (seconds)
=/span>- reboot: optional boolean
- =essage: string

- =ame: refresh
- =piVersion: optiona integer 
        =nbsp;   this defines what information can be =xchanged

- =ame: hibernate:
- state: =isk or mem (default is disk if not specified)

if you need more you can look here:
 at the parseCommand =unction
or just ask here :-)

  I'm unable to find how to send command (lets =ay "shutdown") to agent?.
  echo "shutdown" | socat =var/lib/libvirt/qemu/channel/target/domain-20-
  win7_32bit/com.redhat.kvm-vdi.0  -
  Does=not seem to work
  Thank you for your help.
  Users mailing list

Users mailing list

Reply via email to