- Timestamp:
- Jun 10, 2009, 5:47:04 PM (15 years ago)
- Location:
- trunk/packages/invirt-remote
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote/debian/changelog
r2345 r2351 1 invirt-remote (0.3.15) unstable; urgency=low 2 3 * If a particular VM is being autoinstalled, include that in the 4 invirt-listvms output. 5 6 -- Evan Broder <broder@mit.edu> Wed, 10 Jun 2009 14:46:39 -0700 7 1 8 invirt-remote (0.3.14) unstable; urgency=low 2 9 -
trunk/packages/invirt-remote/host/usr/sbin/invirt-listvms
r2245 r2351 33 33 data['start_time'] = float(xsc.read('', '%s/start_time' % data['vm'])) 34 34 data['uptime'] = time.time()-data['start_time'] 35 # CD , if there is one35 # CD or autoinstall, if we're using either 36 36 vbds = xsc.ls('', '/local/domain/%d/device/vbd' % domid) 37 37 for vbd in vbds: 38 38 dev = '/local/domain/%d/device/vbd/%s' % (domid, vbd) 39 if xsc.read('', '%s/device-type' % dev) == 'cdrom': 40 data['cdrom'] = xsc.read('', '%s/params' % xsc.read('', '%s/backend' % dev)) 39 dev_type = xsc.read('', '%s/device-type' % dev) 40 dev_params = xsc.read('', '%s/params' % xsc.read('', '%s/backend' % dev)) 41 if dev_type == 'cdrom': 42 data['cdrom'] = dev_params 43 elif dev_type == 'disk' and dev_params == '/dev/xenvg/s_install_hda': 44 data['autoinstall'] = True 41 45 42 46 return name, data
Note: See TracChangeset
for help on using the changeset viewer.