Store a little global state to avoid an extra remctls.
[invirt/packages/invirt-web.git] / templates / vnc.tmpl
index 131a4ea..7417cfb 100644 (file)
@@ -7,6 +7,11 @@ Console to $machine.name
 
 #def body
 <h1>Console</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>Here is a console to ${machine.name}.</p>
 <APPLET CODE="VncViewer.class" ARCHIVE="../VncViewer.jar"
         WIDTH="800" HEIGHT="632">