Cannot open connection to hypervisor
I have installed the KVM and libvert php on a cent os machine.
But when I try to connect to hypervisor via php code it gives the message "Cannot open connection to hypervisor"
---------Code from the file-------
$lv = new Libvirt('qemu:///system');
$hn = $lv->get_hostname();
if ($hn == false)
die('Cannot open connection to hypervisor');
Is anyone came across this problem. Please help me
I have turned off the iptables and check other options but no joy
Any advice is appreciated