Op 08-09-2026 om 18:34 schreef Sanjay Kumar:
Hello! On VMWARE we use the GuestExec functionality. I looked through the API and don't see any similar way to run commands on the host through CloudStack. Is there a way to add custom plugins that could run on the hypervisor? Since my infra is KVM Based, I would presume if we switched from open-vm-tools to qemu-guest-agent then we should VIRSH to run commands. However, a quick glance didn't reveal any supported way to run that VIRSH on the hypervisor that is running the machine itself.
Good question! I just opened a PR [0] to enhance the 'cloudstack-guest-tool' on the KVM hypervisors, it now allows for changing passwords.
The Qemu Guest Agent has support to execute commands (as root) inside the VM, but there is no API-call in CloudStack to do this. You would need to have root access to the hypervisor.
The cloudstack-guest-tool could be expanded to add this functionality to make it easier, but I doubt if we want API access as its also very dangerous to be able to execute commands inside all the VMs.
Wido [0]: https://github.com/apache/cloudstack/pull/14080
Any help would be really appreciated. Thank you
