OK. I am trying to install virt-manager from source but found it difficult!
So I decided to install from repo.
# yum install virt-manager libvirt
Dependencies Resolved
======================================================================================================================= Package
Arch Version
Repository Size
=======================================================================================================================Installing:
virt-manager x86_64
0.9.0-14.el6 sl 1.0 M
Installing for dependencies:
libvirt-client
x86_64 0.10.2-18.el6_4.14
sl-security 4.0 M
libvirt-python x86_64
0.10.2-18.el6_4.14 sl-security 464 k
python-virtinst noarch
0.600.0-8.el6 sl 487 k
Transaction Summary
=======================================================================================================================Install
4 Package(s)
Total download size: 5.9 M
And I installed all of them.
However when I start virt-manager, I get this error
Error polling connection 'qemu:///system': internal error Cannot find
suitable emulator for x86_64
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/engine.py", line 440, in
_tick
conn.tick()
File "/usr/share/virt-manager/virtManager/connection.py", line 1422,
in tick
newNets, self.nets) = self._update_nets()
File "/usr/share/virt-manager/virtManager/connection.py", line 1285,
in _update_nets
lookup_func, build_class)
File "/usr/share/virt-manager/virtManager/connection.py", line 1217,
in _poll_helper
if not check_support():
File "/usr/share/virt-manager/virtManager/connection.py", line 509,
in is_network_capable
virtinst.support.SUPPORT_CONN_NETWORK)
File "/usr/lib/python2.6/site-packages/virtinst/support.py", line
574, in check_conn_support
return _check_support(conn, feature, conn)
File "/usr/lib/python2.6/site-packages/virtinst/support.py", line
443, in _check_support
actual_drv_ver = _hv_ver(conn, uri)
File "/usr/lib/python2.6/site-packages/virtinst/support.py", line
376, in _hv_ver
ret = cmd(*args)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 3385, in
getVersion
if ret == -1: raise libvirtError ('virConnectGetVersion() failed',
conn=self)
libvirtError: internal error Cannot find suitable emulator for x86_64
However I have installed Qemu from source. For example
$ /usr/local/bin/qemu-x86_64 -version
qemu-x86_64 version 1.6.90, Copyright (c) 2003-2008 Fabrice Bellard
So what is the problem here?
Regards,
Mahmood
On Wednesday, November 20, 2013 8:14 PM, Eric Blake <eblake@redhat.com>
wrote:
On 11/20/2013 09:26 AM, Mahmood Naderan wrote:> Hi,
> I have successfully installed libvirt-.0.10.0 from source
>
> ./configure
> make
> make install
>
> How can I check that if libvirt-python is installed? Search the folders, it
seems there is no such file
>
> [root@tiger ~]# find /usr/ -name libvirt-python
> [root@tiger ~]# find . -name libvirt-python
That's because installing libvirt-python doesn't create any directory or
file named exactly libvirt-python. For an example of what DOES get
installed:
# rpm -ql libvirt-python
/usr/lib64/python2.7/site-packages/libvirt.py
/usr/lib64/python2.7/site-packages/libvirt.pyc
/usr/lib64/python2.7/site-packages/libvirt.pyo
/usr/lib64/python2.7/site-packages/libvirt_lxc.py
/usr/lib64/python2.7/site-packages/libvirt_lxc.pyc
/usr/lib64/python2.7/site-packages/libvirt_lxc.pyo
/usr/lib64/python2.7/site-packages/libvirt_qemu.py
/usr/lib64/python2.7/site-packages/libvirt_qemu.pyc
/usr/lib64/python2.7/site-packages/libvirt_qemu.pyo
/usr/lib64/python2.7/site-packages/libvirtmod.so
/usr/lib64/python2.7/site-packages/libvirtmod_lxc.so
/usr/lib64/python2.7/site-packages/libvirtmod_qemu.so
/usr/share/doc/libvirt-python-1.1.3.1
/usr/share/doc/libvirt-python-1.1.3.1/events-python
/usr/share/doc/libvirt-python-1.1.3.1/events-python/event-test.py
/usr/share/doc/libvirt-python-1.1.3.1/python
/usr/share/doc/libvirt-python-1.1.3.1/python/Makefile.am
/usr/share/doc/libvirt-python-1.1.3.1/python/README
/usr/share/doc/libvirt-python-1.1.3.1/python/consolecallback.py
/usr/share/doc/libvirt-python-1.1.3.1/python/dominfo.py
/usr/share/doc/libvirt-python-1.1.3.1/python/domrestore.py
/usr/share/doc/libvirt-python-1.1.3.1/python/domsave.py
/usr/share/doc/libvirt-python-1.1.3.1/python/domstart.py
/usr/share/doc/libvirt-python-1.1.3.1/python/esxlist.py
/usr/share/doc/libvirt-python-1.1.3.1/python/topology.py
Also, you can do:
$ python>>> import libvirt
>>> help('libvirt')
and if that succeeds, then python found your installed libvirt bindings.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org