1 #from skeleton import skeleton
13 <p>Create a new VM:</p>
15 <p class="error">We had a problem with your request:</p>
16 #else if $varExists('new_machine')
17 <p>Congratulations! You successfully created a new VM called $new_machine.</p>
19 <form action="create" method="POST">
20 <input type="hidden" name="back" value="list"/>
22 $errorRow('create', $err)
25 <td><input type="text" name="name" value="$defaults.name"/></td>
27 $errorRow('name', $err)
30 <td><input type="text" name="memory" value="$defaults.memory" size=3/> MiB ($max_memory max)</td>
32 $errorRow('memory', $err)
35 <td><input type="text" name="disk" value="$defaults.disk" size=3/> GiB (${"%0.1f" % ($max_disk-0.05)} max)</td>
37 $errorRow('disk', $err)
39 <td>HVM/ParaVM$helppopup('hvm_paravm')</td>
41 #for $value, $name in (('hvm', 'HVM'), ('paravm', 'ParaVM'))
43 #if $defaults.vmtype == $value then 'checked' else ''
44 type="radio" name="vmtype" value="$value">$name</input>
48 $errorRow('vmtype', $err)
51 <td>$cdromList($cdroms, $defaults.cdrom)</td>
53 $errorRow('cdrom', $err)
56 <td><input type="checkbox" name="clone_from" value="ice3"/>
57 (experimental; 1-2 minutes, and you have an etch machine; root pw is 'password'.)</td>
59 $errorRow('cdrom', $err)
62 <td><input type="text" name="owner" value="$defaults.owner"/></td>
64 $errorRow('owner', $err)
66 <input type="submit" class="button" value="Create it!"/>
71 #def machineRow($machine)
73 <td><a href="info?machine_id=$machine.machine_id">$machine.name</a></td>
74 <td>${machine.memory}M</td>
75 <td>$machine.owner</td>
76 <td>$machine.administrator</td>
78 #set $nic = $machine.nics[0]
91 #if $has_vnc[$machine] == True
92 <a href="vnc?machine_id=$machine.machine_id">Console</a>#slurp
98 <form action="command" method="post">
99 <input type="hidden" name="back" value="list"/>
100 <input type="hidden" name="machine_id"
101 value="$machine.machine_id"/>
102 <input type="submit" class="button" name="action" value="#slurp
103 #if $machine.uptime then 'Power off' else 'Power on'
110 #def machineList($machines)
116 <td>Administrator</td>
121 #for $machine in $machines:
122 $machineRow($machine)
129 <p style="font-size: 125%;"><strong>Note:</strong> sipb-xen is a very alpha service. <a href="/static/about.html">What does this mean?</a></p>
131 <p>You don't currently control any VMs.</p>
133 <p>You have the following VMs:</p>
135 <p><a href="list">refresh</a></p>
136 <div id="machinelist">
137 $machineList($machines)
139 <div id="createtable">