--- misc/xenconsole/ajaxdata.php 2013/07/23 21:03:32 2030 +++ misc/xenconsole/ajaxdata.php 2014/01/30 09:08:17 2099 @@ -97,6 +97,11 @@ $uuid = $vm["uuid"]; $state = $vm["power_state"] ; $cpus = $vm["VCPUs_max"]; + + $operations = $vm["current_operations"]; + if (sizeof($operations) > 0) { + $state = $operations[0]; + } $network = ""; @@ -108,6 +113,7 @@ $maxmem = 0; $guestversion = ""; + if ( $vm["power_state"] == "Running" ) { if ($vm["guest_metrics"] != "OpaqueRef:NULL") {//guest tools installed //$guest_metrics = $xenserver->VM_guest_metrics__get_record( $vm["guest_metrics"] );