+sipb-xen-console-server (2.03) unstable; urgency=low
+
+ * Multiplex consoles on multiple hosts.
+
+ -- Greg Price <price@mit.edu> Sun, 13 Jul 2008 08:35:17 -0400
+
sipb-xen-console-server (2.02) unstable; urgency=low
* And...xm isn't in the path, so give a full path
Architecture: all
Provides: ${diverted-files}
Conflicts: ${diverted-files}
-Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server
+Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server, remctl-client
Description: SIPB Xen serial console server server
This configures the VMM for the server-side of the console server
Architecture: all
Provides: ${diverted-files}
Conflicts: ${diverted-files}
-Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server
+Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server, remctl-client
Description: SIPB Xen serial console server server
This configures the VMM for the server-side of the console server
\ No newline at end of file
import sipb_xen_database
import subprocess
import os
+import socket
sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
p.wait()
if __name__ == '__main__':
+ hostname = socket.getfqdn().lower()
+ config = '\n'.join('console %s { master %s; }' % (vm, hostname)
+ for vm in live_vms())
f = open('/etc/conserver/sipb-xen-consoles.cf', 'w')
- f.write('\n'.join('console %s {}' % vm for vm in live_vms()))
+ f.write(config)
f.close()
reload_conserver()
+ subprocess.call(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab',
+ 'host/'+hostname+'@ATHENA.MIT.EDU'])
+ subprocess.call(['/usr/bin/remctl', 'sipb-xen-console.mit.edu',
+ 'console', 'update', config])