+<p>Create a new VM:</p>
+#if $err
+<p class="error">We had a problem with your request:</p>
+#else if $varExists('new_machine')
+<p>Congratulations! You successfully created a new VM called $new_machine.</p>
+#end if
+ <form action="create" method="POST">
+ <input type="hidden" name="back" value="list"/>
+ <table>
+ $errorRow('create', $err)
+ <tr>
+ <td>Name</td>
+ <td><input type="text" name="name" value="$defaults.name"/></td>
+ </tr>
+$errorRow('name', $err)
+ <tr>
+ <td>Memory</td>
+ <td><input type="text" name="memory" value="$defaults.memory" size=3/> megabytes ($max_memory max)</td>
+ </tr>
+$errorRow('memory', $err)
+ <tr>
+ <td>Disk</td>
+ <td><input type="text" name="disk" value="$defaults.disk" size=3/> gigabytes (${"%0.1f" % ($max_disk-0.05)} max)</td>
+ </tr>
+$errorRow('disk', $err)
+ <tr>
+ <td>HVM/ParaVM$helppopup('hvm_paravm')</td>
+ <td>
+#for $value, $name in (('hvm', 'HVM'), ('paravm', 'ParaVM'))
+ <input #slurp
+#if $defaults.vmtype == $value then 'checked' else ''
+ type="radio" name="vmtype" value="$value">$name</input>
+#end for
+ </td>
+ </tr>
+$errorRow('vmtype', $err)
+ <tr>
+ <td>Boot CD</td>
+ <td>$cdromList($cdroms, $defaults.cdrom)</td>
+ </tr>
+$errorRow('cdrom', $err)
+ </table>
+ <input type="submit" class="button" value="Create it!"/>
+ </form>
+#end if
+#end def
+
+#def machineRow($machine)