1 #from skeleton import skeleton
11 #for $key, $value in $fields
12 <tr><td>$key:</td><td>$value</td></tr>
19 #if not $machine.type.hvm
21 <tt>ssh $machine.name@$config.console.hostname</tt>
22 on Athena. <a href="https://xvm.scripts.mit.edu/wiki/SerialConsole">(more info)</a>
24 <strong><a href="vnc?machine_id=$machine.machine_id">Get Console</a></strong>
26 VNC console not enabled; still booting?
29 <form action="command" method="POST">
30 <input type="hidden" name="back" value="info"/>
31 <input type="hidden" name="machine_id" value="$machine.machine_id"/>
35 <td><button type="submit" class="button" name="action" value="Power off">Power off (hard)</button></td>
36 <td><button type="submit" class="button" name="action" value="Shutdown">Shut down</button></td>
37 <td><input type="submit" class="button" name="action" value="Reboot"/></td>
39 <td><input type="submit" class="button" name="action" value="Power on"/></td>
49 <td><input type="submit" class="button" name="action" value="Delete VM" onclick="return confirm('Are you sure that you want to delete this VM?');"/></td>
57 <p class="error">We had a problem with your request:</p>
58 #else if $varExists('new_machine')
59 <p>Successfully modified.</p>
62 (To edit ram, disk size, or machine name, turn off the machine first.)
64 <form action="modify" method="POST">
65 <input type="hidden" name="machine_id" value="$defaults.machine_id"/>
67 <tr><td>Description:</td><td colspan="2"><textarea name="description" rows="4" cols="60">$defaults.description</textarea></td></tr>
70 $helppopup("Owner")#slurp
72 :</td><td><input type="text" name="owner", value="$defaults.owner"/></td></tr>
74 $errorRow('owner', $err)
76 <tr><td>Administrator#slurp
78 $helppopup("Administrator")#slurp
80 :</td><td><input type="text" name="admin", value="$defaults.administrator"/></td></tr>
82 $errorRow('administrator', $err)
84 <tr><td>Contact email:</td><td><input type="text" name="contact" value="$defaults.contact"/></td></tr>
86 $errorRow('contact', $err)
89 <tr><td>Machine Name:</td><td><input type="text" name="name" value="$defaults.name"/>.${config.dns.domains[0]}</td></tr>
91 $errorRow('name', $err)
96 $helppopup('HVM/ParaVM')#slurp
101 $vmTypeList($defaults.type)#slurp
105 <tr><td>Ram:</td><td><input type="text" size=3 name="memory" value="$defaults.memory"/>MiB (max $max_mem)</td></tr>
107 $errorRow('memory', $err)
109 <tr><td>Disk:</td><td><input type="text" size=3 name="disksize" value="$defaults.disk"/>GiB (max $max_disk)</td><td>WARNING: Modifying disk size may corrupt your data.</td></tr>
111 $errorRow('disk', $err)
115 $errorRow('name', $err)
116 $errorRow('memory', $err)
117 $errorRow('disk', $err)
120 <tr><td><input type="submit" class="button" name="action" value="Change"/></td></tr>