#from skeleton import skeleton
#extends skeleton

#def title
Console to $machine.name
#end def

#def body
<h1>Console to ${machine.name}</h1>
#if not $on
<p> Your machine appears to be off.</p>
#else if not $has_vnc
<p> Your machine appears to not be accepting VNC connections. Perhaps you have a ParaVM machine?</p>
#end if
<p>See <a href="help?subject=console">tips</a> about framebuffer and other issues.</p>
<APPLET CODE="VncViewer.class" ARCHIVE="https://$hostname:446/static/VncViewer.jar"
        WIDTH="100%" HEIGHT="1000">
<PARAM NAME="PASSWORD" VALUE="moocow">
<PARAM NAME="PORT" VALUE="10003">
<PARAM NAME="HOST" VALUE="$hostname">
<PARAM NAME="VMNAME" VALUE="$machine.name">
<PARAM NAME="AUTHTOKEN" VALUE="$authtoken">
<PARAM NAME="SocketFactory" VALUE="VNCProxyConnectSocketFactory">
</APPLET>
#end def