XenStoreD and Enomalism's TTY Layer

XenStoreD and Enomalism's TTY Layer

Enomalism just got a little cooler with the addition of a full AJAX terminal package (based upon the AjaxTerm project, but ported to TurboGears with some wierd backend stuff added to handle arbitrary virtual ptys. When I did the code, it turned out that ther newer 3.02 version of Xen used a completely different interface for reading DomU information. To work around this, I moved to doing things "the right way" and started using XenStoreD to read pty info.

Turns out, it is easy as heck to use XenStoreD. Here is a demo of reading the pty from the python interpreter:

def getTTYByDomID(DomID):
    import xen.lowlevel.xs as xs
    sock=xs.xs()
    trans=sock.transaction_start()
    path=sock.get_domain_path(DomID)
    pty=sock.read(trans,path+'/console/tty')
    print "got pty",pty
    sock.transaction_end(trans)
    return pty
Home Home
http://www.reaysmoving.com/