#end def
#def commands()
+#if $on
+ #if not $machine.type.hvm
+ Console access: type
+ <tt>ssh $machine.name@$config.console.hostname</tt>
+ on Athena. <a href="https://xvm.scripts.mit.edu/wiki/SerialConsole">(more info)</a>
+ #elif $has_vnc
+ <strong><a href="vnc?machine_id=$machine.machine_id">Get Console</a></strong>
+ #else
+ VNC console not enabled; still booting?
+ #end if
+#end if
<form action="command" method="POST">
<input type="hidden" name="back" value="info"/>
<input type="hidden" name="machine_id" value="$machine.machine_id"/>
<table>
-
- <tr><td colspan=3>
- #if $on
- #if $has_vnc
- <strong><a href="vnc?machine_id=$machine.machine_id">Get Console</a></strong>
- #else
- VNC console not enabled; still booting?
- #end if
- #else
-
- #end if
- </td></tr>
<tr>
#if $on
<td><button type="submit" class="button" name="action" value="Power off">Power off (hard)</button></td>
$errorRow('contact', $err)
#end filter
#if not $on
- <tr><td>Machine Name:</td><td><input type="text" name="name" value="$defaults.name"/></td></tr>
+ <tr><td>Machine Name:</td><td><input type="text" name="name" value="$defaults.name"/>.${config.dns.domains[0]}</td></tr>
#filter None
$errorRow('name', $err)
#end filter