sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
def live_vms():
- p = subprocess.Popen(['xm', 'list'], stdout=subprocess.PIPE)
+ p = subprocess.Popen(['/usr/sbin/xm', 'list'], stdout=subprocess.PIPE)
p.wait()
output = p.stdout.read()
vms = [x.split()[0][2:] for x in output.splitlines() if x.startswith('d_')]