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 />";
 echo '<br />';
 echo $ret;
 if ($die) {
     die('</body></html');
 }
 /* Disk information */
 echo "<h3>Disk devices</h3>";
 $tmp = $lv->get_disk_stats($domName);
 if (!empty($tmp)) {
     echo "<table>\n        \t              <tr>\n                \t        <th>Disk storage</th>\n\t                        <th>{$spaces} Storage driver type {$spaces}</th>\n        \t                <th>{$spaces} Domain device {$spaces}</th>\n                \t        <th>{$spaces} Disk capacity {$spaces}</th>\n\t\t\t\t<th>{$spaces} Disk allocation {$spaces}</th>\n\t\t\t\t<th>{$spaces} Physical disk size {$spaces}</th>\n\t\t\t\t<th>{$spaces} Actions {$spaces}</th>\n\t\t\t      </tr>";
     for ($i = 0; $i < sizeof($tmp); $i++) {
         $capacity = $lv->format_size($tmp[$i]['capacity'], 2);
         $allocation = $lv->format_size($tmp[$i]['allocation'], 2);
         $physical = $lv->format_size($tmp[$i]['physical'], 2);
         $dev = array_key_exists('file', $tmp[$i]) ? $tmp[$i]['file'] : $tmp[$i]['partition'];
         echo "<tr>\n                        \t   <td>{$spaces}" . basename($dev) . "{$spaces}</td>\n\t                           <td align=\"center\">{$spaces}{$tmp[$i]['type']}{$spaces}</td>\n        \t                   <td align=\"center\">{$spaces}{$tmp[$i]['device']}{$spaces}</td>\n                \t           <td align=\"center\">{$spaces}{$capacity}{$spaces}</td>\n                        \t   <td align=\"center\">{$spaces}{$allocation}{$spaces}</td>\n\t                           <td align=\"center\">{$spaces}{$physical}{$spaces}</td>\n\t\t\t\t\t\t\t   <td align=\"center\">{$spaces}\n\t\t\t\t\t\t\t\t\t<a href=\"?action={$action}&amp;uuid={$_GET['uuid']}&amp;subaction=disk-remove&amp;dev={$tmp[$i]['device']}\">\n\t\t\t\t\t\t\t\t\t\tRemove disk device</a>\n\t\t\t\t\t\t\t{$spaces}</td>\n        \t                  </tr>";
     }
     echo "</table>";
 } else {
     echo "Domain doesn't have any disk devices";
 }
 echo "<br />{$spaces}<a href=\"?action={$action}&amp;uuid={$_GET['uuid']}&amp;subaction=disk-add\">Add new disk</a>";
 /* Network interface information */