mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 14:17:58 +00:00
qm agent : check if qga service is running
This commit is contained in:
parent
f0f30448f9
commit
87f5df81a7
@ -174,6 +174,7 @@ sub register_command {
|
||||
|
||||
die "No Qemu Guest Agent\n" if !defined($conf->{agent});
|
||||
die "VM $vmid is not running\n" if !PVE::QemuServer::check_running($vmid);
|
||||
die "Qemu Guest Agent is not running\n" if !PVE::QemuServer::qga_check_running($vmid);
|
||||
|
||||
my $cmd = $param->{command} // $command;
|
||||
my $res = PVE::QemuServer::vm_mon_cmd($vmid, "guest-$cmd");
|
||||
|
Loading…
Reference in New Issue
Block a user