<div><b>Hello,</b></div><div><b><br></b></div><div><b>My environment is "Xen3.1 in Fedora8" with "libvirt0.3 & python2.5". When I ran the following </b></div><div><b>commands as a non-root user "nimbus":</b></div>
<div><br></div><div>$python</div><div>>>> import libvirt</div><div>>>> libvirt.open("xen:///")</div><div><br></div><div>--------- Console ---------</div><div>[nimbus@localhost-120 ~]$ python</div>
<div>Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) </div><div>[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2</div><div>Type "help", "copyright", "credits" or "license" for more information.</div>
<div>>>> import libvirt</div><div>>>> libvirt.open("xen:///")</div><div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>  File "/usr/lib/python2.5/site-packages/libvirt.py", line 123, in open</div>
<div>    if ret is None:raise libvirtError('virConnectOpen() failed')</div><div>libvirt.libvirtError: virConnectOpen() failed</div><div>>>> </div><div><br></div><div><b>I encountered the error "virConnectOpen() failed". if I changed the user into root, it worked well. </b></div>
<div><b>But I hava to use the non-root account "nimbus". I looked into the problem on the net, in order </b></div><div><b>that non-root user could use libvirt as root user, someone suggested that I should modify the libvirt </b></div>
<div><b>configuration file "/etc/libvirt/libvirtd.conf", but they didn't point out what field should be changed.</b></div><div><b><br></b></div><div><b>I am puzzled about that problem. I have already changed the sudo file and the xen configuration </b></div>
<div><b>file "/etc/xen/xend-config.sxp", which doesn't work at all. Could someome give me any tips? </b></div><div><br></div><div>--------- "/etc/xen/xend-config.sxp" ---------</div><div>(xend-http-server yes)</div>
<div>(xend-unix-server yes)</div><div>(network-script network-bridge)</div><div><b><br></b></div><div><b>Thanks in advance!</b></div><div><b><br></b></div><div><b>Cheers,</b></div><div><b><br></b></div><div><b>Shenglan Wang</b></div>