def create_local_srs():
 for host_ref in _db_content['host'].keys():
  create_sr(name_label='Local storage', type='lvm', other_config={'i18n-original-value-name_label': 'Local storage', 'i18n-key': 'local-storage'}, physical_size=40000, physical_utilisation=20000, virtual_allocation=10000, host_ref=host_ref)
  create_sr(name_label='Local storage ISO', type='iso', other_config={'i18n-original-value-name_label': 'Local storage ISO', 'i18n-key': 'local-storage-iso'}, physical_size=80000, physical_utilisation=40000, virtual_allocation=80000, host_ref=host_ref)

def create_local_srs ( ) : for host_ref in _db_content [ 'host' ] . keys ( ) : create_sr ( name_label = 'Local storage' , type = 'lvm' , other_config = { 'i18n-original-value-name_label' : 'Local storage' , 'i18n-key' : 'local-storage' } , physical_size = 40000 , physical_utilisation = 20000 , virtual_allocation = 10000 , host_ref = host_ref ) create_sr ( name_label = 'Local storage ISO' , type = 'iso' , other_config = { 'i18n-original-value-name_label' : 'Local storage ISO' , 'i18n-key' : 'local-storage-iso' } , physical_size = 80000 , physical_utilisation = 40000 , virtual_allocation = 80000 , host_ref = host_ref )
create an sr that looks like the one created on the local disk by default by the xenserver installer .