--- misc/xenconsole/ajaxdata.php 2013/07/23 19:00:14 2029 +++ 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"] ); @@ -135,8 +141,8 @@ $con = $consolemap[$conref]; if ($con["protocol"] == "rfb") { + $session = $xenserver->get_id(); $url = urlencode( $con["location"] ); - $session = $xenserver->get_id(); } }