1 #from skeleton import skeleton
12 <p>You have the following VMs:</p>
23 #for $machine in $machines:
25 <td><a href="info?machine_id=$machine.machine_id">$machine.name</a></td>
26 <td>${machine.memory}M</td>
27 <td>$machine.owner</td>
29 #set $nic = $machine.nics[0]
31 <td>$nic.hostname</td>
37 #if $uptimes[$machine]
38 $uptimes[$machine]#slurp
44 #if $has_vnc[$machine] == True
45 <a href="vnc?machine_id=$machine.machine_id">Console</a>#slurp
51 <form action="command">
52 <input type="hidden" name="machine_id"
53 value="$machine.machine_id"/>
54 #if $uptimes[$machine]
55 <input type="submit" class="button" name="action" value="Shutdown"/>
57 <input type="submit" class="button" name="action" value="Power on"/>
66 <p>Create a new VM:</p>
67 <form action="create" method="POST">
71 <td><input type="text" name="name" value=""/></td>
75 <td><input type="text" name="memory" value="$default_mem" size=3/> megabytes ($max_mem max)</td>
79 <td><input type="text" name="disk" value="$default_disk" size=3/> gigabytes (${"%0.1f" % ($max_disk-0.05)} max)</td>
82 <td>HVM/ParaVM$helppopup('hvm_paravm')</td>
84 <input checked type="radio" name="vmtype" value="hvm">HVM</input>
85 <input type="radio" name="vmtype" value="paravm">ParaVM</input>
92 <option selected value="">None</option>
93 #for $cdrom in $cdroms
94 <option value="$cdrom.cdrom_id">
102 <input type="submit" class="button" value="Create it!"/>
105 <p>You are at the maximum number of VMs.</p>