Acces to hypervisor from a KVM guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 

From a KVM guest, I want to retrieve  the hostname of the host on which the hypervisor is running.

Before doing that by using libvirt API, I first try via virsh.

So, I run  virsh and the run hostname command.( got that in virsh help :  …. hostname                       print the hypervisor hostname ….)

Unfortunately, I got following error when starting virsh :

 

error: Failed to reconnect to the hypervisor

error: no valid connection

error: internal error Unable to locate libvirtd daemon in /usr/sbin (to override, set $LIBVIRTD_PATH to the name of the libvirtd binary)

 

Do I miss to install some package on my KVM guest ? or is it not the right way to get this information ?

 

Any help is welcome.

 

Thx.

 

cid:image001.png@01CF75CE.35F97F50

 

Jean-Pierre RIBEAUVILLE

Developer

Tel: 01 49 11 45 81

 

Discover Systar’s Videos!

 

P Please consider the environment before printing this e-mail

 

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux