<%inherit file="skeleton.mako" /> <%! import datetime %> <%def name="title()"> VM List <%def name="createForm()"> % if cant_add_vm:

${cant_add_vm}

% else:

Create a new VM

% if err:

We had a problem with your request:

% elif new_machine:

Congratulations! You successfully created a new VM called ${new_machine}.

% endif
${errorRow('create', err)} ${errorRow('name', err)} ${errorRow('description', err)} ${errorRow('memory', err)} ${errorRow('disk', err)} ${errorRow('vmtype', err)} ${errorRow('autoinstall', err)} ${errorRow('cdrom', err)} ${errorRow('cdrom', err)} ${errorRow('owner', err)}
Name .${config.dns.domains[0]}
Description
Memory MiB (${max_memory} max)
Disk GiB (${"%0.1f" % (max_disk-0.05)} max)
HVM/ParaVM${fn.helppopup('HVM/ParaVM')} ${vmTypeList(defaults.type)}
Autoinstall${fn.helppopup('Autoinstalls')} ${autoList(defaults.cdrom, "$('cd_or_auto_auto').checked = true;$('cdromlist').value = '';$('vmtype-linux').checked = true")} (experimental; 2-3 minutes, and you have a machine with empty root password.)
Boot CD ${cdromList(defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoinstalllist').value = '';$('vmtype-linux-hvm').checked = true")}
Owner

Windows notes: ${fn.helppopup('Windows')}
% endif <%def name="machineRow(machine)">
${machine.name} ${machine.memory}M ${machine.owner} ${machine.administrator} % if machine.nics: ${', '.join(map(lambda x: x.ip, machine.nics))} % else: % endif \ % if machine.uptime: ${datetime.timedelta(seconds=int(machine.uptime))}\ % endif \ % if has_vnc[machine] == True: Console\ % elif has_vnc[machine] != 'Off': ${has_vnc[machine]} % endif ${machine.description} <%def name="machineList(machines)"> % for machine in machines: ${machineRow(machine)} % endfor
Name Memory Owner${fn.helppopup('Owner')} Administrator${fn.helppopup('Administrator')} IP Uptime VNC

What is XVM?

% if not machines:

You don't currently control any VMs.

% endif

refresh

${machineList(machines)}
${createForm()}