<%page expression_filter="h"/> <%inherit file="skeleton.mako" /> <%def name="title()"> Info on ${machine.name} %if os.path.exists("/etc/invirt/motd.html"):

${open('/etc/invirt/motd.html').read()|n}

%endif <%def name="infoTable()">

Info

% for key, value in fields: % endfor % if on: % if 'monitoring' in config and len(config.monitoring) and 'baseuri' in config.monitoring[0]: % endif % endif
${key}:${value}
CPU history:Domain CPU usage
<%def name="commands()"> % if on: % if not machine.type.hvm: Console access: type ssh ${machine.name}@${config.console.hostname} on Athena. (more info) % elif has_vnc: Get Console % else: VNC console not enabled; still booting? % endif % endif <%def name="command_button(title, value, cdrom=False, extra='')">
% if cdrom: Boot CD: ${self.fn.cdromList()} % endif
% if on: ${command_button("Power off", "destroy")} ${command_button("Shutdown", "shutdown")} ${command_button("Reboot", "reboot", cdrom=True)} % else: ${command_button("Power on", "create", cdrom=True)} % endif
${command_button("Delete VM", "delete", extra='''onclick="return confirm('Are you sure that you want to delete this VM (\\\'%s\\\')?');"''' % (machine.name))}
<%def name="modifyForm()"> % if err:

We had a problem with your request:

% elif new_machine:

Successfully modified.

% endif % if on: (To edit ram, disk size, or machine name, turn off the machine first.) % endif
${self.fn.errorRow('owner', err)} ${self.fn.errorRow('administrator', err)} ${self.fn.errorRow('contact', err)} % if not on: ${self.fn.errorRow('name', err)} ${self.fn.errorRow('nictype', err)} ${self.fn.errorRow('memory', err)} ${self.fn.errorRow('disk', err)} % else: ${self.fn.errorRow('name', err)} ${self.fn.errorRow('memory', err)} ${self.fn.errorRow('disk', err)} % endif
Description:
Owner${self.fn.helppopup("Owner")}:
Administrator${self.fn.helppopup("Administrator")}:
Contact email:
Machine Name:.${config.dns.domains[0]}
Network Device${self.fn.helppopup('Network Device')} ${self.fn.nicTypeList(defaults.nic)}
HVM/ParaVM${self.fn.helppopup('HVM/ParaVM')} ${self.fn.vmTypeList(defaults.type)}
Ram:MiB (max ${max_mem})
Disk:GiB (max ${max_disk})WARNING: Modifying disk size may corrupt your data.
${infoTable()}

Commands

${commands()}

Settings

${modifyForm()}