1 #from skeleton import skeleton
12 <p>You have the following VMs:</p>
24 #for $machine in $machines:
26 <td><a href="info?machine_id=$machine.machine_id">$machine.name</a></td>
27 <td>${machine.memory}M</td>
28 <td>$machine.owner</td>
30 #set $nic = $machine.nics[0]
32 <td>$nic.mac_addr</td>
33 <td>$nic.hostname</td>
40 #if $uptimes.get($machine.name)
41 $uptimes[$machine.name]#slurp
47 #if $has_vnc.get($machine.name) == True
48 <a href="vnc?machine_id=$machine.machine_id">Console</a>#slurp
50 $has_vnc.get($machine.name)
54 <form action="command">
55 <input type="hidden" name="machine_id"
56 value="$machine.machine_id"/>
57 <input type="submit" class="button"
66 <p>Create a new VM:</p>
67 <form action="create" method="POST">
71 <td>${user.username}_<input type="text" name="name" value=""/></td>
75 <td><input type="text" name="memory" value="$maxmem" size=3/> megabytes ($maxmem max)</td>
79 <td><input type="text" name="disk" value="$maxdisk" size=3/> gigabytes ($maxdisk 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!"/>