</tr> <tr align="center"> <td colspan="2"><input type="submit" value=" Add new network card " /></td> </tr> </table> </form>'; } } $res = $lv->get_domain_object($domName); $dom = $lv->domain_get_info($res); $mem = number_format($dom['memory'] / 1024, 2, '.', ' ') . ' MB'; $cpu = $dom['nrVirtCpu']; $state = $lv->domain_state_translate($dom['state']); $id = $lv->domain_get_id($res); $arch = $lv->domain_get_arch($res); $vnc = $lv->domain_get_vnc_port($res); if (!$id) { $id = 'N/A'; } if ($vnc <= 0) { $vnc = 'N/A'; } echo "<h2>{$domName} - domain information</h2>"; echo "<b>Domain type: </b>" . $lv->get_domain_type($domName) . '<br />'; echo "<b>Domain emulator: </b>" . $lv->get_domain_emulator($domName) . '<br />'; echo "<b>Domain memory: </b>{$mem}<br />"; echo "<b>Number of vCPUs: </b>{$cpu}<br />"; echo "<b>Domain state: </b>{$state}<br />"; echo "<b>Domain architecture: </b>{$arch}<br />"; echo "<b>Domain ID: </b>{$id}<br />"; echo "<b>VNC Port: </b>{$vnc}<br />";