From 668b5519d65afd2a077c7f6d460e88703e831a76 Mon Sep 17 00:00:00 2001 From: Seitanas Date: Wed, 13 Sep 2017 13:52:36 +0300 Subject: [PATCH] KVM: extending socket message for future use --- client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.php b/client.php index a9527fc..b2df981 100644 --- a/client.php +++ b/client.php @@ -51,7 +51,7 @@ $status=str_replace("localhost",$h_reply[0]['address2'],$status); if ($_SESSION['ad_user']=='yes'&&$vm[0]['os_type']=='windows')//we only need to pass username@domainname to windows login. $username=$username."@".$domain_name; - $agent_command=json_encode(array('vmname' => $machine_name, 'username' => $username, 'password' => $password, 'os_type' => $vm[0]['os_type'])); + $agent_command=json_encode(array('command' => 'STARTVM', 'vmname' => $machine_name, 'username' => $username, 'password' => $password, 'os_type' => $vm[0]['os_type'])); if (empty($status)||$status=='error: Domain is not running'){ add_SQL_line("UPDATE vms SET spice_password='' WHERE id='{$suggested_vm[0]['id']}'"); // reset SPICE password for shut off VMs $status='BOOTUP';