wiki:TipAndDoc/VM/KVM/kimchi

Arch

  • aur:kimchi 1.4.1-4
  • /usr/lib/python2.7/site-packages/kimchi/model/host.py
    • kimchi/model/host.py

      old new  
      8787                        res['cpu_model'] = line.split(':')[1].strip() 
      8888                        break 
      8989 
      90         res['cpus'] = psutil.NUM_CPUS 
      91         res['memory'] = psutil.TOTAL_PHYMEM 
       90        res['cpus'] = psutil.cpu_count() 
       91        res['memory'] = psutil.virtual_memory().total 
      9292 
      9393        # Include IBM PowerKVM name to supported distro names 
      9494        _sup_distros = platform._supported_dists + ('ibm_powerkvm','arch',) 
       
      231231        prev_recv_bytes = net_recv_bytes[-1] if net_recv_bytes else 0 
      232232        prev_sent_bytes = net_sent_bytes[-1] if net_sent_bytes else 0 
      233233 
      234         net_ios = psutil.network_io_counters(True) 
       234        net_ios = psutil.net_io_counters(True) 
      235235        recv_bytes = 0 
      236236        sent_bytes = 0 
      237237        for key in set(netinfo.nics() + 
    Jul 06 22:24:35 zankan kimchid[27854]: File "/usr/lib/python2.7/site-packages/kimchi/model/host.py", line 90, in _get_host_info
    Jul 06 22:24:35 zankan kimchid[27854]: res['cpus'] = psutil.NUM_CPUS
    Jul 06 22:24:35 zankan kimchid[27854]: AttributeError: 'module' object has no attribute 'NUM_CPUS'
    
    Jul 06 22:49:47 zankan kimchid[28292]: File "/usr/lib/python2.7/site-packages/kimchi/model/host.py", line 234, in _get_host_network_io_rate
    Jul 06 22:49:47 zankan kimchid[28292]: net_ios = psutil.network_io_counters(True)
    Jul 06 22:49:47 zankan kimchid[28292]: AttributeError: 'module' object has no attribute 'network_io_counters'
    
  • /usr/lib/systemd/system/kimchid.service
    StandardOutput=journal+console
    
    • ウェブブラウザアクセスログが全て載るため、変えた方が良い
  • aur4:kimchi 1.5.0-4
    • psutil.patch によってpsutilの問題は修正済の模様(未検証)
Last modified 22 months ago Last modified on Jul 6, 2015 11:34:41 PM