New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Cannot open connection to hypervisor
thesuppOrtGuy2
Member
in Help
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-------
<?php
require('libvirt.php');
$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
Comments
Is your libvirt service running ?
root> service libvirtd status
[root@kvm ~]# service libvirtd status
libvirtd (pid 2864) is running...
I can also able to manage use virt-manager without any issues but still libvertd php fails to connect Please help me