Guest Agent question - how can I tell if it's functional?

Discussion in 'Proxmox VE: Installation and configuration' started by nethfel, Feb 25, 2015.

  1. nethfel

    nethfel Member

    Joined:
    Dec 26, 2014
    Messages:
    151
    Likes Received:
    0
    Hi all,

    I have the guest agent installed on a windows box. I've added in my vm conf file agent: 1 (per the pve docs) - the guest has properly installed the serial drivers, but how can I tell if it's properly functional (I read in a post ( http://forum.proxmox.com/threads/20905-Qemu-guest-agent-support-in-Proxmox?highlight=guest+agent ) that if the GA is installed, Proxmox, then the proxmox backups will use VSS - from what I understand the GA is also supposed to be able to help with things like shutdown of guest and such and on some systems their guest agent is able to report back info (like IP of guest) for display within the management interface (ie: Xenserver tools, and I think oVirt will do it if you have the oVirt GA (basically qemu GA) installed) - so how can I tell if my setup is working?
     
  2. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    4,076
    Likes Received:
    251
    Hi,
    you must test it manually, if you want to be sure it's working.

    Follow the steps to verify it is running.
    100 is your VM ID

    [FONT=AndaleMono, serif]socat /var/run/qemu-server/100.qga -[/FONT]

    {"execute":"guest-sync", "arguments":{"id":1234}}
    {"return": 1234}
    {"execute":"guest-ping"} {"return": 1234}


    If you get the the return msg everything is ok.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nethfel

    nethfel Member

    Joined:
    Dec 26, 2014
    Messages:
    151
    Likes Received:
    0
    Ok, I did that and it's not quite working right :) right now I'm trying to use the guest agent from spice-space.org but I think I'm going to have to take a different route... Are there any good tutorials for getting the guest agent together and working within proxmox for a windows guest? (ps I only have OSX and Ubuntu available with development tools installed, none of any form of mingw...)
     
  4. vigilian

    vigilian Member

    Joined:
    Oct 9, 2015
    Messages:
    82
    Likes Received:
    1
    sorry to make a revival of an old thread but where should we put this kind of command?
     
  5. Cdracer

    Cdracer New Member

    Joined:
    Jan 14, 2016
    Messages:
    4
    Likes Received:
    0
    on the terminal
    when you call
    socat /var/run/qemu-server/100.qga -

    you can instert
    {"execute":"guest-sync", "arguments":{"id":1234}}

    and you should get this as return msg
    {"return": 1234}
     
  6. vigilian

    vigilian Member

    Joined:
    Oct 9, 2015
    Messages:
    82
    Likes Received:
    1
    thanks Cdracer because the wiki of qemu was speaking about another file.
    for the guest-ping command I have a {"return":{}}
    is that correct? or is it a problem with my installation?
     
  7. wolfgang

    wolfgang Proxmox Staff Member
    Staff Member

    Joined:
    Oct 1, 2014
    Messages:
    4,076
    Likes Received:
    251
    Yes it is correct. If you have a problem the your qma return no answer or you can't connect to this socket.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #7 wolfgang, Jan 25, 2016
    Last edited: Jan 25, 2016
  8. vigilian

    vigilian Member

    Joined:
    Oct 9, 2015
    Messages:
    82
    Likes Received:
    1
    mmmh okey good to know what could be a bad response of the server
    thanks again
    best regards
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice