qemu tools - send and receive information

pille99

Active Member
Sep 14, 2022
360
28
28
hello all

i have seen it the first time in my current job (btw: we are considering proxmox as a hypervisior solution, but the last words isnt spoken yet) that the vmware tools sending commands to the vm OS itself. we do a lot on this way for example: deploy software scripts, etc. it works like a charm. big advantages: no firewall rules needed, no "wrong" subnet, nothing. just on the level of vcenter, vmtool -> send command and receive status or any other infos.

is that possible with the qemu tools as well. would love to use it for monitoring, etc.
didnt find information about.
maybe in pipleline ?

regards
 
It's possible with QEMU Guest Agent, but as far as I know Proxmox VE doesn't yet provide a easy-to-use UI for that.
 
Something like this?
Code:
~# qm guest exec 2182  --   /usr/bin/lsb_release -a
{
   "exitcode" : 0,
   "exited" : 1,
   "out-data" : "Distributor ID:\tDebian\nDescription:\tDebian GNU/Linux 12 (bookworm)\nRelease:\t12\nCodename:\tbookworm\n"
}
 
The nice thing about the qemu guest agent is that it works with both Linux and Windows guests; but a fairly easy alternative would be to either ssh into the guest and issue commands from there (or scp a script and start it) or look into ansible.


qm guest exec 112 -- cmd /c ver

Be prepared to change your paradigm - what works in one software solution may not carry over 1:1 to another.
 
  • Like
Reactions: UdoB

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!