$ sudo PYTHONPATH=src ./src/kimchid
*** Running feature tests ***
[21/May/2014:19:41:48] ENGINE Error in 'start' listener <bound method CapabilitiesModel._set_capabilities of <kimchi.model.config.CapabilitiesModel object at 0x314ac10>>
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 197, in publish
    output.append(listener(*args, **kwargs))
  File "/home/shhfeng/work/workdir/kimchi/src/kimchi/model/config.py", line 69, in _set_capabilities
    self.metadata_support = FeatureTests.has_metadata_support()
  File "/home/shhfeng/work/workdir/kimchi/src/kimchi/featuretests.py", line 197, in has_metadata_support
    conn = libvirt.open('qemu:///system')
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 247, in open
    if ret is None:raise libvirtError('virConnectOpen() failed')
libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused

[21/May/2014:19:41:48] ENGINE Shutting down due to error in start listener:

[21/May/2014:19:41:48] ENGINE Bus STOPPING
[21/May/2014:19:41:48] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 8010)) shut down
[21/May/2014:19:41:48] ENGINE Stopped thread '_TimeoutMonitor'.
[21/May/2014:19:41:48] ENGINE Stopped thread 'Autoreloader'.
[21/May/2014:19:41:48] ENGINE Bus STOPPED
[21/May/2014:19:41:48] ENGINE Bus EXITING
[21/May/2014:19:41:48] ENGINE Bus EXITED


I do not find the root reason. but
after I use LibvirtConnection to open a libvirt connection, kimchi can start.

+from kimchi.model.libvirtconnection import LibvirtConnection

@@ -104,7 +105,7 @@ def libvirt_supports_iso_stream(protocol):
-            conn = libvirt.open('qemu:///system')
+            conn = LibvirtConnection('qemu:///system').get()



-- 
Thanks and best regards!

Sheldon Feng(冯少合)<shaohef@linux.vnet.ibm.com>
IBM Linux Technology Center