+ # CD, if there is one
+ vbds = xsc.ls('', '/local/domain/%d/device/vbd' % domid)
+ for vbd in vbds:
+ dev = '/local/domain/%d/device/vbd/%s' % (domid, vbd)
+ if xsc.read('', '%s/device-type' % dev) == 'cdrom':
+ data['cdrom'] = xsc.read('', '%s/params' % xsc.read('', '%s/backend' % dev))